Permissions for pppd and modem (was: Re: [Gllug] Can't connect to the Internet.)

Paul Cupis paul at cupis.co.uk
Sun Nov 10 12:53:28 UTC 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 10 November 2002 12:37, Dermot Moynihan wrote:
> On Sunday 10 November 2002 11:12, Walid Shaari wrote:
> > On Sun, 2002-11-10 at 10:17, Dermot Moynihan wrote:

> >   3      Pppd  is  not  setuid-root and the invoking user is
> >               not root.
> >  so I guess as I am not a modem users for ages :) that you need to do :
> >
> > chmod u+s /usr/sbin/pppd
>
> Should that u+s be u+x by any chance?
> With x standing for execute by user.
> I've just gone and got myself Linux in a Nutshell (as I seem to be in for
> the long haul) and s seems to be "set user (or group) ID".
> By the way, I have no idea what I'm talking about. Just being careful and
> trying to learn stuff.
>
> > but do an ls -l on pppd first and check what perms it have
>
> OK. That gave:
> -rwxr-xr-x    1 root     dialout    211992 2002-09-09 20:32 pppd

It should be +s as this means that it will be run with the file owners 
permissions (i.e. root). On me system:

paul at main:~$ ls -l /usr/sbin/pppd
- -rwsr-xr--    1 root     dip        230604 Dec 10  2001 /usr/sbin/pppd
paul at main:~$

So root and members of the 'dip' group can run pon/poff/pppd and pppd will run 
with root permissions (which it requires to do its job.)

Oh, and my modem's permissions are: 

paul at main:~$ ls -l /dev/ttySHCF0
crw-r--r--    1 root     root     242,  64 Nov 10 12:23 /dev/ttySHCF0
paul at main:~$

Regards,

Paul Cupis
- -- 
paul at cupis.co.uk

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9zlbSIzuKV+SHX/kRApGRAJ9hb2b2MQSfFjjL7ORUYlpP65M+wACdEbTI
A+QvkTUbBiUXR/1Ayt0oovo=
=lagU
-----END PGP SIGNATURE-----

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list