Last Updated: 08 Jul 2023
|
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
server-tech:centos:adding-a-user [Feb 15, 2009 03:04 AM] dordal |
server-tech:centos:adding-a-user [Jul 8, 2023 10:59 PM] 65.108.103.96 old revision restored (Jul 8, 2023 08:14 AM) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | = Adding a User & Groups in CentOS = | ||
+ | If you're using command line CentOS, adding a user is a bit complicated. FreeBSD has a nice command line script ('' | ||
+ | < | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | If you want the user account to be created, but not let the user login via the command line, set the shell to ''/ | ||
+ | == Adding Groups == | ||
+ | |||
+ | If you want to add a group, the easiest way is to manually modify the ''/ | ||
+ | < | ||
+ | users: | ||
+ | </ | ||
+ | == Common Groups == | ||
+ | |||
+ | By default on CentOS, every user is added to a group of their own name. In other words, the user **dordal** is added to the group **dordal**, as the default group. When a user creates files, its with a '' | ||
+ | |||
+ | This makes for fairly fine-grained permissions, | ||
+ | < | ||
+ | Then you want to say: | ||
+ | < | ||
+ | which sets the permissions so that any //new// files are created with the same group as the parent folder (e.g. ' |