LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-15-2005, 11:06 PM   #1
rvijay
Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921
Blog Entries: 24

Rep: Reputation: 64
Question A Security Idea.


How about creating a separate account on Linux for just going Online ? Will this help anyway with security ?

Thanks.

Vijay
 
Old 01-15-2005, 11:33 PM   #2
slackwarefan
Member
 
Registered: Oct 2003
Location: Florida
Distribution: Slackware
Posts: 273

Rep: Reputation: 30
I'm not quite sure what you mean, but If you mean what I think, then no.

It'd still be connected to the internet, and it'd still be accepting connections on whatever it'd be accepting connections on [ssh ftp etc].

Although, on the topic of security ideas...
Would it help at all to have an account specially made for shutting down/rebooting? Say I'm offering ssh accounts on my computer, I don't want people logging in and shutting it down, but I want people who live here to be able to shut down or reboot if they need to, and I can (generally ) trust people who I grant physical access. I can let them use that account instead of letting all users shut down, and they don't need the root password. I assume there are other ways of doing this, using sudo and groups, but what does everybody else think?
 
Old 01-15-2005, 11:50 PM   #3
predator.hawk
Member
 
Registered: Aug 2004
Location: USA
Distribution: FreeBSD-5.4-STABLE
Posts: 252

Rep: Reputation: 30
Quote:
Originally posted by slackwarefan
I'm not quite sure what you mean, but If you mean what I think, then no.

It'd still be connected to the internet, and it'd still be accepting connections on whatever it'd be accepting connections on [ssh ftp etc].

Although, on the topic of security ideas...
Would it help at all to have an account specially made for shutting down/rebooting? Say I'm offering ssh accounts on my computer, I don't want people logging in and shutting it down, but I want people who live here to be able to shut down or reboot if they need to, and I can (generally ) trust people who I grant physical access. I can let them use that account instead of letting all users shut down, and they don't need the root password. I assume there are other ways of doing this, using sudo and groups, but what does everybody else think?
You could create a group which has the power to shut down the system (say a trusted group or shutdown group) which you add all the trusted users to and they have shut down access.
 
Old 01-16-2005, 01:03 AM   #4
rvijay
Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921

Original Poster
Blog Entries: 24

Rep: Reputation: 64
If I have a special account to go online, then when online if someone connects to my system, they will not have access to the root, as well as my main user account. Also, once files are downloaded, I can transfer them once offline from one account to the next.

Vijay
 
Old 01-16-2005, 01:20 AM   #5
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Technically that would reduce the likelihood of your normal user's filesystem getting damaged or compromised and any malicious code that allowed user level access wouldn't have perms to touch the other users files. Unfortunately it would still allow access to the system and a privilege escalation attack (local root compromise) would still be possible. Once root is gained, then you're screwed regardless.

However if you stripped that user of basically any privilege, it might help. Though you'd stil need a filesystem for that user to put things like cookies and a history. Where this might have the greatest effect is on a system using SELinux (or other RBACs). With SELinux you can more finely control what a given use is allowed to access. So you could configure that user to only be able to access mozilla and it components and to only have write access to the user dir. In that case, it might have a little more bang-for -your buck security wise, but I think overall the added inconvenience of having to switch users in order to surf the web and then transfer any downloaded files outweighs the minimal increase in security, though again technically it still would help.

Last edited by Capt_Caveman; 01-16-2005 at 01:23 AM.
 
Old 01-16-2005, 01:23 AM   #6
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
What about people with t1,cable, or dsl who don't dial and are on all the time? I dont want to shutdown the network connect when logged on as my main user.
 
Old 01-16-2005, 01:31 AM   #7
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
To be honest, I would just say secure your box. If your system has been properly secured and hardened, then likely you won't have anything to worry about.
 
Old 01-26-2005, 06:53 AM   #8
caps_phisto
Member
 
Registered: Sep 2004
Location: NH
Distribution: FC6, FC1-4, RH9, Gentoo 2006.0/1, Slackware 10.1/2,11, Vector SOHO 5.0.1
Posts: 237

Rep: Reputation: 30
Just a heads up for the "shutdown" users above in this thread. What I would do is setup the shutdown command to only be issued by root. Then I would group all the "local accounts" in one group (ie. all the accounts that you wish people to have access to the shutdown command).

Then a quick issue of the visudo to edit the /etc/sudoers file to read as this:
Code:
 <groupname> <serversname> = (root) shutdown
That should do it. Now when a "local user" wishes to shutdown the box they issue:
Code:
 sudo shutdown <options>
This will only allow the users you specify to shutdown the box.
 
Old 01-26-2005, 04:14 PM   #9
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
we are talking about an network connect not the shutdown command.
 
Old 01-28-2005, 12:54 PM   #10
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Re: A Security Idea.

Quote:
Originally posted by rvijay
How about creating a separate account on Linux for just going Online ? Will this help anyway with security ?
yes, it would help, but it would be very inconvenient... of course if you don't care about the inconvenience then go for it... with everything properly set, even if you'd execute something "evil" the damage would be limited to that "online" account... where as if you would have executed that "evil" script on your regular account your personal data would have been at risk... so yeah, what you want to do is pretty weird, but technically speaking, yes, it does help...

of course if the evil script you execute takes advantage of an (privilage escalation) exploit then it doesn't matter what account you are using to execute it... in other words, even with your weird method, you still need to keep everything nice and patched...

=)
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
An idea to improve security, for hacked PC's andrade Linux - Security 12 09-27-2005 01:11 AM
Idea on how to improve apache security at www.linuxfanatics.org linuxfanatics Linux - Security 2 03-06-2005 04:45 PM
Security idea - Server IDs bjdea1 Linux - Security 9 09-09-2004 05:50 PM
Security idea, does it exist somewhere already? bobtmasse Linux - Security 3 12-18-2003 11:17 PM
Interesting idea of file security hamster Linux - Software 5 06-09-2003 10:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:55 AM.

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