>Can some one tell me what comands in terminal will >accomplish this. ......
>Can some one tell me what comands in terminal will >accomplish this.
... well, RTFM for the firsthand !!!
>Verify where you are (within the file system).
>Create a new directory called "Lab1"
>Get a copy of the password file and put it in the Lab1 >directory; the original file can be found in the /etc directory.
cp /etc/passwd Lab1/
>Create another directory entry "pass2" referring the above >copy.
ln -s passwd Lab1/pass2
>Change access permissions for the directory and the file, >so that:
>a) only you and members of the "adm" group can read the >file
chmod 440 Lab1/passwd; chgrp adm Lab1/passwd; chmod 755 Lab1
>b) only you and members of the "adm" group can read it and >no one can modify it.
>c) members of the "adm" group can access and read the >file, but they cannot read the directory
>d) no one but you can enter the directory, but every one can >read or write (modify) it.
>Make any necessary permission changes and remove the >pass2 "file".
rm -f Lab1/pass2
>Has your copy of the password file been destroyed?
>Remove the whole Lab1 directory and its contents.
rm -rf Lab1
... but why do you need these commands at all?