LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 12-19-2004, 03:45 AM   #1
xxx_anuj_xxx
Member
 
Registered: Jun 2004
Location: Bharat
Distribution: RedHat, Debian, FreeBSD, Fedora, Centos
Posts: 114

Rep: Reputation: 16
Unhappy Giving Kppp rights to other users n groups


I am using kppp (Redhat el) for connecting to the net and everytime it asks for the root password. How to give kppp rights to other users and groups so that they can use dialup without giving root password?
Thankyou
 
Old 12-19-2004, 01:03 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Make sure that the users are (at least) members of the groups dip, dialout, and tty.

Cheers,

mj
 
Old 12-21-2004, 12:30 AM   #3
xxx_anuj_xxx
Member
 
Registered: Jun 2004
Location: Bharat
Distribution: RedHat, Debian, FreeBSD, Fedora, Centos
Posts: 114

Original Poster
Rep: Reputation: 16
Arrow

First of all Thankyou mj for your help, I tried this thing (making the user a memebr of dip, dialout, and tty.)Here i don't have this group named dialout. Furthermore I tried the same thing after making him (user) a memeber of all other groups ..it didn't worked.
Please give some other idea.. and what is this group dialout?it's not here ...may be this is the perob here
Thankyou friend!
 
Old 12-21-2004, 02:57 PM   #4
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
It seems that there are three options - edit /etc/pam.d/kppp and change the following:
Code:
#auth sufficient /lib/security/pam_rootok.so
auth  sufficient /lib/security/pam_permit.so
Or, you can run <usernetctl> and set "USERCTL=true" in /etc/sysconfig/network-scripts/ifcfg-pp. Lastly, you can either set kppp to suid, or create a dialout group and a kppp.allow file in /etc, as suggested by this post http://users.netwit.net.au/~pursang/...o_7.html#SEC70.

Cheers,

mj
 
Old 12-22-2004, 02:13 AM   #5
xxx_anuj_xxx
Member
 
Registered: Jun 2004
Location: Bharat
Distribution: RedHat, Debian, FreeBSD, Fedora, Centos
Posts: 114

Original Poster
Rep: Reputation: 16
Lightbulb

Thanks a lot dear friend mj!
I got another solution too ...seems like now two solutions are available...
here i tried this thing which is working perfectly ...
Try the following:

1. rm /usr/bin/kppp
2. chmod u+s /usr/sbin/kppp
3. ln -s /usr/sbin/kppp /usr/bin/kppp

The first line removes a symbolic link to the real binary. The second line changes the permissions on kppp so that it will run as root no matter what user runs the program. The last line re-creates the link that you removed in the first step. The net effect is that the binary runs as root, no matter what the UID of the user running the program. This means that you don't have to supply a root password.

after this only ting which i neede was to reconfig my kppp .
Thank you mj for your help

 
Old 12-22-2004, 06:12 PM   #6
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
No worries

Cheers,

mj
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Giving individual users editing rights for websites using Apache Server aakash Linux - General 1 05-26-2005 01:41 PM
giving permissions or joining groups? dunny05 Linux - Newbie 2 04-20-2005 05:43 AM
Giving users more rights (Admin) FatSteve Linux - Security 7 11-19-2003 06:37 AM
Giving a user rights Help!!! Sabeer Linux - Newbie 1 08-25-2003 12:02 AM
groups and file rights tstuhr Linux - Networking 1 10-05-2001 01:06 PM


All times are GMT -5. The time now is 11:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration