Q3 Flashcards
(24 cards)
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
Minimum permissions to run a binary file
Execute
Minimum permission required for a file to be copied
read
User PrjMgr copies the file Plan.Q01 to directory /archive/Mgt/Q01 using the following command:
cp /home/PrjMgr/Plan.Q01 /archive/Mgt/Q01/
What are the minimum permissions required for the directories PrjMgr and Mgt
source directory X, for target directory W and X
user1 moves the file budget.2015 using the following command:
mv /home/user1/budget.2015 /home/accounts/
The minimum file permission required for source and target directories are:
write and execute permission for both
/home/user1 and
/home/accounts directory
What is the permission, in octal mode, of the file MySQL.log, given the file listing:
-rwxrw–w- 2 maotse students 15 Jan 25 12:37 MySQL.log
762
The account in Linux that has the most access to system resources
root
T/F - To move a file, a user must have appropriate permission in the source and target directories, but does not need any permission for the file itself.
True
The file permission for a file report.draft in current directory is
-rw-rw-r–,
identify the chmod command that adds execute permissions for owner and removes read permission from others. Permission for group should remain unchanged.
chmod 760 report.draft
Identify the octal number associated with the permission
-rwxrwxrwx
777