Journal cyranoVR's Journal: Riddle Me This... 18
From the sudo troubleshooting FAQ
Q) When sudo asks me for my password it never accepts what I enter even though I know I entered my password correctly.
A) If your system uses shadow passwords, it is possible that sudo didn't detect this. Take a look at the generated config.h file and verify that the C function used for shadow password lookups was detected. For instance, for SVR4-style shadow passwords, HAVE_GETSPNAM should be defined (you can search for the string "shadow passwords" in config.h with your editor). Note that there is no define for 4.4BSD-based shadow passwords since that just uses the standard getpw* routines.
Why oh why would RedHat ship a version of sudo that doesn't work with Shadow Passwords out-of-the-box, and then enable shadow passwords on their default install.
On one hand I'm learning all sorts of wonderful things about linux security. On the other hand WTF.
Maybe the answer is on my RedHat install cd (i.e. I just have to select the sudo.shadow rpm), but I will have to wait until I get home to find out(dammit).
Maybe I shouldn't bother with sudo since I am the only one doing admin stuff on my machine and get back to more important topics (like Java Swing UI programming).
sudo is actually pretty dangerous (Score:3, Informative)
Its something I try to keep away from users.
Re:sudo is actually pretty dangerous (Score:2)
I find my self using su a lot lately, and then forgetting that I am logged in under su. sudo might actually be useful in this regard. The whole 5 minute time limit is attractive.
Re:sudo is actually pretty dangerous (Score:2)
Re:sudo is actually pretty dangerous (Score:1)
And remember the * wildcard does include . and
Re:sudo is actually pretty dangerous (Score:2)
Somebody correct me if I'm wrong...I dare ya. I double dare ya mutha*.
Re:sudo is actually pretty dangerous (Score:1)
Re:sudo is actually pretty dangerous (Score:2)
Ugh: Swing (Score:2)
Re:Ugh: Swing (Score:2)
SWT would require me to distribute extra class libaries along with whatever code I am already deploying. Ugh.
I'm not close-minded to it. Maybe I'll take a look after I use swing for a while.
Also, I took a look at JGoodies and arrived at the same conclusion - first I have to learn more about Swing.
Re:Ugh: Swing (Score:2)
Applets can sometimes be a pain to use, but are probably required in some circumstance, but if it can be done in HTML, IMO, it *should* be done in HTML.
Re:Ugh: Swing (Score:2)
What's that you say? Swing is too slow? Well, for impatient sorts like yourself, there will be a traditional HTML interface (sorta like there are both java editors and a html form-based editors for most free email web sites).
Re:Ugh: Swing (Score:2)
More power to ya!
Re:Ugh: Swing (Score:2)
Re:Ugh: Swing (Score:2)
Doesn't seem likely (Score:2)
I'm pretty sure that's never happened. I know I use sudo a lot on all my boxes, including the few FC1. Although I am currently using it with "foo ALL=(ALL) NOPASSWD: ALL" so I don't need a password. Have you tried looking in /var/log/secure and /var/log/messages to see if that gives any clues?
Re:Doesn't seem likely (Score:2)
Riddle solved(? | !)
Re:Doesn't seem likely (Score:2)
Well, that worked! However, I am still concerned about the password feature not working...I suspect it is a shadow passwords issue, as adding the line
foo ALL=(ALL) ALL
still resulted in the 3 erroneous "Incorrect Password" messages.
Ah well...
I swear by sudo, fwiw (Score:1)