LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Sudo doesn't care for passwords :S (13.1, xfce) (https://www.linuxquestions.org/questions/slackware-14/sudo-doesn%27t-care-for-passwords-s-13-1-xfce-903261/)

0men 09-15-2011 08:08 PM

Sudo doesn't care for passwords :S (13.1, xfce)
 
Hi guys,

I have this really strange problem that i've never had before. Im using Slackware 13.1, with XFCE. The system was just installed on my laptop, and has not been connected to the internet. My user '0men' is in the sudoers file.

Here's whats going on....
Say i want to edit my firewall, i would do

sudo nano /etc/rc.d/rc.firewall
Password: MyPassword

That's normal the first time but .. From now on, Sudo doesn't care about my password. I can edit any file from now on without my password. I was reading up and i found some patchy information that stated sudo normally 'hangs' around for 10 minutes or so.

However if i close the terminal and leave the machine for half an hour and then try and edit the same file. Sudo will still not ask for a password.
This is strange and i've never had it happen on a Slackware machine before. Just to be sure, i re-installed, still the same problem though. None of the other 3 Slackware box's i have here, have experienced the problem.

Does anyone have any ideas ? Its really starting to do my head in !
I appreciate any help/input/experiences/solutions you may have.

Thanks!
what would i do without LQ !! :)

user7 09-15-2011 08:35 PM

Two things you can do
Code:

sudo -k su -
This will force sudo to ask for password next time.

Other option is change it in the sudo config.
As root:
Code:

# visudo
Find the defaults line and using a comma to separate add timestamp_timeout=X where X=timout in mins.
Code:

Defaults        env_reset,timestamp_timeout=0
This would cause it to ask every time.

0men 09-15-2011 08:36 PM

Bizarre :S

I un-installed each package one by one to see if things went back to normal. When i uninstalled acpica, everything came good again. I then re-installed the package and now it's fine :S Maybe it had to be installed last... No idea. But its back to normal now sudo asks for password. Thank God.

Thankyou everyone for taking the time to look over the thread.
And sorry to clutter it up.

Kind Regards.

Edit: @user7 Thanks, i was not aware of that. Legend. Thankyou for your reply !


All times are GMT -5. The time now is 09:24 PM.