Useradd (Solaris)

#useradd -d /export/home/fred -m -s /bin/ksh -c “Fred Smith” fred

#useradd -c “a-Autosys Admin” -g 5998 -u 8873 -k /etc/skel -s “/bin/ksh”

Advertisements

Create filesystem in Solaris (Veritas)

Creating RAW FS

# vxassist -g appdg make sybtempfs 2g user=sybase group=sybaseg
# newfs /dev/vx/rdsk/appdg/sybtempfs

Mounted FS

# vxassist -g appdg make sybtempfs 2g user=sybase15 group=sybase
# vxprint -ht | grep sybtempfs
v  sybtempfs    –            ENABLED  ACTIVE   4194304  SELECT    –        fsgen
pl sybtempfs-01 sybtempfs    ENABLED  ACTIVE   4194304  CONCAT    –        RW
sd paili01_11-02 sybtempfs-01 paili01_11 37748544 4194304 0       c2t50060E8003AAC711d9 ENA
# mkfs -F vxfs -o largefiles /dev/vx/rdsk/appdg/sybtempfs

create the mount point and mount the file system
# mkdir <mount point>
# mount -F vxfs /dev/vx/dsk/appdg/sybtempfs /apps/sybtemp

chown before and after mounting

change vfstab
/dev/vx/dsk/appdg/sybtempfs /dev/vx/rdsk/appdg/sybtempfs /apps/sybtemp vxfs 3 yes –