Add account expiry to user accounts in Linux and Solaris 31 August, 2011 By gerald Leave a Comment In Linux Shell # usermod -p "" foo # chage -d 0 foo 12 # usermod -p "" foo# chage -d 0 foo In Solaris Shell # useradd foo # passwd foo # passwd -f foo 123 # useradd foo# passwd foo# passwd -f foo
Restarting SSH service in Solaris 19 August, 2011 By gerald Leave a Comment Check SSH service status Shell root@solaris1 # svcs ssh STATE STIME FMRI online Feb_05 svc:/network/ssh:default 123 root@solaris1 # svcs sshSTATE STIME FMRIonline Feb_05 svc:/network/ssh:default Restarting SSH service Shell root@solaris1 # svcadm refresh ssh 1 root@solaris1 # svcadm refresh ssh