Changes

Jump to navigation Jump to search
588 bytes added ,  00:00, 1 October 2015
Line 20: Line 20:  
  /usr/sbin/useradd -c 'User Comment' -d /path/to/user/home -p 'encrypted password' -s /bin/bash user
 
  /usr/sbin/useradd -c 'User Comment' -d /path/to/user/home -p 'encrypted password' -s /bin/bash user
 
  fi
 
  fi
 +
 +
other examples
 +
%pre
 +
....
 +
/usr/sbin/groupadd \
 +
  -g 500 shared 2>/dev/null || :
 +
/usr/sbin/useradd \
 +
  -u 102 -c 'e-smith web server' -d /home/e-smith \
 +
  -G shared -M -s /bin/false www 2>/dev/null || :
 +
/usr/sbin/useradd \
 +
  -u 101 -c 'e-smith administrator' -d /home/e-smith \
 +
  -G shared,root,www -M -s /sbin/e-smith/console admin 2>/dev/null || :
 +
/usr/sbin/useradd \
 +
  -u 103 -c 'e-smith guest' -d /home/e-smith \
 +
  -G shared -M -s /bin/false public 2>/dev/null || :
 +
/usr/sbin/useradd \
 +
  -u 1002 -c 'sme log user' -d /var/log/smelog \
 +
  -M -s /bin/false smelog 2>/dev/null || :

Navigation menu