Complete.Org: Mailing Lists: Archives: discussion: September 1999:
[aclug-L] Re: starting pppd by a normal user
Home

[aclug-L] Re: starting pppd by a normal user

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: aclug-L@xxxxxxxxxxxx
Subject: [aclug-L] Re: starting pppd by a normal user
From: j m wagle <jmwagle@xxxxxxxxxxxxx>
Date: Sun, 19 Sep 1999 14:23:55 -0500
Reply-to: aclug-L@xxxxxxxxxxxx

Thanks to everybody for responding sooo quickly..

I will work with this 'sudo' and see how far I can get.

later,
mike wagle



Jeff wrote:
> 
> On Sun, 19 Sep 1999, j m wagle wrote:
> 
> > it works great. I start the connection by logging on as a super user
> > and executing the following pppd:
> >
> > /usr/sbin/pppd /dev/ttyS3 115200
> >
> > my question:
> > can I start this with a bash file from a 'normal' (not operator or
> > 'super') user?  everything I have tried has failed with the
> > following message:
> >
> >  must be root to run /usr/sbin/pppd, since it is not setuid-root
> 
> Option 1: setuid shell script (not a good idea)
> 
> $ su
> # vi /usr/local/bin/ppp
> #!/bin/sh
> /usr/sbin/pppd /dev/ttyS3 115200
> (save, quit)
> 
> # chmod u+x /usr/local/bin/ppp
> # chmod u+s /usr/local/bin/ppp
> # chmod o=rx /usr/local/bin/ppp
> # exit
> 
> Option 2: root-owned and root-executable, but not other-executable
>   shell script + SUDO (good idea)
> 
> -jeff

[Prev in Thread] Current Thread [Next in Thread]