Unix Tips

Creer des groupes et des utilisateurs locaux pour Solaris 10

Creer un groupe

groupadd -g 2009 mygroup
where -g means groupid which is  200( why 200 ?)
then  i being told is
0-60000  for groups
0-99 - reserved for OS
100-60000 -can be used to create groups

Creer un utilisateur

useradd -u 2035 -g 2009 -c "cool" -d /home/myuser -m -s /bin/csh myuser
#useradd -u <uid> -g <gid> -G <GID/G.NAME> -c <comment> -d </export/home/user1> -m -s </bin/sh> user1

u –> uid –> user identification
g –> gid –> group " " (primary group)
G –> GID –> " " (secondary ") no need to give this GID
c – — —> comment(if u give ur name also) no need to give this c
d –> directory
m –> making home dir for user
s –> shell.no need to give this shell it will take by default.

cron

http://fr.wikipedia.org/wiki/Cron http://www.unixgeeks.org/security/newbie/unix/cron-1.html

minute hour dom month dow user cmd


01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly