You are not logged in.
Pages: 1
Hello!
How to configure sudo?
Slitaz-5.0 (flavor base).
Command [c]visudo[/c] does not work. Flie [c]sudoers[/c] was not found.
Offline
Hi black dog,
Did you install the "sudo" package?
It has [c]/etc/sudoers[/c] and [c]/usr/sbin/visudo[/c] and many more files:
http://cook.slitaz.org/index.cgi?files=sudo
Offline
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.
Offline
[c]
root@slitaz:~# adduser -G sudo tux
adduser: user 'tux' in use
[/c]
Why?
Offline
> 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:
[c]sudo <command> [<arguments>][/c]
It never ask you for your user password. It always use only root's password.
You can open the script [c]/usr/bin/sudo[/c] (until you not yet installed the real "sudo") in the text editor. Root's password is saved in your [c]$HOME/.config/slitaz/subox.conf[/c] 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 [c]/etc/group[/c] file. Looks like user "tux" is already belongs to the "sudo" group:
[c]type:
grep ^sudo /etc/group
result:
sudo:x:101:tux[/c]
Offline
Something went wrong. 
[c]grep sudo /etc/group
sudo:x:1000[/c]
I, of course, can edit the [c]/etc/group[/c] file, but I'd like to figure out why [c]adduser[/c] command does not work.
Offline
Use the different command instead:
[c]addgroup --help
...
Add a group or add a user to a group
...
addgroup tux sudo[/c]
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.
Offline
Thank you! Happened!
I tried earlier this command with the [c]-G[/c] option and got an error message. In the form of [c]adduser tux sudo[/c] the command worked and the tux user appeared in the sudo group.
PS
Only now I noticed that I used another command. 
Offline
Pages: 1
[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]