FSU CNT 4603 - Lecture Notes: Adding users (57 pages)

Previewing pages 1, 2, 3, 4, 26, 27, 28, 54, 55, 56, 57 of 57 page document View the full content.
View Full Document

Lecture Notes: Adding users



Previewing pages 1, 2, 3, 4, 26, 27, 28, 54, 55, 56, 57 of actual document.

View the full content.
View Full Document
View Full Document

Lecture Notes: Adding users

82 views

Lecture Notes


Pages:
57
School:
Florida State University
Course:
Cnt 4603 - Computer and Network System Administration (3).

Unformatted text preview:

Spring 2009 Adding users Unix Linux Straightforward but tedious Chapter 6 in USAH CNT 4603 Spring 2009 Adding users Unix A number of C library calls getpwent etc exist to access entries in the password file etc passwd Many UNIX commands depend on the file being available readable with the proper format Create an entry in etc passwd selecting a unique login name unique UID appropriate GID unique home directory and appropriate shell Older Unix Linux systems limited username to 8 characters newer ones often don t but some tools CNT 4603 Spring 2009 still only show 8 characters For instance look at the difference in w and who output for long usernames w 06 44 59 up 2 days 1 45 6 users load average 0 00 0 00 0 05 USER TTY FROM LOGIN IDLE JCPU PCPU WHAT testtest tty2 06 41 2 41 0 00s 0 00s bash testtest tty3 06 42 1 57 0 00s 0 00s bash who testtest01 tty2 2008 06 04 06 41 testtest02 tty3 2008 06 04 06 42 fsucs acer1 Slides The password file requires 7 separated fields CNT 4603 Spring 2009 Adding users Unix Name Password Directory Shell Example encrypted UID GID GECOS Home user1 f9cPz5ilB5N0o 501 501 USER1 home faculty user1 bin tcsh CNT 4603 Spring 2009 Adding users Unix Some UNIXes BSD provide vipw which will lock out others from editing the etc passwd file simultaneously and may also include some syntax checking just like visudoer CNT 4603 Spring 2009 Unix users grouping them Make sure the group in etc passwd exists in etc group which has the format groupname password gid user list groupname is the name of the group CNT 4603 Spring 2009 Unix users grouping them gid is the group s numerical ID within the system it must be unique user list is a comma separated list of users allowed in the group used for multiple group memberships by an individual CNT 4603 Spring 2009 Unix users grouping them Example root x 0 root bin x 1 root bin daemon daemon x 2 root bin daemon sys x 3 root bin adm adm x 4 root adm daemon tty x 5 disk x 6 root lp x 7 daemon lp mem x 8 kmem x 9 wheel x



View Full Document

Access the best Study Guides, Lecture Notes and Practice Exams

Loading Unlocking...
Login

Join to view Lecture Notes: Adding users and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture Notes: Adding users and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?