LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is there anyway to connect to the internet without root privilages? (https://www.linuxquestions.org/questions/linux-newbie-8/is-there-anyway-to-connect-to-the-internet-without-root-privilages-295479/)

captainfreedom 02-27-2005 10:05 AM

Is there anyway to connect to the internet without root privilages?
 
Is there anyway to connect to the internet without root privilages?
I have Mandrake 10.1 official which connects to ppp0 via a little systray icon, but it forces you to enter the root password each time. Surely, this shouldn't be necessary just to connect to the internet?

jailbait 02-27-2005 02:36 PM

"Is there anyway to connect to the internet without root privilages?"

If you are using wvdial here is how to allow a user dialout.
http://www.electronicschat.org/nonroot-dialout/
Here are the commands to allow user to dial out with wvdial which works on SuSE. You might have to modify the filenames to get it to work on Mandrake. Also your modem may not be on ttyS1.
chown root:dialout /dev/ttyS1
chmod 660 /dev/ttyS1
chown root:dialout /dev/modem
chown root:dialout /etc/wvdial.conf
chmod 660 /etc/wvdial.conf
chown root:dialout /etc/ppp/chap-secrets
chmod 660 /etc/chap-secrets
chown root:dialout /etc/ppp/pap-secrets
chmod 660 /etc/pap-secrets
chown root:dialout /etc/ppp/peers/wvdial
chmod 660 /etc/ppp/peer/wvdial
chmod u+s /usr/sbin/pppd


If you are using kppp it is possible to set up a user as capable of dialing out by proper use of groups but it has been a while since I did that and I don't remember how I did it.
http://gershwin.ens.fr/vdaniel/Doc-L...kppp.html#toc1

---------------------
Steve Stites

captainfreedom 02-28-2005 10:59 AM

Thanks for your answer, but the commads that Mandrake uses are /sbin/ifup, /sbin/ifdown
Is it just a matter of changing the privilages of these files? Would that cause any nasty side effects?


All times are GMT -5. The time now is 06:14 PM.