70 likes | 184 Views
Exercise Two: Uploading an ASCII file to UHUNIX. Part 2: Directories. donna Bair-Mundy. Check for existing public_html directory. ls. %. mail public_html %. I have a public_html directory. I do not have a public_html directory. Create a public_html directory. mkdir. public_html. %.
E N D
Exercise Two: Uploading an ASCII file to UHUNIX Part 2: Directories donna Bair-Mundy
Check for existing public_html directory ls % mail public_html % I have a public_html directory I do not have a public_html directory
Create a public_html directory mkdir public_html % ls % mail public_html %
Check access permissions % ls -l drwx------ 2 donnab 3584 Apr 10 2002 mail -rw------- 1 donnab 45927 May 8 11:59 myfile.txt drwxr-xr-x 5 donnab 1024 Mar 20 13:51 public_html % r w x r - x r - x owner group public Access rights are correct Change the access rights
Changing access rights to public_html % ls -l drwx------ 5 donnab 1024 Mar 20 13:51 public_html % chmod 755 public_html % ls -l drwxr-xr-x 5 donnab 1024 Mar 20 13:51 public_html r w x r - x r - x owner group public
Changing access rights to your personal home directory % chmod 711 . r w x –– x –– x % 1 1 1 0 0 1 0 0 1 7 1 1 ls -a . .. public_html
Log off UHUNIX2 % logout You are now logged out from the Sun Tue Jul 8 11:20:18 HST 2003 Proceed to Part 3