Q3 Flashcards
What will these do?
chmod ugo+rwx /public
chmod 777 /public
Give everyone access to the /public directory
What will these do
chmod a+rwx /public
chmod ugo=rwx /public
Give everyone access to the /public directory
Text files, scripts, or executables use the _ character in linux, directories use the _ file name
-, d
Block devices use the _ character, character devices use the _ character
b, c
In Linux the named pipe or FIFO (first in first out) uses the _ character
p
The symbolic link uses the _ character
l
DIRECTORY PERMISSION- Minimum permission for a file from the directory to be deleted
W and X are needed for the directory
The user has set the umask to 044. A new directory is created, What will be the directory’s permission? Convert to binary and perform one’s complement.
What would the permission be if it was a file?
rwx -wx -wx for directory
rw- -w- -w- for file
Identify the octal number associated with the permission
-rw- rw- r–
664
T/F - A user only needs W and X permissions in the directory to delete a file. No permissions are needed for the file itself.
True
T/F - umask can provide execute permissions for scripts
False
T/F - Execute permission to a shell script must be explicitly provided (cannot use umask)
True
Minimum permissions to run a shell script
R and X
Command to change owner of Strategy.Q03 to cfo and the group to ExecCmt
chown cfo.ExecCmt Strategy.Q03
The root user wants to change the owner to cfo and group to ExecCmt for file Strategy.Q03.
Identify the command that will achieve the result
chown cfo.ExecCmt Strategy.Q03