Go to the previous, next chapter.
#df (This displays information on the file systems currently in use. #/etc/chpt -q /dev/rrzNc (Where "N" is the SCSI ID of the disk. This displays the entire partition table for the disk.)
Using the tables produced by these commands you may choose a disk partition which is suitable for the user files, and which does not overlap any of the partitions already in use. Once you have selected a partition create a file system on as shown below. NB: This will destroy any data previously held on this partition.
#/etc/newfs -m % -i nnnn /dev/rrzNp rzxx
The integrity of the new file system must now be checked as follows:
#/etc/fsck /dev/rznp
You may then mount the new file system as shown below:
#mkdir /usr/users #/etc/mount /dev/rznp /usr/users
Do not forget to edit the file /etc/fstab so that this partition is mounted on subsequent reboots of the machine. Add the following line replacing rznp with the correct disk number and partition label:
/dev/rznp:/usr/users:rw:1:3:ufs::
See the "ULTRIX Guide to Disk Maintenance"(20) for further information concerning file systems and disk partitions.
When creating a new user account on your machine the user identification (uid) and group identification (gid) numbers should correspond with those in the central database. Either the phone command of ULTRIX or the who and userinfo commands on CERNVM may be used to obtain these numbers. See section Some Useful Tools, of this guide for a description of how to install phone.
c3:*:1028:
The next step is to use the command /etc/adduser to add the new user account to the system password file (/etc/passwd). The adduser command will also create a home directory for the user into which it will copy the files .cshrc, .login and .profile from the /usr/skel directory.
The default directory for users in ULTRIX is /usr/users, however, it is recommended that, at CERN, the users be grouped according to the CERN group identification. Thus a user's home directory path may be something like:
/usr/users/groupcode/username (e.g. /usr/users/c3/lovell)
If you choose to follow this recommendation do not take the defaults that adduser will prompt you with. Instead reply with the CERN groupcode when asked for the login group (e.g. c3) and enter the path /usr/users/c3 when prompted for the parent directory.