7 More Discussions You Might Find Interesting
1. Red Hat
removing the post (6 Replies)
Discussion started by: titanic4u
6 Replies
2. Linux
Hi Team,
I have joined the Suse Linux Server in my domain. I am not able update the DNS but I am able to join the domain. net ads testjoin gives me Join ok.
even net ads dns register -P results to DNS update failed.
wbinfo -u and wbinfo -g also not working.
Samba Configuration:
... (1 Reply)
Discussion started by: naree
1 Replies
3. UNIX for Dummies Questions & Answers
I cannot access the Accounts Manager facility when using SCO (F2 Screen) or scoadmin from the Command prompt. when using System Administration screen the Error "Unable to get initial list of users" is given. (0 Replies)
Discussion started by: Waitstejo
0 Replies
4. HP-UX
Hi Friends
We have two node trucluster Tru64 4.0F Alpha Servers,In one of Tru64 4.0F Unix Server I am unable to unlock users, when I issue usermod command I will get following error
/usr/sbin/usermod -x administrative_lock_applied=0 username
account manager has exited unexpectedly - please... (0 Replies)
Discussion started by: madanmb
0 Replies
5. UNIX for Dummies Questions & Answers
rm: Unable to remove directory /mnt/users/test/logs/: File exists
ls -latr
total 191208
drwxrwxrwx 6 test echo 4096 Jul 3 22:36 ..
-rwxrwxrwx 1 test echo 97692804 Jul 3 22:36 .nfsDFA4
drwxrwxr-x 2 test echo 4096 Jul 3 23:00 .
M not able to delete... (4 Replies)
Discussion started by: solitare123
4 Replies
6. SCO
UnixWare 7, Release 7.1.3
We have a customer that has frequent issues with Non-Root users being unable to print. They are able to print w/o issues, but all of the sudden it stops working. The only workaround we have at this point is to reboot the server. It is happening weekly according to... (1 Reply)
Discussion started by: cfshd
1 Replies
7. Shell Programming and Scripting
I'm looking for a script that allows me to export to CSV, the information I need. Somehow, I must gather the User ID, the User Login, the Last User Login, the Password complexity, the Password Age, The Expiration Date, . . .
My experience is equal to very, very few.
The only thing I have is... (2 Replies)
Discussion started by: catfish
2 Replies
usermod(8) System Manager's Manual usermod(8)
NAME
usermod - modify a user account
SYNOPSIS
usermod [-D binddn] [-P path] [-g gid [-o]] [-p password]
[--service service] [--help] [--usage] [-v] account
DESCRIPTION
usermod modifies an user account using the values specified on the command line.
OPTIONS
-A, --add-to-group group,...
With this option a list of groups can be specified, which the user should become a member of. Each group is separated from the next
one only by a comma, without whitespace.
-c, --comment comment
This option specifies the new users finger information. It is normally modified using the chfn(1) utility.
-d, --home homedir
This option specifies the new home directory of the user.
-e, --expire expire
With this option the date when the account will be expired can be changed. expiredate has to be specified as number of days since
January 1st, 1970. The date may also be expressed in the format YYYY-MM-DD.
-f, --inactive inactive
This option is used to set the number of days of inactivity after a password has expired before the account is locked. A user whose
account is locked must contact the system administrator before being able to use the account again. A value of -1 disables this
feature.
-G, --groups group,...
With this option a list of supplementary groups can be specified, which the user should become a member of. Each group is separated
from the next one only by a comma, without whitespace. The user is removed from all other groups not specified.
-g, --gid gid
The group name or number of the user's new primary group. The group name must exist and a group number must refer to an already
existing group.
-l, --login name
Specify the new account name for the user. The account name must begin with an alphabetic character and the rest of the string
should be from the POSIX portable character class. Nothing else is changed.
-m, --move_home
Move the user's home directory to the new directory specified with the -d option. If the old directory does not exist, nothing is
done. If the new directory already exists, the program aborts with an error.
-o, --non-unique
Allow duplicate (non-unique) User IDs.
-p, --password password
Encrypted password as returned by crypt(3) as the new password.
-R, --remove-from-group group,...
With this option a list of groups can be specified, from which the user should be removed. Each group is separated from the next one
only by a comma, without whitespace.
-s, --shell shell
Specify user's new login shell. The value of shell must be a valid executable file. It is normally modified using the chsh(1) util-
ity.
-u, --uid uid
Change the userid to be the given number. This value must be positive and unique (unless the -o option is used). Any file with the
old UID of the user and which is located in the directory tree rooted at the user's home directory will be changed to be owned by
the new UID automatically.
-D, --binddn binddn
Use the Distinguished Name binddn to bind to the LDAP directory. The user will be prompted for a password for simple authentica-
tion.
-L, --lock
A system administrator can lock the account of the specified user.
-U, --unlock
A system administrator can unlock the specified account, if the account is not passwordless afterwards (it will not unlock an
account that has only "!" as a password).
-P, --path path
The passwd and shadow files are located below the specified directory path. usermod will use this files, not /etc/passwd and
/etc/shadow.
--service service
Modify the account from a special directory. The default is files, but ldap is also valid.
--help Print a list of valid options with a short description.
--usage
Print a short list of valid options.
-v, --version
Print the version number and exit.
NOTES
usermod will not allow you to change the name, User ID or home directory of a user, which is logged in. usermod will not change the User ID
of running processes and not the ownership of crontab and at jobs.
FILES
/etc/group - group information
/etc/passwd - user account information
/etc/shadow - shadow user account information
SEE ALSO
passwd(1), login.defs(5), group(5), passwd(5), shadow(5), useradd(8), userdel(8)
AUTHOR
Thorsten Kukuk <kukuk@suse.de>
pwdutils Feb 2010 usermod(8)