sudo and root account

Discuss non-support related topics related to LMDE.
Forum rules
Before you post please read this

sudo and root account

Postby barbasla on Sun Nov 13, 2011 7:28 pm

I am interested in a version of LMDE with KDE, which I understand is being prepared.

Then I'd rather have the root account active since installation, the reason for my request is explained in brief the following link. (http://elliottback.com/wp/sudo-make-me-a-sandwich/).

Therefore, I ask if you can in the time of installation, to choose whether to enable sudo, or root account.

Thanks for your attention

Hello.

:D
barbasla
Level 1
Level 1
 
Posts: 3
Joined: Sun Nov 13, 2011 1:35 pm

Linux Mint is funded by ads and donations.
 

Re: sudo and root account

Postby cwsnyder on Mon Nov 14, 2011 4:49 pm

The Linux Mint installer does not include the option to change from sudo to requiring a root user account. If you want to write your own installer, you can change that.

If you don't want to go that far, you can enable the root user by simply enter in the terminal, not typing in the $ of course:
Code: Select all
$ sudo passwd root


To then remove your user account from the sudoers list, first login to root, then type:
Code: Select all
# deluser username admin
# deluser username sudo
username should be replaced by your account name and the #'s indicate the root prompt in terminal.

If you don't perform the second part of the instructions, you can still use sudo from your ordinary account.
LMDE Mate 64-bit, LM16 Mate 64-bit
Debian Xfce 64-bit, Xubuntu 13.10 64-bit, Xubuntu Trusty Tahr 64-bit, Antergos Xfce 64-bit, PCLinuxOS LXDE 64-bit
cwsnyder
Level 6
Level 6
 
Posts: 1039
Joined: Wed Oct 20, 2010 6:49 am
Location: Nappanee, IN, USA

Re: sudo and root account

Postby barbasla on Thu Nov 17, 2011 7:34 pm

cwsnyder wrote:The Linux Mint installer does not include the option to change from sudo to requiring a root user account. If you want to write your own installer, you can change that.


Unfortunately I was not able to modify the installer and I hope that kind of option is added.



cwsnyder wrote:If you don't want to go that far, you can enable the root user by simply enter in the terminal, not typing in the $ of course:
Code: Select all
$ sudo passwd root


To then remove your user account from the sudoers list, first login to root, then type:
Code: Select all
# deluser username admin
# deluser username sudo
username should be replaced by your account name and the #'s indicate the root prompt in terminal.


These two commands do not know them and I thank you for telling revealed.


I had found in Linux Mint and forums at the following link http://man.he.net/man8/sudo_root this explanation:

GOING BACK TO A TRADITIONAL ROOT ACCOUNT
This is not recommended!

To enable the root account (i.e. set a password) use:

sudo passwd root

Afterwards, edit the sudo configuration with sudo visudo and comment
out the line

%admin ALL=(ALL) ALL

to disable sudo access to members of the admin group.

Do you think that the mutation is complete?

Thank you. :)
barbasla
Level 1
Level 1
 
Posts: 3
Joined: Sun Nov 13, 2011 1:35 pm

Re: sudo and root account

Postby cwsnyder on Thu Dec 29, 2011 1:58 pm

That really depends on your definition of complete. :)

According to my reading of the documentation, not removing the username from the SUDO group means that username can still use anyone other than root's privileges.
LMDE Mate 64-bit, LM16 Mate 64-bit
Debian Xfce 64-bit, Xubuntu 13.10 64-bit, Xubuntu Trusty Tahr 64-bit, Antergos Xfce 64-bit, PCLinuxOS LXDE 64-bit
cwsnyder
Level 6
Level 6
 
Posts: 1039
Joined: Wed Oct 20, 2010 6:49 am
Location: Nappanee, IN, USA


Return to Open Discussion

Who is online

Users browsing this forum: Pilosopong Tasyo and 1 guest