Archive for January, 2012

Solaris – Adding User and Home Directory

To create a user newuser with shell /usr/bin/bash and home directory /export/home/user:
# mkdir /export/home/user
# useradd -s /usr/bin/bash -d /export/home/newuser newuser
# chown newuser:staff /export/home/newuser
# passwd newuser
New Password:
Re-enter new Password:
passwd: password successfully changed for newuser

To create a role with roleadd. The usermod and rolemod commands modify the properties of users and roles, respectively:
# usermod -s /usr/bin/csh newuser

userdel and roledel delete users and roles.
groupadd, groupmod, and groupdel manage groups.

Be the first to comment  Posted by Ferdy - January 14, 2012

Categories: Solaris   Tags:

Solaris Commands

Search a package
# pkg search -r openoffice

Installing a package
# pkg install openoffice

Uninstalling a package
# pkg uninstall openoffice

Hrdware details
# prtconf

Processor Information:
# psrinfo -pv

List all processes
# ps -ef

View the services
# svcs

View the system-log
# svcs system-log

Enable a service
# svcadm enable network/ftp

Be the first to comment  Posted by Ferdy - January 3, 2012

Categories: Solaris   Tags: