cramden:x:103:101:Ralph Cramden:/usr/people/cramden:/bin/csh
Change the name field and the default directory field as follows:
ralph
:x:103:101:Ralph Cramden:/usr/people/ralph:/bin/csh
For consistency's sake, the home directory should always have the same name as the user account. If your system has shadow passwords enabled, you will see the character ''x'' in place of the encoded password in the user's entry. For more information on shadow passwords, see the IRIX Admin: Backup, Security, and Accounting guide.
When you save and exit the file, you may see an error message that the file is ''read-only'' or that write permission is denied. This is a protection that IRIX puts on the /etc/passwd file. Use the command:
:w!
in the vi(1) editor to override this protection. If you are using jot(1), the file can be saved with no difficulty. For complete information on the commands available in vi(1), see the vi(1) reference page.
cramden:XmlGDVKQYet5c:::::::
Change the name in the entry to ''ralph'' as follows:
ralph:XmlGDVKQYet5c:::::::
When you have made the change, save and exit the file. As with /etc/passwd, if you are using vi(1), you may encounter an error message.
mv cramden ralph
To assign a new password, perform these steps:
For example, if the user ralph forgets his password, enter:
passwd ralph
New password: 2themoon
Re-enter new password: 2themoon
Because you are logged in as the superuser (root), you are not prompted for an old password.
#
ralph:*:103:101:Ralph Cramden:/usr/people/ralph:/bin/csh
find . -user name -print
Archive and remove any files that are found.
To change the default group from 101 to 105, simply change the field in the passwd file entry as follows:cramden:+:103:101:Ralph Cramden:/usr/people/cramden:/bin/csh
Be certain before you make any change, however, that group 105 is a valid group in your /etc/groups file and that the user is a member of the group. For more information on creating groups, see "Adding User Groups Using Shell Commands".cramden:+:103:105:Ralph Cramden:/usr/people/cramden:/bin/csh
It would not be long before Ralph came to the administrator and requested to have the misspelling of his name corrected. In this case, you would change the line to read:cramden:x:103:101:Ralph Crumdin:/usr/people/cramden:/bin/csh
cramden:x:103:101:Ralph Cramden:/usr/people/cramden:/bin/csh
cramden:x:103:101:Ralph Cramden:/usr/people/cramden:/bin/csh
In this example, the home directory is /usr/people/cramden. If you wish to change the home directory to a recently added file system called disk2, change the entry to read:
cramden:x:103:101:Ralph Cramden:/disk2/cramden:/bin/csh
When you have made your changes, write and exit the file.
ralph:x:103:101:Ralph Cramden:/usr/people/ralph:/bin/csh
The default shell is /bin/csh. To change the user's default shell, change the field in the passwd entry to the desired program. For example, to change Ralph's shell to /bin/sh, edit the line to look like this:
ralph:x:103:101:Ralph Cramden:/usr/bin/ralph:/bin/sh