how to create an user

hi
can anyone help me out to create an user to access specific folder only.

for creating user account try this command\

# useradd -u 102 -g 101 -d /home/user1 -m -s /bin/sh -c "Test User" user1

hi i tried and created in the mean time ..can u explain fields u mentioned after the useradd.../bin/bash i used but dont know what for it is...

dude...........

#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.

ok..:slight_smile:

Also there is option to use SMC to add users via GUI.

For GUI support, type admintool on command prompt but Solaris 10 doesnot support admintool command.