Hello!
How to configure sudo?
Slitaz-5.0 (flavor base).
Command visudo
does not work. Flie sudoers
was not found.
How to configure sudo?
(8 posts) (2 voices)-
Posted 6 years ago #
-
Hi black dog,
Did you install the "sudo" package?
It has/etc/sudoers
and/usr/sbin/visudo
and many more files:
http://cook.slitaz.org/index.cgi?files=sudoPosted 6 years ago # -
Thank you. I thought that I would have to install "sudo" package. I was a little embarrassed that the "sudo" command works in slitaz-5.0 by default.
Posted 6 years ago # -
root@slitaz:~# adduser -G sudo tux
adduser: user 'tux' in use
Why?
Posted 6 years ago # -
> I was a little embarrassed that the "sudo" command works in slitaz-5.0 by default.
It is not "sudo" command. It's a little fake that can only simulate "sudo" behavior in the next form:
sudo <command> [<arguments>]
It never ask you for your user password. It always use only root's password.
You can open the script
/usr/bin/sudo
(until you not yet installed the real "sudo") in the text editor. Root's password is saved in your$HOME/.config/slitaz/subox.conf
file. It will ask you if it's not saved yet and then will save it to that file. That's all.> adduser: user 'tux' in use
Check your
/etc/group
file. Looks like user "tux" is already belongs to the "sudo" group:type: grep ^sudo /etc/group result: sudo:x:101:tux
Posted 6 years ago # -
Something went wrong. :(
grep sudo /etc/group sudo:x:1000
I, of course, can edit the
/etc/group
file, but I'd like to figure out whyadduser
command does not work.Posted 6 years ago # -
Use the different command instead:
addgroup --help ... Add a group or add a user to a group ... addgroup tux sudo
Looks like only this command will help you to add existing user to existing group although I'm not very sureā¦ It works for me.
Posted 6 years ago # -
Thank you! Happened!
I tried earlier this command with the-G
option and got an error message. In the form ofadduser tux sudo
the command worked and the tux user appeared in the sudo group.PS
Only now I noticed that I used another command. :)Posted 6 years ago #
Reply
You must log in to post.