LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 06-30-2005, 04:09 PM   #1
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429
Blog Entries: 2

Rep: Reputation: 30
Logging off root but retaining network/internet connections


Hello All!

I never worried to much about permissions and other types of security issues when I was the only user on my Linux (Slackware) system. However, my computer has been relocated and I have three new users on the system.

I am still the root and do all the administration tasks. My question is as follows. To connect to the internet using ADSL requires a shell script. Now I need to log off as root so no other users (including hackers, viruses, etc.) can get into the system as root. How do I retain the internet connection after logging off?

Is there anyway to switch from root to a less priviledged user?

Thank you very much,
Murdock
 
Old 06-30-2005, 04:25 PM   #2
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
can you change permissions of the script so that anyone can use it? that would be:
chmod a+x *name of script*

and then... you wouldn't have to run as root.

hope this helps
titanium_geek
 
Old 06-30-2005, 04:29 PM   #3
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429
Blog Entries: 2

Original Poster
Rep: Reputation: 30
Timothy,

I can give anyone permissions for that script, but I can't do that in more sensitive cases.

I heard that there is a way to down-permission the root without logging off. Do you know anything about this?

Thank you,
MRDK
 
Old 06-30-2005, 04:52 PM   #4
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
su username

though I wouldn't say that was very secure, exit gets you back to root permissions.

and my name's not Timothy. I answer to titanium_geek, titanium, t, geek, or hey you. or Alison actually.

titanium_geek
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
one network. two internet connections w3bbuilder Linux - Newbie 1 05-26-2005 01:03 AM
retaining root authorisation in X shamrock_uk Mandriva 2 06-22-2004 08:43 PM
logging of imap connections mazzo Linux - Newbie 2 08-06-2003 03:27 AM
Need some advice on setting up a network with two internet connections e0n Linux - Networking 4 05-16-2003 09:05 AM
using red-carpet without logging out and logging as root. packman Linux - Software 1 12-09-2002 02:55 AM


All times are GMT -5. The time now is 04:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration