Quote:
Original post by Sneftel
Quote:
Original post by Dmytry
Did you correctly configure sudo in a large multiuser environment? Where did you last see large multiuser environment with correctly configured sudo?
It's true that it can be difficult to do an ironclad sudo configuration. But if by "correct" you mean "doesn't allow someone to do sudo sh", every single one of them.
"Someone", yeah. Someone being some non-admin who's permitted to start and stop ssh daemon and reboot the machine, or do something similarly limited.
Real admins have to run rather arbitrary commands which you cannot predict in advance.
Quote:
Not allowing shell access is pretty much what sudo is for. If not for that, sudo would be a two-line shell script.
sudo supports many uses... if sudo was made for correctly configured systems, it would not have this 'not asking for password in next 15 minutes' feature (which is IMO really stupid).
edit: BTW, I agree that this is what sudo should be used for. On my system (mandriva) i only use sudo so that mail and chat clients can run a script to flash a LED on my display without asking for root password (stupid but true, I can control power led on my display from command line through DDC, and when i was bored i made a script to flash it).