CHAPTER EIGHT Flashcards

(27 cards)

1
Q
A
  1. Username
  2. Password placeholder (x)
  3. User ID (UID) number for each user
  4. Group ID (GID) primary group
  5. Comment
  6. Home directory - personal folder
  7. Shell -command line environment used
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Command: su -

A

Become root user

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

Command: useradd -m name

A

Create user or home folder

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

Command: usermod -s/bin/bash name

A

Change shell

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

Command: usermod -u 444 name

A

Change user id

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

Command: usermod - - comment “tom cat” name

A

Add comment

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

The skeleton folder

A

This folder contains default files and folders that are automatically copied into the home directory of any new user when they are created using the useradd -m command.

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

Group

A

A group is a collection of users who share the same role or purpose. All groups have their info stored in the file/etc/group.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
A
  1. Group name
  2. X group password
  3. GID group id number
  4. Stores usernames of the group members
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Command: usermod -aG cartoon name

A

Add one user

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

Command: usermod -aG developer name

A

Add many users to a group

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

Primary groups

A

Every user in Linux must be a member of a primary group. They are referred to as login groups. by default when a new user is created, a group is also created with the same name as the user.

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

secondary groups

A

a user may or may not be a member of a secondary group. secondary groups are also sometimes referred to as supplementary groups. think of it as any group that a user is a member of aside from the user’s primary group

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

check ownership

A

chown is - I filename

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

change ownership and check ownership

A

chown user filename

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

change just group ownership

A

chown :group filename

17
Q

premission types

A

r - read
w - write
x - execute

18
Q

permissions for a file

A

r - be able to view the contents
w - be able to edit the file contents
x - able to run file if executable

19
Q

Permissions for directory

A

r - be able to list the directory contents
w - be able to create and remove files in the directory
x - be able to change to the directory

20
Q

Command: chmod o+w filename

A

add write for others

21
Q

Command: chmod a+x filename

A

add execute for everyone

22
Q

command: chmod g=r filename

A

set read-only for group

23
Q

command: chmod ug=rwx filename

A

Give full r,w,x control

24
Q

Command: chmod a= filename

A

remove all permissions

25
octal Notion
instead of the letters r, w and x you can used the numbers 4,2 and 1 to set file permissions
26
three different streams of data
1. standard input =stdin 2. standard output = stdout 3. standard error = stderr
27
file descriptor
is a number that uniquely identifies an open file in a computer's operating system.