LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Only root can use and connect to the internet (https://www.linuxquestions.org/questions/linux-general-1/only-root-can-use-and-connect-to-the-internet-175496/)

VerTiCal 04-28-2004 09:15 AM

Only root can use and connect to the internet
 
Uhh... so.. when I try to connect to the internet (with adsl-start),
I get a message that says that only root can run the script.

So, I run the command as root, and it connects successfully.
I can then start chatting at IRC (err, actually not >_<),
browsing websites, ping computers etc.

But when I change back to my normal user, I cannot use the internet.

Any suggestions?


Distro: Slackware


(I found something here about using sudo, but I get an
syntax error when I try to run it...)


EDIT: Could post this in the "Networking"-section... But I forgot >_<

jailbait 04-28-2004 05:07 PM

"Uhh... so.. when I try to connect to the internet (with adsl-start),
I get a message that says that only root can run the script."

This is a permissions problem, probably with the permissions for adsl-start. You can find out where adsl-start is located with:
which adsl-start

Then use the chmod command to give users permission to execute adsl-start. Something like:
chmod 755 /pathname/adsl-start

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeB....home.page.html

Steve Stites

marghorp 04-28-2004 06:25 PM

Try changing mod to the script. Use command:

chmod +s adsl-start

That will make the command be run as root every time it is started, no matter by which user it is started. In terminal it will be colored red if you ls -la the directory it is in.


All times are GMT -5. The time now is 03:04 AM.