How to - User privilege specification

TCRatius

Member
Joined
Aug 30, 2017
Messages
26
Reaction score
30
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
 


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.
 

Members online


Latest posts

Top