LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-27-2006, 06:31 PM   #1
ViROID
LQ Newbie
 
Registered: Apr 2006
Posts: 10

Rep: Reputation: 0
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
 
Old 04-27-2006, 06:45 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
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...
 
Old 04-27-2006, 10:00 PM   #3
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
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
 
Old 04-28-2006, 03:11 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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.
 
Old 04-28-2006, 09:54 AM   #5
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Rep: Reputation: 32
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).
 
Old 04-28-2006, 01:43 PM   #6
taborekle
LQ Newbie
 
Registered: Dec 2005
Posts: 9

Rep: Reputation: 0
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
 
Old 04-28-2006, 04:09 PM   #7
ViROID
LQ Newbie
 
Registered: Apr 2006
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 04-30-2006, 06:06 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 04-30-2006, 07:27 AM   #9
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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.
 
Old 04-30-2006, 07:40 PM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 04-30-2006, 08:14 PM   #11
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
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.)
 
Old 04-30-2006, 08:19 PM   #12
ViROID
LQ Newbie
 
Registered: Apr 2006
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 04-30-2006, 08:21 PM   #13
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Emerson, do you never play games online?? Your missing out.
 
Old 04-30-2006, 08:30 PM   #14
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
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).
 
Old 04-30-2006, 09:28 PM   #15
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
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?
 
  


Reply

Tags
sudo, ubuntu



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
User admin and N/w admin on Gnome hangs ssrini *BSD 2 07-28-2005 07:55 AM
root (Admin) user crashes jimbrook SUSE / openSUSE 8 05-23-2005 07:04 PM
Admin-but not root KasperX Linux - Security 5 05-09-2005 04:23 PM
Admin user dee3lmo Linux - Security 1 07-12-2004 04:07 PM
User admin. How to change a user... Pug405 Linux - General 3 04-09-2004 01:33 AM

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

All times are GMT -5. The time now is 01: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