Link to home
Start Free TrialLog in
Avatar of xberry
xberryFlag for Germany

asked on

pppd access for my user account

As user root I can successfully dial up my modem using the
'pppd' command at a unix terminal, running chat & various connectivity scripts. I'd like to do the same when I log in as  non-root user but 'pppd' at the shell doesn't work then. So how can I use the successful 'root' ppp setup for any user account without getting any gui-interfaces involved ?  
Avatar of paulqna
paulqna
Flag of Netherlands image

There should be a group called dialout, netdial or dialer you should make this user a member.

I need a distibution name to be more precise...
Avatar of xberry

ASKER

Hi,

my distribution is REDHAT 7.1.
Please be as specific as possible for what I have to do
in order to create a group & integrate my user into it.
I'm very new with working at the unix terminal in order to set up ppp connection, so good guide is required.
Thanks.
Because there are some good utilities to help you out without me typing lots of text I suppose you give :

wvdial:
ftp://ftp.redhat.com/redhat/redhat-6.2/SRPMS/SRPMS/wvdial-1.41-3.src.rpm

a try.

install the rpm like this

$ rpm -i ftp://ftp.redhat.com/redhat/redhat-6.2/SRPMS/SRPMS/wvdial-1.41-3.src.rpm

or

$ rpm -i /your/dir/wvdial-1.41-3.src.rpm

and do (also as root)

$ wvdialconf /etc/wvdial.conf

and follow the instructions.

After some menu's (No X required!!!) you can use your modem for any connection using the commandline.

To review some documentation before you even download the package:

http://cvs.gnome.org/lxr/source/rp3/wvdial-libs/

(scroll down the window, there.)
ASKER CERTIFIED SOLUTION
Avatar of garisoain
garisoain

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I seem to be mixing up two EE questions here...

garisoain did read your question as I did the FIRST time... ;)

However good advise from my second answer will not bring me points here I'm afraid.
Avatar of xberry

ASKER

Hi,

thanks to both of you, garisoain & paulqna. Well it finally was garisoains
answer that gave me the key to enable unix shell pppd for my user account. So I just did 'chmod a+s' to all my ppp-connectivity relevant files & then it worked out fine. Also I had to apply your chmod/chgrp procedures to /path/to/chat of course because chat is naturally run by my connectivity scripts.
Another VERY important step: ' chmod a+s /dev/ttyS1 ' for the modem line
& to add the users group to the ' uucp ' group in /etc/group file.

So how did ' paulqna's ' ideas help me with that ?  As for a start he of course was right when suggesting to add the user to a ' dialout (or similiar)' group. Just the '  SUID ' concept was missing. Somehow I had totally forgotten about the +s switch & what exactly it was doing to a file.
Paulqna's merit it is that he helped me to a good understanding for the wvdial project. Also I could use wvdial for a while pioneering my way up to a workable LINUX internet connection at the time when my basic user pppd/chat solution wasn't fully figured out .      

So please, paulqna, go to the ' points for wvdial help ' question & pick your share for the ' worldvision dialer' enlightenment.

Thank you

xberry