LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-28-2004, 09:15 AM   #1
VerTiCal
LQ Newbie
 
Registered: Apr 2004
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
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 >_<

Last edited by VerTiCal; 04-28-2004 at 10:24 AM.
 
Old 04-28-2004, 05:07 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"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
 
Old 04-28-2004, 06:25 PM   #3
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
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.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you connect to internet as normal user without run pppd as root ? nasty_daemon Linux - Networking 2 09-13-2005 01:43 AM
When i connect on the internet I want root not to access the internet !! skouket Linux - Security 12 07-10-2005 12:17 PM
Is there anyway to connect to the internet without root privilages? captainfreedom Linux - Newbie 2 02-28-2005 10:59 AM
Only root can connect to the internet astronaut3000 Linux - Networking 2 07-25-2004 03:06 PM
Only root can use and connect to the internet VerTiCal Linux - Networking 17 04-30-2004 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:17 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration