LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-13-2004, 04:11 PM   #1
mfo6463
Member
 
Registered: Mar 2004
Posts: 88

Rep: Reputation: 15
My user account


People have told me that I shouldn't use the root for daily use, but is it ok to make my account on have a UID of 0? And why are there so many groups? What groups should I add my user account to?
 
Old 05-13-2004, 04:32 PM   #2
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
That would be making your account root. If you need root privileges, it is recommended that you su into the root account or use sudo.
 
Old 05-13-2004, 04:38 PM   #3
peacebwitchu
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 185

Rep: Reputation: 30
Don't add yourself as uid 0. The point of the root user is to do system admin stuff and that's it. If you run as root you have essentially blown the whole security of unix out of the water and your box is not any more secure than the other os's. Make a user for yourself and create a group with the same as your userid. This way if you accidentally try to delete something essential it will not allow you to. If you find some bad malicious code when you execute it that code will run with your privs and won't be allowed to modify system code. So my point is the whole linux community will be better off if you instill this in new users and yourself. The groups are mostly for system accounts to run with very little privs so if they get compromised they run a with minimal environment.
 
Old 05-13-2004, 04:44 PM   #4
mfo6463
Member
 
Registered: Mar 2004
Posts: 88

Original Poster
Rep: Reputation: 15
Ok, so should I just have my UID be 500 as automatically set? And what about the user groups? Should I only belong to the group of my userid? What are all the other groups for?
 
Old 05-13-2004, 04:48 PM   #5
peacebwitchu
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 185

Rep: Reputation: 30
I wouldn't add yourself to any group that you don't need to be in. 500 is fine as long as it isn't used by anyone else.
 
Old 05-13-2004, 05:11 PM   #6
mfo6463
Member
 
Registered: Mar 2004
Posts: 88

Original Poster
Rep: Reputation: 15
But what are all the user accounts and groups for? There are over 50 accounts and groups, and some of the groups don't even have any members.
 
Old 05-13-2004, 05:20 PM   #7
peacebwitchu
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 185

Rep: Reputation: 30
Take Apache for instance it starts as root then drops privledges to the userid and groupid that is specified in httpd.conf
 
Old 05-13-2004, 05:25 PM   #8
mfo6463
Member
 
Registered: Mar 2004
Posts: 88

Original Poster
Rep: Reputation: 15
What is the user account "amanda" used for?
 
Old 05-13-2004, 05:33 PM   #9
sirpimpsalot
Member
 
Registered: Feb 2004
Posts: 141

Rep: Reputation: 15
backups
 
Old 05-13-2004, 05:34 PM   #10
peacebwitchu
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 185

Rep: Reputation: 30
Maybe the amanda backup server
 
  


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
system account or user account??? yenonn Linux - Newbie 6 05-10-2006 07:49 PM
User account restriction br.man Linux - Newbie 2 04-21-2005 10:58 PM
The right group for a user account hspc Linux - Security 1 04-21-2005 02:41 AM
accept (.) in user account reaky Linux - General 1 04-27-2004 04:50 AM
Hiding user account naveedpta Linux - Newbie 1 11-20-2003 05:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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