OS515_Lecture_4 Flashcards

1
Q

to view permissions from the command line use…?

A

ls -l

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

(r)ead…?

A

view the file

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

(w)rite…?

A

modify the file

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

e(x)ecute…?

A

use the file as a command.

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

chmod command is used to modify…?

A

file permissions.

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

The first argument to chmond uses a {ugoa}[+-=]{rwx} syntax to …?

A

describe how the permissions should be changed.

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

To change the owner of a file use…?

A

chown.

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

To change the group of a file use…?

A

chgrp

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

Who can chown or chgrp…?

A

only the root user can use chown, a user can chgrp a file if they are a member of the group they wish to change the file to.

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

Who can modify file ownerships and permissions…?

A

chmod - root and the file owner
chgrp - root and the file owner (only to subscribed groups)
chown - only root.

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

How do directories use permissions…?

A

regular file, uses (r)ead to view the file, (w)rite to modify the file, e(x)ecute to use the file as a command.

Directory, (r)ead to list directory contents, (w)rite add or remove files, and e(x)ecute to “search” for a known file within the directory.

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

The chmod command can use an…?

A

alternate octal syntax. (The octal syntax is often quicker and more exacting)

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

Linux creates files with a default mode of..?

A

666 (rw-rw-rw)

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

Linux creates directories with a default mode of…?

A

777 (rwxrwxrwx)

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

Every process possesses a “umask” parameter which…?

A

masks out certain of these default permissions.

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

In Read Hat Enterprise Linux, the default umask for standard users is…?

A

002

17
Q

The bash shell’s umask is modified with the…?

A

umask command.