SliTaz SliTaz Forum

You are not logged in.

#1 2014-12-03 19:35:58

K3nn3th
Member
Registered: 2014-09-13
Posts: 194

sudo command not working properly

all of a sudden i cant use sudo to launch any command.

tux@slitaz:~$ sudo tazpkg -v

Password:

su: incorrect password

i cant enter a password, it immediately says i entered a wrong one.

this is very strange. what can i do to fix this?

Offline

#2 2014-12-03 19:43:45

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: sudo command not working properly

[c]Sudo[/c] command in Slitaz does not work. Use [c]su[/c].

Offline

#3 2014-12-03 20:51:41

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: sudo command not working properly

Sudo command requires:

Installation:

[c]tazpkg -gi sudo[/c]

Configuration:

[c]sudo visudo[/c]

Read the comments in /etc/sudoers and use google to get information on sudo configuration.

Offline

#4 2014-12-03 23:04:59

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: sudo command not working properly

Hi K3nn3th,

Hi mojo,

Really, SliTaz provides sudo utility. But it is not regular sudo. It is small fake utility. Main difference from real sudo is that SliTaz's sudo uses root password. Not yours...

It uses password you previously enter in the subox. Like this, when you run gparted from your Applications menu:

subox-gparted.png

If you enter your root password, tick on checkbox, and press OK button, then your root password will write to ~/.config/slitaz/subox.conf (and gparted will run).

Next, if you'll run gparted again you'll see that password is filled, and you not need to type it again.

And if you run your command "[c]sudo tazpkg -v[/c]", you'll see that it works.

----

OK. I try.

With password saved: it works and not ask me for password.

Without password saved (I temporary renamed my ~/.config/slitaz/subox.conf): it works, it asks my root password.

If it not works for you, probably you need to

[c]# tazpkg recharge
# tazpkg -gi slitaz-base-files --forced[/c]

Offline

#5 2014-12-04 03:13:20

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: sudo command not working properly

http://forum.slitaz.org/topic/ru-добавляем-команду-sudo#post-4011

Carefully, using the Russian language!

Offline

#6 2014-12-04 13:12:10

K3nn3th
Member
Registered: 2014-09-13
Posts: 194

Re: sudo command not working properly

thanks for the advice, guys, but i already have sudo installed.

the thing is, it worked up to 2 days ago!

i updated some packages (cant recall which ones exactly), rewrote my rootfs.gz and it stopped working.

never seen/heard any of this before.

its not a problem with sakura..

Offline

#7 2014-12-04 16:57:25

K3nn3th
Member
Registered: 2014-09-13
Posts: 194

Re: sudo command not working properly

okay, reinstalled sudo and set up my sudoers file to the same state as i had i all the time.

now its working again.

i dont get what caused the problem.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]