Solved

pppd access for my user account

Posted on 2001-07-19
6
267 Views
Last Modified: 2013-12-16
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 ?  
0
Comment
Question by:xberry
  • 3
  • 2
6 Comments
 
LVL 5

Expert Comment

by:paulqna
ID: 6299741
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...
0
 
LVL 14

Author Comment

by:xberry
ID: 6299945
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.
0
 
LVL 5

Expert Comment

by:paulqna
ID: 6300066
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.)
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 4

Accepted Solution

by:
garisoain earned 75 total points
ID: 6303040
mmmmm...

Nobody told him that pppd must be Root-Suid in order to be used by simple-users...

Create a group on your /etc/group file, called "Dialout" or something like, and put the user there (read the file to know how to do this). then (as root):

# chmod u+s /path/to/pppd
# chmod 750 /path/to/pppd
# chgroup Dialout /path/to/pppd

if "/path/to" is not on the user's PATH, add it, or type the command with the full path.

also you need to check the permissions of some of your  ppp files, as they're usually only readable by root.

Warning: pppd with root-Suid may be dangerous for your system's security, but this is the most-used way to 'share' pppd.

Hope this helps.
-garisoain
0
 
LVL 5

Expert Comment

by:paulqna
ID: 6303291
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.
0
 
LVL 14

Author Comment

by:xberry
ID: 6305936
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
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Trying to make SNMP connection work 7 66
Java / Linux and Regular Expressions 11 71
AD LDAP LDS 3 48
Can't ping New Linux Servers 40 32
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now