Postări

Se afișează postări din decembrie, 2014

User management in linux

User management To list users currently logged on the system, the  who  command can be used. To add a new user, use the  useradd  command: # useradd -m -g [initial_group] -G [additional_groups] -s [login_shell] [username] -m  creates the user home directory as  /home/ username . Within their home directory, a non-root user can write files, delete them, install programs, and so on. -g  defines the group name or number of the user's initial login group. If specified, the group name must exist; if a group number is provided, it must refer to an already existing group. If not specified, the behaviour of  useradd  will depend on the  USERGROUPS_ENAB  variable contained in  /etc/login.defs . The default behaviour ( USERGROUPS_ENAB yes ) is to create a group with the same name as the username, with  GID  equal to  UID . -G  introduces a list of supplementary groups which the user is also a member of. Eac...