|
Literature
Africa |
Linux Administration Notes - Add New User<< | AdminNotes | Bootloader Toggling >> Foreman driven processForeman uses the foreman_simple_user module to add users to managed machines. Machines have owners, which can be groups. All users in a group are added to the system, along with their ssh keys. Users can be added to the Foreman UI at psi-cluster.uj.ac.za and their SSH key can be attached. Once added to the appropriate group, e.g. PSI Group, Puppet will create the user account on every host owned by that group. Manual processMaking a new user
# useradd -g users -u UID -n mario # apg -m16 -M NsCL mecInHibdelNith6 Eg3wricEjVetOgth viatHitamtOupon5 troxNan0griryarg vemyikDoatAvpag2 jujwaiWorHikvic0 # passwd mario # make -C /var/yp/ Samba accessIf the user needs/has the to have access to the server via Windows file sharing (SMB/CIFS), it is necessary to add him to the Samba user database, and assign a password. The Samba password is separate from the Unix password; the same considerations about strong passwords apply. # smbpasswd -a mario Email - IMAP or aliasingIf the user does not have a local email account, the sysadmin must set up an alias: # vi /etc/aliases mario: mario.rossi@gmail.com # newaliases # postfix reload otherwise, the user must be added to the usermod -a -G users_imap mario Completing the setup# /usr/local/sbin/fixUsers.sh which uses this fixUsers.sh script to adjust permissions, SELinux context and to make accessory directories. Please see the script for details. Web home directoriesIf the user needs to have a personal web home (please try to discourage this, suggest instead a private WikiSite), the public_html directory must have the correct SElinux context ( The fixUsers script does take care of these settings if it finds a public_html directory in the user's home. chcon --no-dereference -R -t httpd_user_content_t /home/mario/public_html/ chmod -R o+rX /home/mario/public_html/ chmod o+x /home/mario << | AdminNotes | Bootloader Toggling >> |