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 |
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.
|
|
05-13-2004, 04:11 PM
|
#1
|
Member
Registered: Mar 2004
Posts: 88
Rep:
|
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?
|
|
|
05-13-2004, 04:32 PM
|
#2
|
Member
Registered: Feb 2004
Posts: 467
Rep:
|
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.
|
|
|
05-13-2004, 04:38 PM
|
#3
|
Member
Registered: Apr 2004
Distribution: Debian
Posts: 185
Rep:
|
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.
|
|
|
05-13-2004, 04:44 PM
|
#4
|
Member
Registered: Mar 2004
Posts: 88
Original Poster
Rep:
|
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?
|
|
|
05-13-2004, 04:48 PM
|
#5
|
Member
Registered: Apr 2004
Distribution: Debian
Posts: 185
Rep:
|
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.
|
|
|
05-13-2004, 05:11 PM
|
#6
|
Member
Registered: Mar 2004
Posts: 88
Original Poster
Rep:
|
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.
|
|
|
05-13-2004, 05:20 PM
|
#7
|
Member
Registered: Apr 2004
Distribution: Debian
Posts: 185
Rep:
|
Take Apache for instance it starts as root then drops privledges to the userid and groupid that is specified in httpd.conf
|
|
|
05-13-2004, 05:25 PM
|
#8
|
Member
Registered: Mar 2004
Posts: 88
Original Poster
Rep:
|
What is the user account "amanda" used for?
|
|
|
05-13-2004, 05:33 PM
|
#9
|
Member
Registered: Feb 2004
Posts: 141
Rep:
|
backups
|
|
|
05-13-2004, 05:34 PM
|
#10
|
Member
Registered: Apr 2004
Distribution: Debian
Posts: 185
Rep:
|
Maybe the amanda backup server
|
|
|
All times are GMT -5. The time now is 05:11 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
|
|