10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I wish to pull out a list of all user ids on the system, including the privileged ids, the groups to which they belong to. Sometimes after deleting an id also, its home dir does not get deleted or an entry is left behind in /etc/passwd.
Can someone help me with a script to achieve both. (2 Replies)
Discussion started by: ggayathri
2 Replies
2. UNIX for Beginners Questions & Answers
I am looking for a stable, reliable system to replace my current Windows systems in the home. These are simple systems that I purchased from the local Big Box store.
I have heard many good things about Unix and it's various children and it sounds like a good option to me. I have worked... (2 Replies)
Discussion started by: donschurter
2 Replies
3. Linux
Hi
I configured a full blown Suse Linux server with FTP (VSFTP) server (98 users), Samba as well as secure Ftp on Suse Linux 10 SP4. I need to transfer the whole system to a NEW server that I configured with Ver 11.4
What files need to be backed up and restored to the new server keeping the... (5 Replies)
Discussion started by: Tony.Marshall
5 Replies
4. Shell Programming and Scripting
Hi All,
I want some command to migrate between the directories as below:
read x
cd /export/home/$x
Please advise.
Cheers,
Shazin (11 Replies)
Discussion started by: Shazin
11 Replies
5. HP-UX
Hi,
I want to Migrate my machine from HP-UX 11 to HP-UX 11.i, regarding this i would like to know the difference and the advances b/w these two.
If anyone have cookbook HP-UX 11 to HP-UX 11.i, then provide the link to me.
Thanks in Advance.
Sarwan (3 Replies)
Discussion started by: sarwan
3 Replies
6. HP-UX
Hi to all,
I am migrating HP-UX 11.0 to HP-UX 11.i, The following list are the components which i used in HP-UX 11.0, Whether I can use this same components in HP-UX 11.i or I should upgrade any of software version with respect to HP-UX 11.i.
Oracle 8.1.7
Tuxedo 8.0
BEA Message queue... (0 Replies)
Discussion started by: sweta
0 Replies
7. UNIX for Dummies Questions & Answers
My company is considering migrating from HP unix to Solaris just to get two more years of support for a particular software product. My question is just how much of an effort is it to do this migration? Are you aware of any migration tools to assist us in this migration? Thanks (1 Reply)
Discussion started by: jkuchar747
1 Replies
8. UNIX for Dummies Questions & Answers
What's the relationship beteew IDS and informix ? (1 Reply)
Discussion started by: wuhuatao
1 Replies
9. UNIX for Dummies Questions & Answers
Hello all,
I was given an old computer that has freebsd 4.3 installed. The computer is a HP 4GB 300Mhz built in 1998. Apparently, the computer has not been used as the /home directory is empty of files.
I want to migrate away from Micro$oft and learn unix but am not a programmer and finding... (4 Replies)
Discussion started by: phredro
4 Replies
10. UNIX for Dummies Questions & Answers
I'm looking for a sample plan for migrating my OS from NT to UNIX that I can build a project plan on. Does anyone know of a resource? (2 Replies)
Discussion started by: llehew
2 Replies
USERMOD(8) System Manager's Manual USERMOD(8)
NAME
usermod - Modify a user account
SYNOPSIS
usermod [-c comment] [-d home_dir [-m]]
[-e expire_date] [-f inactive_time]
[-g initial_group] [-G group [,...]]
[-l login_name] [-p passwd]
[-s shell] [-u uid [-o]] [-L|-U] login
DESCRIPTION
The usermod command modifies the system account files to reflect the changes that are specified on the command line. The options which
apply to the usermod command are:
-c comment
The new value of the user's password file comment field. It is normally modified using the chfn(1) utility.
-d home_dir
The user's new login directory. If the -m option is given the contents of the current home directory will be moved to the new home
directory, which is created if it does not already exist.
-e expire_date
The date on which the user account will be disabled. The date is specified in the format YYYY-MM-DD.
-f inactive_days
The number of days after a password expires until the account is permanently disabled. A value of 0 disables the account as soon as
the password has expired, and a value of -1 disables the feature. The default value is -1.
-g initial_group
The group name or number of the user's new initial login group. The group name must exist. A group number must refer to an already
existing group. The default group number is 1.
-G group,[...]
A list of supplementary groups which the user is also a member of. Each group is separated from the next by a comma, with no inter-
vening whitespace. The groups are subject to the same restrictions as the group given with the -g option. If the user is currently
a member of a group which is not listed, the user will be removed from the group
-l login_name
The name of the user will be changed from login to login_name. Nothing else is changed. In particular, the user's home directory
name should probably be changed to reflect the new login name.
-p passwd
The encrypted password, as returned by crypt(3).
-s shell
The name of the user's new login shell. Setting this field to blank causes the system to select the default login shell.
-u uid The numerical value of the user's ID. This value must be unique, unless the -o option is used. The value must be non-negative.
Values between 0 and 99 are typically reserved for system accounts. Any files which the user owns and which are located in the
directory tree rooted at the user's home directory will have the file user ID changed automatically. Files outside of the user's
home directory must be altered manually.
-L Lock a user's password. This puts a '!' in front of the encrypted password, effectively disabling the password. You can't use this
option with -p or -U.
-U Unlock a user's password. This removes the '!' in front of the encrypted password. You can't use this option with -p or -L.
CAVEATS
usermod will not allow you to change the name of a user who is logged in. You must make certain that the named user is not executing any
processes when this command is being executed if the user's numerical user ID is being changed. You must change the owner of any crontab
files manually. You must change the owner of any at jobs manually. You must make any changes involving NIS on the NIS server.
FILES
/etc/passwd - user account information
/etc/shadow - secure user account information
/etc/group - group information
SEE ALSO
chfn(1), chsh(1), passwd(1), crypt(3), groupadd(8), groupdel(8), groupmod(8), useradd(8), userdel(8)
AUTHOR
Julianne Frances Haugh (jockgrrl@ix.netcom.com)
USERMOD(8)