Linux midterm 2 review

Linux midterm 2 review - What to study: labs (lab6, lab7,...

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

View Full Document Right Arrow Icon
What to study : labs (lab6, lab7, and the first part of lab8), lecture notes (#8 to #14), quizzes (#3 and #4), review document 1-The command that will give full access permissions to the owner of file1 which is located in current working directory: chmod u+rwx file1 chmod u=rwx file1 2-What is the equivalent permissions in octal mode for "rwxr-xr--"? 754 3-If the current value of umask is 033, what is the default permissions given to a directory? 744 4-Identify the command that is used to change file's owner chown 5-What is the equivalent symbolic permissions for "650"? rw-r-x--- 6-To set the default file permissions to rw-r--r--, you should set umask to ? 022 7-Identify the file that is used to define default runlevel. /etc/inittab 8-The command that will create a new user account: username:user1, home directory:/home/userone useradd -d /home/userone user1 9-What is the command used to delete user1 account and its home directory? userdel -r user1 10-What is the command used to change to single user mode? Init 1 11-Identify the option used for useradd command to turn off the behavior of creating a group with the same name as username. -n Which runlevel is used to reboot? 6 12-How does Linux use 9 digits to represent the file permissions for different user and groups: owner, group, others ( u, g, o ) Thus, each Linux file and/or directory uses 9 bits for determining File Access  Privileges, separated into 3 bytes of information each for:  user user  / owner owner   access rights group group   access rights other other   access rights Understand the three basic access permissions in Linux: r w x What are their meanings to files and directories? In Linux, 3 types of access permissions or privileges can be  associated with a file read  ( r ) [File] can view file content (with application) [Dir] can view directory content write  ( w ) [File] can modify file content execute  ( x ) [File] can be executed Note : Binary files require only the execute permission; script files require both read 
Background image of page 1

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

View Full DocumentRight Arrow Icon
and execute permissions.  [Dir] change into a directory with the cd  command 13-File permission notations: symbolic mode and octal mode Know how to do conversions between the two modes Symbolic mode r (read) w (write) x (execute) Absolute or octal mode r(read) r - - 100 2^2 = 4 w(write) - w - 010 2^1 = 2 x(execute) - - x 001 2^0 = 1 14-Change file permissions using chmod command: Symbolic mode and octal mode chmod [xyz] [object] Example Example  :  chmod 644 myfile
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/17/2008 for the course LINUX CST8207 taught by Professor Normanhann during the Spring '08 term at Algonquin College.

Page1 / 6

Linux midterm 2 review - What to study: labs (lab6, lab7,...

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

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