2.4 Given a scenario, configure and execute remote connectivity for system management Flashcards

1
Q

Command: su

A

Substitute User, allows switching accounts to run commands as a user, i.e. root
Syntax: su -[user]

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

Command: sudo

A

allows user to execute commands using elevated privileges assigned by system admin
Syntax: sudo [….command]

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

What is the best security practice regarding the su and sudo commands?

A

Instead of allowing admins to use the su command, use the sudo structure to assign specific rights to specific admins

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

What file contains the admin rights assigned to specific users?

A

/etc/sudoers

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

What is visudo used for?

A

To edit the /etc/sudoers file and assign admin permissions to users

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

What switch is used with visudo to check the file?

A

-c checks for syntax errors before saving

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

What switch is used with visudo to specify a file location, other than default location /etc/sudoers?

A

-f

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

What switch for visudo can be used to also check for errors, such as non-existent users/groups?

A

-s checks file in strict mode

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

What switch for visudo outputs the file in JSON format?

A

-x

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

Command: pkexec

A

an alternate to sudo, allowing the command to execute with elevated privileges
Syntax: pkexec [command]

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

Why should sudo be used instead of pkexec?

A

sudo is more flexible and has better security than pkexec

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