[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sudo versus su environment?



On Friday 26 May 2006 11:23, Chris wrote:
> On Friday 26 May 2006 02:41, Limin Wang wrote:
> > Chris,
> >
> > The latest sudo will reset the env default, so you need add below line to
> > /etc/sudoers:
> >
> > lmwang@laptop:~$ sudo more /etc/sudoers
> > # /etc/sudoers
> > #
> > # This file MUST be edited with the 'visudo' command as root.
> > #
> > # See the man page for details on how to write a sudoers file.
> > #
> >
> > Defaults        !env_rese
> >
> > Regards,
> > Limin
>
> I think it should be "!env_reset".
>

I placed this line. Needs to be the first non-commented line. However, it does 
not seem to work. Does it require a reboot?

I also tried env_keep but the self-check kicked at that--wnated an argument 
(all?).

:The man for visudo is not very clear.



Reply to: