Re: Non-root user executing pon

2000-07-26 Thread Bolan Meek
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?

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.

-- 
[EMAIL PROTECTED] 972-729-5387
[EMAIL PROTECTED] (home ph. on req.) http://www.koyote.com/users/bolan
RE: xmailtool http://www.koyote.com/users/bolan/xmailtool/index.html
RMS of Borg: Resistance is futile; you shall be freed.



Re: Non-root user executing pon

2000-07-26 Thread David Wright
Quoting Bolan Meek ([EMAIL PROTECTED]):
 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.

Cheers,

-- 
Email:  [EMAIL PROTECTED]   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.



Non-root user executing pon

2000-07-25 Thread R. D. Loga
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?



Re: Non-root user executing pon

2000-07-25 Thread André Dahlqvist
On Tue, Jul 25, 2000 at 08:04:30PM -0500, 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?

There sure is, just run pppconfig and choose to add a ppp user. Or you
could manually add that user to the dip group.
-- 

// André



RE: Non-root user executing pon

2000-07-25 Thread R. D. Loga
I ran pppconfig but found no option to add a ppp user.  I had already made
the user a member of the dip and dialout groups.

-Original Message-
From:   André Dahlqvist [mailto:[EMAIL PROTECTED]
Sent:   Tuesday, July 25, 2000 8:18 PM
To: debian-user@lists.debian.org
Subject:Re: Non-root user executing pon

On Tue, Jul 25, 2000 at 08:04:30PM -0500, 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?

There sure is, just run pppconfig and choose to add a ppp user. Or you
could manually add that user to the dip group.
--

// André


--
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
/dev/null



Re: Non-root user executing pon

2000-07-25 Thread Matthew Dalton
I haven't used ppp with Debian, but I understood that permission to
activate it was set in the same way as other resource accesses, such as
sound - all you need to do is add the user to the appropriate group.

For example: to allow myself to use the sound card while a normal user,
I just added myself to the sound group in /etc/group (man group for the
format of this file)

Matthew

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?



Re: Non-root user executing pon

2000-07-25 Thread John Hasler
R. D. Loga writes:
 I ran pppconfig but found no option to add a ppp user.

That option is in the version of pppconfig in unstable.

 I had already made the user a member of the dip and dialout groups.

I think you have an old version of the ppp package that sets the
permissions on /etc/chatscripts improperly.  Try 

chmod g+s /etc/chatscripts 

chown root.dip /etc/chatscripts

and 

chown root.dip /etc/chatscripts/*

Or upgrade ppp and pppconfig.

ppp users do not need to be in dialout.
-- 
John Hasler
[EMAIL PROTECTED]
Dancing Horse Hill
Elmwood, Wisconsin