[sudo-users] Defaults runas_default global
Todd C. Miller
Todd.Miller at courtesan.com
Wed Jan 14 10:00:56 EST 2009
In message <OF49212792.1338D3EC-ON8525753D.0076E9AF-0725753D.007754EF at us.ibm.co
so spake Zhiguo Huang (huangz):
> First of all, I rename root to superadmin, then I added 'Defaults
> runas_default=superadmin' into /etc/sudoers. I want superadmin be default
> run as user instead of root. But it doesn't work. I saw some thread date
> back to year 2000, you said the issue was fixed at build sudo 1.6.3. My
> current sudo rpm is sudo-1.6.8p12-18.
In sudo 1.6.x order of Defaults entries is important. If the line
does not occur before the user specs it will not have an effect.
It is probably best to put the line at the top of sudoers.
More information about the sudo-users