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
Q

lrwxrwxrwx

A

A symbolic link. All symbolic links have “dummy”
permissions. The real permissions are kept with the actual file
pointed to by the symbolic link.

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

drwxrwx—

A

A directory. The owner and the members of the owner group
may enter the directory and create, rename and remove files
within the directory.

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

drwxr-x—

A
  • 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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Who are the only entites that can change the mode of a file or directory?

A

file’s owner or superuser

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

What is octal number representation?

A

Base 8

30
Q

What is hexadecimal number representation?

A

base 16

31
Q

What does binary counting look like?

A

0, 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011…

32
Q

What does octal counting look like?

A

0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 20, 21…

33
Q

What does hexadecimal counting look like?

A

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, 10, 11, 12, 13…

34
Q

What is the 0 octal binary?

A

000

35
Q

what is the 1 octal binary

A

001

36
Q

What is the 2 octal binary

A

010

37
Q

what is the 3 octal binary?

A

011

38
Q

what is the 4 octal binary

A

100

39
Q

what is the 5 octal binary

A

101

40
Q

what is the 6 octal binary

A

110

41
Q

what is the 7 octal binary

A

111

42
Q

what file mode is binary 000

A
43
Q

what file mode is binary 001

A

–x

44
Q

what file mode is binary 010

A

-w-

45
Q

what file mode is binary 011

A

-wx

46
Q

what file mode is binary 100

A

r–

47
Q

what file mode is binary 101

A

r-x

48
Q

what file mode is binary 110

A

rw-

49
Q

what file mode is binary 111

A

rwx

50
Q

what octal is file mode —

A

0

51
Q

what octal is file mode –x

A

1

52
Q

what octal is file mode –w-

A

2

53
Q

what octal is file mode -wx

A

3

54
Q

what octal is file mode r–

A

4

55
Q

what octal is file mode r-x

A

5

56
Q

what octal is file mode rw-

A

6

57
Q

what octal is file mode rwx

A

7

58
Q

What are the 5 most commonly used three octal digit arguments?

A

7 (rwx) 6 (rw-) 5 (r-x) 4 (r–) and 0(—)

59
Q

Chmod symbolic notation short for user

A

u

60
Q

chmod symbolic notation for group owner

A

g

61
Q

chmod symbolic notation short for world

A

o

62
Q

chmod symbolic notation short for all

A

a

63
Q

what is assumed if no character is specified for chmod?

A

All

64
Q

Add execute permission for the owner.

A

chmod u+x

65
Q

Remove execture permission from the owner

A

chmod u-x

66
Q

Add execute permission for the owner, group, and world. This is
equivalent to a+x.

A

+x

67
Q

Remove the read and write permissions from anyone besides the
owner and group owner.

A

o-rw

68
Q

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.

A

go=rw

69
Q

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.

A

u+x,go=rx

70
Q

How do you use su to execute a singel command rather than starting a new interactive command?

A

su -c ‘command’

71
Q

To see what privileges are granted by sudo

A

sudo -l

72
Q

The syntax of chown looks like

this:

A

chown [owner][:[group]] file…