Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
04-27-2006, 06:31 PM
|
#1
|
LQ Newbie
Registered: Apr 2006
Posts: 10
Rep:
|
Is your default user root or admin?
I've always understood it to be that you always build a standard user account for general use, and only use your root or administrator account for administrative purposes.
How many people here actually follow this ?? I can't say that I generally do, though I always tell others to.. (do as I say, not as I do. lol) I'm always busy installing or uninstalling software, screwing with settings or trying to break something. (I've reinstalled linux 3 times this week because I've been screwing with packages/dependencies and startup files. hehe..
Anyhow.. have things to do.
...V
|
|
|
04-27-2006, 06:45 PM
|
#2
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
My default user on linux is always a standard user. I always take the time to setup sudo.
On windows, I think my user is a power user, so I can install most programs (if I remember correctly). But I have to allow more vulnerabilities on the windows box at home because my wife isn't so computer savvy and installs lots of stuff. I mostly just keep it all scanned for viruses and spyware (since I use my linux box anyway). I also have both hardware and software firewalls limiting some of the damage she can do. Not to mention Firefox and Thunderbird are a must, with settings I choose...
|
|
|
04-27-2006, 10:00 PM
|
#3
|
Senior Member
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249
Rep:
|
On Linux i'm always in my user account. I stay away from logging in as root graphicly like the plauge. Though sometimes I find myself in those situations when I don't know how to do it through the CLI so I do it anyway. The longer I use Linux though the less often that occurs. On my windows box I follow the same practice, though XP makes this a pain in the butt, and not loggin in as admin is an imposiability 
|
|
|
04-28-2006, 03:11 AM
|
#4
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
I always use my normal user account. If I need to do any admin tasks, I switch to root on the command line. On rare occassions, I use kdesu to run a graphical app with root priveleges. I hardly need to login to root on my production machine because once I have setup things the way I want there is no need to keep tinkering except when doing security updates.
Last edited by reddazz; 04-28-2006 at 01:47 PM.
|
|
|
04-28-2006, 09:54 AM
|
#5
|
Member
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511
Rep:
|
I almost never log into my root account. I mainly just work as a user, and I use sudo for any root access. The only time I really log into my root account is when something in sudo doesn't work (for example, some long bash command with lots of parentheses).
|
|
|
04-28-2006, 01:43 PM
|
#6
|
LQ Newbie
Registered: Dec 2005
Posts: 9
Rep:
|
I can relate a really cool story from a Unix Expo show that I attended about 20 years ago about the dangers of willy nilly use of root. Once upon a time....
Seems that there was a company that was touting the advantages of their "Secure Unix". They had a TV (or some such appliance) that they were giving away to anyone that, given a normal user account, could penetrate their file security and obtain the 'secret message' kept in a file (which was held in the /tmp directory). Users were provided with a terminal and a regular user account to log in and attempt to get to the file.
This being a Unix Expo in NY, there was a hugh crowd around the booth, and this challenge generated lots of interest.
Seems a rather enterprising young man was given a chance. Once logged in, he noted that root's .profile had '.' in the execution path before any of the other command directories. So the kid made a little command called 'ls' that would copy the 'super secret file' to the normal user's directory, then did a chmod 777 on the file copied, and then called the normal ls command and passed it any arguments. He put it in the /tmp directory, and then logged out. He asked one of the booths attendants if there was a problem with the file in /tmp, as he could not find it. The booth attendant logged in as root, cd'd to /tmp, did a ls, and pointed out that the file was there. The kid (smiling) said, 'Ok, thanks'. Logged back in and obtained the message from the copied file in the normal user account. He then proclaimed that he had penetrated security, could recite the message and wanted the prize.
The booth company was not happy, but finally handed over the prize.
It created quite a stir (as I recall).
-- Larry
|
|
|
04-28-2006, 04:09 PM
|
#7
|
LQ Newbie
Registered: Apr 2006
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by taborekle
I can relate a really cool story from a Unix Expo show that I attended about 20 years ago about the dangers of willy nilly use of root. Once upon a time....
|
"Social Engineering Specialist, because there is no patch for human stupidity."
I'm really surprised to see that so many people actually use a user account.. I'm trying to get into the habbit, it's a bad one to have.
...V
|
|
|
04-30-2006, 06:06 AM
|
#8
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
I don't have Ubuntu, but I like how they enforce the rule. The root account is disabled so you can't log in as root. You have to use sudo.
|
|
|
04-30-2006, 07:27 AM
|
#9
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Quote:
Originally Posted by jschiwal
I don't have Ubuntu, but I like how they enforce the rule. The root account is disabled so you can't log in as root. You have to use sudo.
|
Root is not really disabled in Ubuntu, the account is still there but just doesn't have a password. Whilst sudo is very convenient, there is also the danger that a cracker would just need one users account details to gain access to the whole system. Obviously chances of this happening are much less is Linux compared to Windows but its still possible.
|
|
|
04-30-2006, 07:40 PM
|
#10
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
Perhaps, I should have used the words "locked out". I meant that you can't log in as root, or su to root. Thank you for the correction.
|
|
|
04-30-2006, 08:14 PM
|
#11
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
Certainly I've not started X as root for at least 5 years. No point doing it anyway, my only desktop is XFCE with no GUI management tools. Of course, I have a little ugly Windows for games. Here I made things simple. I disabled Windows File Protection and started removing everything not related to gaming. I ended up with XP SP2 well under 400 MB and without any networking ability - and it stays clean without any antivirus software. (I think Windows should not do networking as kids should not play with matches.)
|
|
|
04-30-2006, 08:19 PM
|
#12
|
LQ Newbie
Registered: Apr 2006
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by Emerson
Certainly I've not started X as root for at least 5 years. No point doing it anyway, my only desktop is XFCE with no GUI management tools. Of course, I have a little ugly Windows for games. Here I made things simple. I disabled Windows File Protection and started removing everything not related to gaming. I ended up with XP SP2 well under 400 MB and without any networking ability - and it stays clean without any antivirus software. (I think Windows should not do networking as kids should not play with matches.)
|
Under 400mb? Thats nice! I wish windows had one of those awesome "minimal install" options like linux does, how cool would that be.
...V
|
|
|
04-30-2006, 08:21 PM
|
#13
|
Senior Member
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249
Rep:
|
Emerson, do you never play games online?? Your missing out.
|
|
|
04-30-2006, 08:30 PM
|
#14
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
Quote:
Originally Posted by Penguin of Wonder
Emerson, do you never play games online?? Your missing out.
|
Maybe not. I do not enjoy multiplayer games. (I have only a few, like Capitalism 2 and alike).
|
|
|
04-30-2006, 09:28 PM
|
#15
|
Senior Member
Registered: Aug 2005
Posts: 1,755
Rep:
|
Quote:
Originally Posted by reddazz
Whilst sudo is very convenient, there is also the danger that a cracker would just need one users account details to gain access to the whole system.
|
But if that's so, why assume the cracker won't similarly gain the "account details" for root if you use the root account?
|
|
|
All times are GMT -5. The time now is 06:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|