-   Linux - Newbie (
-   -   User Accounts and Groups in Linux (

dheroan 07-30-2006 02:32 AM

User Accounts and Groups in Linux
I was just wondering about the built-in user accounts and groups in Linux. I know there's root as a built-in user account and equivalent to the Windows Administrator, but that's about all I could get my mits on. Are there other built-in accounts and groups such as Guests and Backup Operators (as in Windows)?

billymayday 07-30-2006 02:39 AM

Have a look at /etc/passwd. These are all the users on your system.

/etc/group has all the groups


blackhole54 07-30-2006 02:41 AM

The accounts that are provided by default depend on the distro. You can view the existing acounts be looking at /etc/passwd with your favorite text editor or the program less. Many of these are used by the system and are not for login. The groups are listed in /etc/group. You can add new users with useradd and delete users with userdel. Check the respective man pages for more info.

jschiwal 07-30-2006 03:32 AM

There are a number of system users such as mysql, and lp that are used to run services like mysql and cups. This is safer than running these programs as root. There are some system groups that you can make yourself a member of to gain additional rights. The wheel group is a common one used. Members are administers who are allowed to use the "sudo" command to run programs as root. Making yourself a member of the audio group allow you to play music because the group owner of the /dev/audio and /dev/dsp devices is audio.

dheroan 07-30-2006 10:02 PM

Thank you all for your responses. =)

All times are GMT -5. The time now is 06:30 AM.