How to - User privilege specification

TCRatius

Member
Joined
Aug 30, 2017
Messages
26
Reaction score
28
Credits
0
Hello once again,

I am setting up a user for my system, added the user and then the article said to type "$ sudo visudo" and then do something. Well naturally I am skeptical to do anything in here as I do not know what ins and outs of User privileges. Does anyone have a good article for this?

$ sudo visudo
# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL:ALL) ALL

# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

Cheers TC
 


wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,511
Reaction score
6,354
Credits
26,568
Good morning, small rodent friend :p

@CptCharis ... wow, I am going to digest that one, thanks for sharing ;)

Admin @Rob has a nice little video here - https://www.linux.org/threads/video-add-user-to-sudo-using-the-visudo-command.12960/

@TCRatius - let the viewers know which Distro you are using mate. Visudo protocols can vary a little under different environments (don't know why).

I have just added myself to the sudoers group in one of my Debian. In some instances entering

Code:
sudo visudo

will take you straight to an instance of nano (Not ANOther text editor) where you make the changes, then in others, you may have to press Ins (insert) to enter editing mode, and when saving/leaving, type in eg :x , or :wq - these may be involved with use of vi/vim as an editor.

Confused? Join the club :rolleyes:

Cheers

Wizard
BTW Rob's video is likely done from CentOS, his fave.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top