sudo does not work

Matthew Hannigan mlh at zip.com.au
Wed Sep 18 03:50:01 EDT 2002


On Wed, Sep 18, 2002 at 03:38:27PM +0800, nina wrote:
> I see ... okay ... it works with pine when I use the -H option. Thanks a
> lot,
> but it still got the same error when trying to use vi or pico.  Does anybody
> know
> what else do i need to set for these to work?

Use my second option:

> > olduser ALL = su - newuser /usr/local/bin/pine
> >
> > and invoke
> > sudo su - newuser /usr/local/bin/pine
> >
> > which will do a 'proper' login

You should know, however, that it is quite insecure
to run programs like pine, pico and vi under sudo.

They allow you to do too much, like starting a shell.

Matt




More information about the sudo-users mailing list