Use the useradd command to create three new
users bill, kate and jane e.g.
useradd jane ccreate user
passwd
jane give password
cat /et/cpasswd and cat /etc/shadow. check users where created
su jane. log on as another user
Home Directories
mkdir
jane make directory
ls
–l show details on current dir
chown
jane jane change owner
chgrp
users jane change group
Groups
To create a new group:
groupadd
myGroup
To add users to this
group
groupmod
–A jane myGroup (do this for two users)
reads out a file
while read names
do
echo $names
done < fileName
No comments:
Post a Comment