Archive for April, 2005

Managing Disks and partitions

Tuesday, April 26th, 2005

In Linux i would use cfdisk to partition a hard drive. The solaris equivalent is format.

Adding a user from the command line

Saturday, April 23rd, 2005

E.g. Adding a postgres user

# nicl . -create /users/postgres
# nicl . -createprop /users/postgres uid 502
# nicl . -createprop /users/postgres gid 502
# nicl . -createprop /users/postgres passwd ‘*’
# nicl . -createprop /users/postgres change 0
# nicl . -createprop /users/postgres expire 0
# nicl . -createprop /users/postgres realname ‘PostgreSQL User’
# nicl . -createprop /users/postgres home /usr/local/pgsql
# nicl . -createprop /users/postgres shell /usr/bin/false
# nicl . -createprop /users/postgres _writers_passwd postgres