08-18-2011
I actually work on a project where in, i need to write java code to create/modify/delete users on unix systems. One of the requirement is to update users login class. I did some googling, but could not undertsand much. Please help.
Thanks!
10 More Discussions You Might Find Interesting
1. HP-UX
Dear All,
how to check the unix log file which mean how many(who) user has been log in the server for the day, when they log in & when they log out? (8 Replies)
Discussion started by: whl123
8 Replies
2. SCO
We have made numerous requests to our system administrator to add new employees at login screen ( passwords not required ) to no avail.
I can login into root but not sure how to proceed from there.
We have a 10 yr. old version of SCO
Can anyone help?
I know very few unix commands okay... (1 Reply)
Discussion started by: houseostyle
1 Replies
3. Solaris
I get the following error when running /usr/bin/ps on Solaris 10 as a particular non-privileged user:
ld.so.1: ps: fatal: /usr/dt/lib/libXm.so.3: wrong ELF class: ELFCLASS32
Killed
However I can run /usr/bin/ps successfuly as root or as any other non-privileged user. What could it be about this... (5 Replies)
Discussion started by: aussieos
5 Replies
4. Programming
Is is possible to make STL-Iterator to work with user defined class ,like the one below?
#include <iostream>
#include <stdexcept>
using namespace std;
template <class T>
class Array
{
public:
T& operator (unsigned i) throw(out_of_range)
{ return data_; }
protected:
... (2 Replies)
Discussion started by: johnbach
2 Replies
5. Solaris
Hello World ~
HW : SUN Fire V240
OS : Solaris 8
Error message prompts 'rmclomv ... SC login failure ...' on terminal.
and
Error Message prompts continually 'SC Login Failure for user Please login:' on Single Mode(init S)
The System is in normal operation, though
In case of rain, Can... (1 Reply)
Discussion started by: lifegeek
1 Replies
6. UNIX for Advanced & Expert Users
Hello,
I created a user in my AIX 5.3 system and i modified /etc/passwd file in and assigned this user the uid=0 like root user.
The problem is that when this user log into the system through putty it asks for root password instead of the user password.
As a result of this, if i reset the... (4 Replies)
Discussion started by: omonoiatis9
4 Replies
7. Programming
I have a program that accepts user input. For example I have mdacc that the user sets the value. I then have a class which stores the value set by the user. I use set_param to set the values in the class. I pass through it the list of user defines arguments from argv. What would be the opinion on... (0 Replies)
Discussion started by: kristinu
0 Replies
8. Shell Programming and Scripting
Hi Every body,
I would need a shell script program to login as different user and perform some copy commands in the script.
example: Supppose ora_toms is the active user
ora_toms should be able to run a script where user: ftptomsp pass: XXX should login through and run the commands
... (9 Replies)
Discussion started by: ujjwal27
9 Replies
9. AIX
I want to learn AIX. I would like to find someone who would be willing to give me a login to their AIX home lab server. My intent is to poke around and discover the similarities and differences of AIX compared to other *NIXs.
I am a UNIX admin so I can think of what some immediate concerns may... (1 Reply)
Discussion started by: perl_in_my_shel
1 Replies
10. Shell Programming and Scripting
Hi.
I inject my tracklogin.sh script in the profile of each user.
$ more .profile
./tracklogin.sh
# This is the default standard profile provided to a user.
MAIL=/usr/mail/${LOGNAME:?}
bash-3.2$ more tracklogin.sh
#!/bin/bash
tdate=$(date +"%d%m%y")
mkdir -p /tmp/root_log... (20 Replies)
Discussion started by: mohtashims
20 Replies
LEARN ABOUT NETBSD
libutil
UTIL(3) BSD Library Functions Manual UTIL(3)
NAME
util, libutil -- system utilities library
LIBRARY
System Utilities Library (libutil, -lutil)
DESCRIPTION
The util library is the system utilities library and contains various system-dependent utility routines used in a wide variety of system dae-
mons. The abstracted functions are mostly related to pseudo-terminals and login accounting. These routines are NetBSD-specific and are not
portable. Their use should be restricted.
Declarations for these functions may be obtained from the include file <util.h>. The util library and the associated functions are imple-
mented within the /usr/src/lib/libutil directory.
LIST OF FUNCTIONS
Name Description
disklabel_dkcksum(3) compute the checksum for a disklabel
disklabel_scan(3) scan a buffer for a valid disklabel
forkpty(3) tty utility function
getbootfile(3) get the name of the booted kernel file
getlabeloffset(3) get the sector number and offset of the disklabel
getlabelsector(3) get the sector number and offset of the disklabel
getmaxpartitions(3) get the maximum number of partitions allowed per disk
getrawpartition(3) get the system ``raw'' partition
login(3) login utility function
login_cap(3) query login.conf database about a user class
login_close(3) query login.conf database about a user class
login_getcapbool(3) query login.conf database about a user class
login_getcapnum(3) query login.conf database about a user class
login_getcapsize(3) query login.conf database about a user class
login_getcapstr(3) query login.conf database about a user class
login_getcaptime(3) query login.conf database about a user class
login_getclass(3) query login.conf database about a user class
login_tty(3) tty utility function
loginx(3) login utility function
logout(3) login utility function
logoutx(3) login utility function
logwtmp(3) login utility function
logwtmpx(3) login utility function
opendisk(3) open a disk partition
openpty(3) tty utility function
pidfile(3) write a daemon pid file
pidlock(3) locks based on files containing PIDs
pw_abort(3) passwd file update function
pw_copy(3) utility function for interactive passwd file updates
pw_edit(3) utility function for interactive passwd file updates
pw_error(3) utility function for interactive passwd file updates
pw_getconf(3) password encryption configuration access function
pw_getprefix(3) passwd file update function
pw_init(3) utility function for interactive passwd file updates
pw_lock(3) passwd file update function
pw_mkdb(3) passwd file update function
pw_prompt(3) utility function for interactive passwd file updates
pw_scan(3) utility function for interactive passwd file updates
pw_setprefix(3) passwd file update function
secure_path(3) determine if a file appears to be ``secure''
setclasscontext(3) query login.conf database about a user class
setusercontext(3) query login.conf database about a user class
snprintb(3) bitmask output conversion
sockaddr_snprintf(3) socket address formatting function
strpct(3) decimal percent formatter
ttyaction(3) ttyaction utility function
ttylock(3) locks based on files containing PIDs
ttymsg(3) ttymsg utility function
ttyunlock(3) locks based on files containing PIDs
FILES
/usr/lib/libutil.a static util library
/usr/lib/libutil.so dynamic util library
/usr/lib/libutil_p.a static util library compiled for profiling
SEE ALSO
efun(3), intro(3)
BSD
August 29, 2011 BSD