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

Re: Non-root user executing pon

Quoting Bolan Meek (Bolan.Meek@wcom.com):
> "R. D. Loga" wrote:
> > 
> > When a non-root user types pon at the prompt they get "Connect script
> > failed".  Pon works fine for the root user.  I changed several file
> > permissions to get this far.  Do I have to change permissions on all the
> > scripts in /etc/ppp/ip-up.d directory too?  Is there an easy way to allow
> > non-root users to use pon?

Add the user(s) to the group dip.

Of course, you may have screwed things up if you've changed the
file permissions wrongly. You could always dpkg --remove and then
-i again to get things correct.

N.B. The big gotcha is for root (you, perhaps) to add the user (you)
to group dip, and then you try it again and it still doesn't work.
Remember, you only get your group permissions when you log in again.
(And if you remembered that, others won't!)

> Install the sudo package, and put in /etc/sudoers something like
> bolan   ALL=NOPASSWD: /usr/bin/pon, /usr/bin/poff
> read the sudo and sudoers man pages for full details, but, with
> substituting an appropriate username for "bolan", this'll get
> you going.  Basic use has one line for each user, but, as you'll
> read in the man pages, you can create sudoers groups.

Yes, but it's all unnecessary.


Email:  d.wright@open.ac.uk   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.

Reply to: