Create user profile and tips
1. Create a user using below command
useradd ram
2.To Set the password fir the
user passwd ram
3.To delete the user
userdel ram
3.To lock the account
usermod -L ram (or) passwd -l ram
4.To release the lock
usermod -U ram
5.To set a expiration date for the user
usermod -e 06/17/2008 ram
Some Tips
To disable an account:
/usr/lbin/modprpw -m alock=YES username
To enable a user account:
/usr/lbin/modprpw -k username
To check status of the account:
/usr/lbin/getprpw -r -m lockout username
It will return a 7 digit number and if the 6th digit is set to 1 that the account is locked
Blocking all the user account
If u want to block all the user for perticular box, Just create one empty file BLOBKALLBUT ROOT
It will be block the all the user and only root can access.
Subscribe to
Posts [Atom]