Solaris / OpenSolarisThis forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Is there any way to disable a user account so that I can re-enable it easily later if needed? I tried admintool but that doesn't help me re-enable the account later without changing the user's password.
If you don't want to change the password to disable the user, you can an invalid shell like /dev/null in /etc/passwd, or change the last field in /etc/shadow to "1".
Distribution: slackware 12.0, Vector Linux Soho 5.1 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 359
Thanked: 5
Quote:
Originally Posted by noir911
Is there any way to disable a user account so that I can re-enable it easily later if needed? I tried admintool but that doesn't help me re-enable the account later without changing the user's password.
Thanks.
as root : usermod -L username : it locks the username's passwd
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.