sudo hints
Paul Sladen
ubuntu at paul.sladen.org
Fri Feb 3 11:56:08 GMT 2006
On Fri, 3 Feb 2006, Paul Sladen wrote:
> On Thu, 2 Feb 2006, Mark Shuttleworth wrote:
> > I'm trying to find out if we can get "su" to talk about sudo if the user
> > doesn't have a root password yet...
Background:
https://lists.ubuntu.com/archives/sounder/2006-February/003930.html
Patch at:
http://www.paul.sladen.org/ubuntu/upload/shadow-4.0.13-7ubuntu2-sudo-hint.diff
Examples:
$ su -c 'echo hello'
See: man sudo_su Use: sudo echo hello
$ su
See: man sudo_su Use: sudo <command>
$ su otheruser
Password:
$ su hal
See: man sudo_su Use: sudo -u hal <command>
Control:
$ grep SUDO_HINT /etc/login.defs
SUDO_HINT_ENABLE yes
SUDO_HINT_MESSAGE "See: man sudo_su Use: "
SUDO_HINT_GROUP_CHECK yes
SUDO_HINT_GROUP "admin"
Comments?
-Paul
--
Britain is just cold, in a pesky way. London, GB
More information about the ubuntu-devel
mailing list