Changes

Jump to: navigation, search
INVESTIGATION 2: FILE PERMISSIONS
# Issue the following Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">ls -ld ~/shared</span><br><br>What are the permissions for this newly-created directory?<br>Can other users access the directory pathname '''<span style="font-family:courier">~youruserid/shared</span>''' ?<br><br>
# Issue the following Linux command (without an argument): <span style="color:blue;font-weight:bold;font-family:courier;">umask</span><br><br>'''NOTE:''' You should see a '''four-digit octal''' number. Drop the leading zero on the left to obtain the '''default umask value'''.<br><br>
# Perform a '''mathematical calculation''' by taking the octal number '''777''' and <u>subtracting</u><br>the default umask value you determined in the previous step. What is the result?<br><br>
# Convert that octal number result to a '''binary''' number. What does that represent as newly created directory permissions?<br>Does that correspond to the permissions for the newly created '''~/shared''' directory?<br><br>
# Repeat '''steps #27''' and '''#28''' to see how a umask setting of '''077''' would affect permissions of newly-created directories.<br><br>
13,420
edits

Navigation menu