Why is it that when I provide a username during the installation process for Ubuntu, that a new group is created with that name too?
Is there a reason we're not just plain Administrators?
Why is it that when I provide a username during the installation process for Ubuntu, that a new group is created with that name too?
Is there a reason we're not just plain Administrators?
Being an administrator just opens up a bunch of other options to you as a user (they are mostly unimportant), but it won't really change anything.
By default, the first user (the one you create from the installer) is an administrator (essentially) with some options disabled for safety. The reason everyone gets a separate group is simply because it makes it easier to manage permissions (on a Unix) system in this way.
This is necessary because of Linux file system rights. Linux (and other Unix variants) have a right setting for 3 types of users: a owner, a owning group and "others" (i.e. someone who's not the owner and not in the owning group). All files (on linux filesystems) are obliged to have a owner and owning group.
Since usually files that are created by a user are meant for that user only the owner is set to the user and the owning group is set to a special group the user belongs to: the group with the user its name. Thats why such a group is created whenever a new user is created.
Administrator
and Desktop User
groups are pretty much useless? (Edit: Apparently those aren't "groups" at all, I'm so confused...)
– user541686
May 21 '11 at 23:05
There is you, root (admin), and everyone else. You're automatically added to sudoers and can perform as root(admin) via sudo because of your group status. Root and Administrator are pretty synonymous.
Ubuntu wants to make it easy for users to get up and running without having to install and configure all that stuff.
EDIT: Read RootSudo
root
can", which to me means "running dangerous programs without needing sudo
". Does that mean if I add myself to the Admins group, I won't need sudo
anymore?
– user541686
May 22 '11 at 00:41
group
and akind of user
? Are you saying you can be in theroot
group but be aDesktop User
at the same time? – user541686 May 21 '11 at 23:02In windows, groups are not kinds of users, they are just groups. Groups do what it says on the tin, they "group" users together, so then you can apply something (like a setting) to a whole group. The "kinds of users" that you can have is in a technical sense unlimited, but for the purposes of this question, there are really essentially about 3. First there are normal users (representing real people, with a /home/username), then there are virtual users (like samba's guest account), and then there is root -->
– RolandiXor May 21 '11 at 23:13