Q3 Flashcards

1
Q

What will these do?

chmod ugo+rwx /public
chmod 777 /public

A

Give everyone access to the /public directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What will these do

chmod a+rwx /public
chmod ugo=rwx /public

A

Give everyone access to the /public directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Text files, scripts, or executables use the _ character in linux, directories use the _ file name

A

-, d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Block devices use the _ character, character devices use the _ character

A

b, c

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In Linux the named pipe or FIFO (first in first out) uses the _ character

A

p

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The symbolic link uses the _ character

A

l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

DIRECTORY PERMISSION- Minimum permission for a file from the directory to be deleted

A

W and X are needed for the directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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?

A

rwx -wx -wx for directory

rw- -w- -w- for file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Identify the octal number associated with the permission

-rw- rw- r–

A

664

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

T/F - umask can provide execute permissions for scripts

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

T/F - Execute permission to a shell script must be explicitly provided (cannot use umask)

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Minimum permissions to run a shell script

A

R and X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Command to change owner of Strategy.Q03 to cfo and the group to ExecCmt

A

chown cfo.ExecCmt Strategy.Q03

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

A

chown cfo.ExecCmt Strategy.Q03

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Minimum permissions to run a binary file

A

Execute

17
Q

Minimum permission required for a file to be copied

A

read

18
Q

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

A

source directory X, for target directory W and X

19
Q

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:

A

write and execute permission for both

/home/user1 and

/home/accounts directory

20
Q

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

A

762

21
Q

The account in Linux that has the most access to system resources

A

root

22
Q

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.

A

True

23
Q

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.

A

chmod 760 report.draft

24
Q

Identify the octal number associated with the permission

-rwxrwxrwx

A

777