if you want to create a user with out password, then change the flag =ADMCHG to flag=""..... in /etc/security/password
Sorry, but this is neither recommended nor working: first off, you shouldn't edit /etc/security/passwd directly but use the AIX tools designed to deal with this. Secondly, changing the flag from "ADMCHNG" to "" will result in the user not being asked to change his/her password any longer - nothing more, nothing less. Usually, when root (or a similarly privileged administrative user) changes a user password this flag is set and the user upon logging in will be prompted to change his password. After changing the password the flag is cleared automatically. It could also be cleared by the command
Quote:
Originally Posted by jyoung
Check out the pwdadm command.
see above for the purpose of the "pwdadm" command.
hello,
Actually I want to create a user for our brower based custom application for the mail access from our mailserver(linux).
I create user dummy and I granted all the privileages to dummy user and made dummy equivelent to root and if I tried to create a another user logging as dummy ... (1 Reply)
Hi all,
I want to create one user with full permissions to one directory called /opt/tivoli/tsm/client/ba/bin.
Name for the user Tivoli
Thanks & Regards
Babu (7 Replies)
i am trying to create a user on solaris 10. it is not taking user name with more than ten characters. which file i need to edit to do this setting. (4 Replies)
Hello guys,
i have a problem where i cant create a user and here some problem that i encounter.
1. /etc/passwd seems locked.
2. getting this error UX: useradd: ERROR: Cannot update system files - login cannot be created.
# useradd -u 47367 -g 1084 -c "user123" -d /local/home/user123 -s... (2 Replies)
Hi Gems..
I am working out on project of creating a mass user on 100 server. Please help me with script where i can create an user id of new 80 user using shell script
Thanks in advance.
Indrajit Bhagat (1 Reply)
Hi can anyone help me how to create a NIS user by editing the files like Passwd,group, Netgroup,auto.home and Aliases using the "enis" utility?
Please do the needful................................ (4 Replies)
Hi,
I want to create a user using useradd -m test. How can I restric the user not to change his directory from his home dir?
Thanks,
Suresh (2 Replies)
Hello everybody,
I'm new to sh scripting and relatively new to linux in general which is why I've come here for assistance.
I have been attempting to make a shell script which automatically creates user accounts from a file list and further creating directories and moving files into it etc.... (3 Replies)
Discussion started by: charlieabee
3 Replies
LEARN ABOUT LINUX
pam_localuser
PAM_LOCALUSER(8) Linux-PAM Manual PAM_LOCALUSER(8)NAME
pam_localuser - require users to be listed in /etc/passwd
SYNOPSIS
pam_localuser.so [debug] [file=/path/passwd]
DESCRIPTION
pam_localuser is a PAM module to help implementing site-wide login policies, where they typically include a subset of the network's users
and a few accounts that are local to a particular workstation. Using pam_localuser and pam_wheel or pam_listfile is an effective way to
restrict access to either local users and/or a subset of the network's users.
This could also be implemented using pam_listfile.so and a very short awk script invoked by cron, but it's common enough to have been
separated out.
OPTIONS
debug
Print debug information.
file=/path/passwd
Use a file other than /etc/passwd.
MODULE TYPES PROVIDED
All module types (account, auth, password and session) are provided.
RETURN VALUES
PAM_SUCCESS
The new localuser was set successfully.
PAM_SERVICE_ERR
No username was given.
PAM_USER_UNKNOWN
User not known.
EXAMPLES
Add the following line to /etc/pam.d/su to allow only local users in group wheel to use su.
account sufficient pam_localuser.so
account required pam_wheel.so
FILES
/etc/passwd
Local user account information.
SEE ALSO pam.conf(5), pam.d(5), pam(7)AUTHOR
pam_localuser was written by Nalin Dahyabhai <nalin@redhat.com>.
Linux-PAM Manual 06/04/2011 PAM_LOCALUSER(8)