Ch.9 Permissions Flashcards

1
Q

What does ssh stand for, and what does it allow?

A

Secure Shell. Remote users can log in via ssh and operate the computer if it is attached to a network or the internet.

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

What does command id do

A

display user identity

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

what does command chmod do

A

change a file’s mode

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

what does command umask do

A

set the default file permissions

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

what does command su do

A

run a shall as another user

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

what does command sodu do

A

execute a command as another user

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

what does command chown do

A

change a file’s owner

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

what does command chgrp do

A

Change a file’s group ownership

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

what does command passwd do

A

change a user’s password

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

How are access rights to files and directories defined?

A
  1. read access 2. write access 3. execute access
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

using ls, what are the first 10 characters of the listing?

A

File attributes

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

What is the attribute for a regular file

A

-

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

What is the attribute for a directroy

A

d

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

what is the attribute for a symbolic link

A

1

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

what are the attribute for a character special file?

A

c

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

what is the attribute for a block special file

A

b

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

What does attribute r allow

A

Allows a file to be opened and read. Allows a directory’s contents to be listed if the execute attribute is also set.

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

What does attribute w allow?

A
Allows a file to be written to or
truncated, however this attribute
does not allow files to be
renamed or deleted. The ability
to delete or rename files is
determined by directory
attributes.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What does attribute x allow?

A
Allows a file to be treated as a
program and executed. Program
files written in scripting
languages must also be set as
readable to be executed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

-rwx——

A

A regular file that is readable, writable, and executable by the
file’s owner. No one else has any access.

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

-rw——-

A

A regular file that is readable and writable by the file’s owner.
No one else has any access.

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

-rw-r–r–

A

A regular file that is readable and writable by the file’s owner.
Members of the file’s owner group may read the file. The file is
world-readable

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

-rwxr-xr-x

A

A regular file that is readable, writable, and executable by the
file’s owner. The file may be read and executed by everybody
else.

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

-rw-rw—-

A

A regular file that is readable and writable by the file’s owner
and members of the file’s group owner only.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
lrwxrwxrwx
A symbolic link. All symbolic links have “dummy” permissions. The real permissions are kept with the actual file pointed to by the symbolic link.
26
drwxrwx---
A directory. The owner and the members of the owner group may enter the directory and create, rename and remove files within the directory.
27
drwxr-x---
- A directory. The owner may enter the directory and create, rename, and delete files within the directory. Members of the owner group may enter the directory but cannot create, delete, or rename files.
28
Who are the only entites that can change the mode of a file or directory?
file's owner or superuser
29
What is octal number representation?
Base 8
30
What is hexadecimal number representation?
base 16
31
What does binary counting look like?
0, 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011...
32
What does octal counting look like?
0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 20, 21...
33
What does hexadecimal counting look like?
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, 10, 11, 12, 13...
34
What is the 0 octal binary?
000
35
what is the 1 octal binary
001
36
What is the 2 octal binary
010
37
what is the 3 octal binary?
011
38
what is the 4 octal binary
100
39
what is the 5 octal binary
101
40
what is the 6 octal binary
110
41
what is the 7 octal binary
111
42
what file mode is binary 000
---
43
what file mode is binary 001
--x
44
what file mode is binary 010
-w-
45
what file mode is binary 011
-wx
46
what file mode is binary 100
r--
47
what file mode is binary 101
r-x
48
what file mode is binary 110
rw-
49
what file mode is binary 111
rwx
50
what octal is file mode ---
0
51
what octal is file mode --x
1
52
what octal is file mode --w-
2
53
what octal is file mode -wx
3
54
what octal is file mode r--
4
55
what octal is file mode r-x
5
56
what octal is file mode rw-
6
57
what octal is file mode rwx
7
58
What are the 5 most commonly used three octal digit arguments?
7 (rwx) 6 (rw-) 5 (r-x) 4 (r--) and 0(---)
59
Chmod symbolic notation short for user
u
60
chmod symbolic notation for group owner
g
61
chmod symbolic notation short for world
o
62
chmod symbolic notation short for all
a
63
what is assumed if no character is specified for chmod?
All
64
Add execute permission for the owner.
chmod u+x
65
Remove execture permission from the owner
chmod u-x
66
Add execute permission for the owner, group, and world. This is equivalent to a+x.
+x
67
Remove the read and write permissions from anyone besides the owner and group owner.
o-rw
68
Set the group owner and anyone besides the owner to have read and write permission. If either the group owner or the world previously had execute permission, it is removed.
go=rw
69
Add execute permission for the owner and set the permissions for the group and others to read and execute. Multiple specifications may be separated by commas.
u+x,go=rx
70
How do you use su to execute a singel command rather than starting a new interactive command?
su -c 'command'
71
To see what privileges are granted by sudo
sudo -l
72
The syntax of chown looks like | this:
chown [owner][:[group]] file...