File Permissions Homework - Date: 5/2/2003 Course: Unix...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Date: 5/2/2003 Course: File Permission Exercises 1. What is the default permission for a regular file? For a directory? For a symbolic link? For a hard link? The default permission for a regular file is 666 (rw- rw- rw-) For a directory, its 777 (rwx rwx rwx) For a symbolic link is the same, because essentially is a file. A hard link has the same permission as the file it “points” to, because the permissions are stored in the inode table and they both share the same in- ode entry in the table. 2. If you set umask 022, what permission will you get when you create a regular file? A directory? A symbolic link? For a regular file you will have 666 – 022 = 644 (rw- r-- r--) For a directory it will be 777 – 022 = 755 (rwx r-x r-x) For a symbolic link will be the same as a regular file 644 (rw- r-- r--) 3. Explain, in general terms, what the difference would be between umask 022 and umask 002. A 022 umask will get rid of the write permission on both group and others,
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/01/2010 for the course CS 072 taught by Professor Reneea.fecteau during the Spring '03 term at San Jose State University .

Page1 / 3

File Permissions Homework - Date: 5/2/2003 Course: Unix...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online