04 Permissions Flashcards

1
Q

What are the three (3) group permissions?

A

Owner
Group
All Users

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

What are the three (3) permission types?

A

Read
Write
Execute

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

Permission type that allows the user to view the contents of the file.

A

Read

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

Permission type that allows the user to modify a file or directory.

A

Write

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

Permission type that allows the user to run a file or view the contents of a directory.

A

Execute

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

What are the permission commands? (8)

A

id
chmod
umask
su
sudo
chown
chgrp
passwd

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

Permission command that displays user identity.

A

id

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

Permission command that allows you to modify the access rights of a file/directory.

A

chmod

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

Permission command that sets the default file permissions.

A

umask

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

Permission command that allows you to temporarily become the superuser.

A

su

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

Permission command that allows you to execute a command as another user.

A

sudo

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

Permission command that allows you to change a file’s ownership.

A

chown

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

Permission command that allows you to change a file’s group ownership.

A

chgrp

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

Permission command that allows you to change a user’s password.

A

passwd

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

What are the attributes for common file types?

A

-
d
l
c
b

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

Attribute that represents a regular file type.

A

-

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

Attribute that represents a directory type.

A

d

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

Attribute that represents a symbolic link.

A

l

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

Attribute that represents a character special file type.

A

c

20
Q

Attribute that represents a block special file type.

A

b

21
Q

This file type refers to a device that handles data as a stream of bytes, such as terminal or modem.

A

Character special file

22
Q

This file type refers to a device that handles data in blocks, such as hard-drive or CD-ROM.

A

Block special file

23
Q

What is the file permission value if it sets no restriction on permissions and anybody can do anything?

A

777 (rwxrwxrwx)

24
Q

What is the file permission value if the file’s owner may read, write, and execute the file; all other may read and execute the file?

A

755 (rwxr-xr-x)

25
Q

What is the file permission value if the file’s owner may read, write, and execute the file but the others are not given any rights?

A

700 (rwx——)

26
Q

What is the file permission value if all users may read or modify the file?

A

666 (rw-rw-rw-)

27
Q

What is the file permission value if the owner may read and modify the file, while all others only read the file?

A

644 (rw-r–r–)

28
Q

What is the file permission value if the owner may read and modify the file but all others have not rights? Ideals for data files that want to be kept private.

A

600 (rw——-)

29
Q

What is the directory permission value if there are no set restrictions and anybody may list files, create new files in the directory, and delete files in the directory?

A

777 (rwxrwxrwx)

30
Q

What is the directory permission value if the directory owner has full access, but all others may only list and not create files nor delete them?

A

755 (rwxr-xr-x)

31
Q

What is the directory permission value if only the owner has full access?

A

700 (rwxrwxrwx)

32
Q

What is the symbol used for the directory or file owner?

A

u

33
Q

What is the symbol used for the group owner?

A

g

34
Q

What is the symbol used for others?

A

o

35
Q

What is the symbol used for the combination of u, g, and o?

A

a

36
Q

What is the symbolic notation that allows to execute permission for the owner?

A

u+x

37
Q

What is the symbolic notation that removes the execute permission from the owner?

A

u-x

38
Q

What is the symbolic notation that allows execute permission for the owner, group, and everyone else?

A

+x

39
Q

What is the symbolic notation that removes the read and write permission from anyone besides the owner and group owner?

A

o-rw

40
Q

What is the symbolic notation that sets the group owner and anyone besides the owner to have read and write permission?

A

go=rw

41
Q

What is the symbolic notation that add execute permission for the owner and sets the permission for the group and others to read and execute?

A

u+x, go=rw

42
Q

chown argument that results in the ownership of the file is changed from its current owner to user “nika.”

A

nika

43
Q

chown argument that results in the ownership of the file is changed from its current owner to user “nika” and from its current group owner to group “users”.

A

nika:users

44
Q

chown argument that results in the ownership of the file is changed from its current group owner to group “admins”.

A

:admins

45
Q

chown argument that results in the ownership of the file is changed from its current owner to user “nika.” The group owner is the login group of user “nika” too.

A

nika: