PDA

View Full Version : What happened to sudo?


glennzo
29th March 2011, 10:26 AM
This morning I can't use sudo. Not sure why. Here's some relevant output.
[glenn@15alpha ~]$ ls /var/log/samba/
ls: cannot open directory /var/log/samba/: Permission denied
[glenn@15alpha ~]$ sudo ls /var/log/samba/
sudo: timestamp too far in the future: Mar 29 08:57:06 2011

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

Password:
old
[glenn@15alpha ~]$ sudo ls /var/log/samba/
old
Up until this morning I've been able to use sudo without issue. Now all I see when I use the command is the word old. Here's a few facts leading up to the sudo issue.

1. Last night I installed Ubuntu 10 on another partition on this hard disk.
2. Since the installation of Ubuntu the system time has changed to 4 or 5 hours ahead (future) on all other installed OS's on this computer. I've changed them back one by one.
3. I've updated the system using yum and am running a new kernel, 2.6.38.2-8.fc15.i686.PAE

Notice the system seems to think that this is the first time I've ever used the command. Any thoughts? I'm going to reboot and see what happens.

By the way, the sudo password is not old. That's the response I get when I type the sudo password.

Dangermouse
29th March 2011, 10:45 AM
Howdy Glenn
Try 'sudo -k' command. (Clears the timestamp) i think.

glennzo
29th March 2011, 10:52 AM

Hello Dave.
[glenn@15alpha ~]$ sudo -k ls /var/log/samba/
Password:
old

Ummmm... Nevermind? old is a freaking subfolder of /var/log/samba. Sudo works just fine. It's a good thing that this is a virtual community. If we were all face to face mine would be red. Obviously the output was not what I had anticipated.

troyatlarge
29th March 2011, 01:02 PM
lol - now that's a good one - mainly because I'm not the one who did such a thing - for once!