Intermediate, Security

User-add and modifying group

$useradd -m -g users -G groupname -d/home/homedirectory -s /bin/bash username$usermod -a -G sudo username‘-m’ for creating home directory for user, ‘-g’ primary group , ‘-G’ groups, ‘-s’ login shell, ‘-d’ specifies custom home directory‘-a’ add group it retains group which user was part of without removing him from previous groupsSudoers.d# to give access to group… Continue reading User-add and modifying group