- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Disable user account login
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 02:49 PM
тАО11-19-2003 02:49 PM
Disable user account login
I have some accounts (eg. daemon,sys,etc) that do not need direct login access and I want to disable their login.
How can I configure it at SAM?
Thanks
Regards,
Wendy
PS. The system is trusted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 02:51 PM
тАО11-19-2003 02:51 PM
Re: Disable user account login
You can use the 'deactivate' selection.
Another handy way from the command line is:
e.g.
# /usr/lbin/modprpw -k daemon
Regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 02:51 PM
тАО11-19-2003 02:51 PM
Re: Disable user account login
#passwd -l
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 02:57 PM
тАО11-19-2003 02:57 PM
Re: Disable user account login
Just insert * in passwd colums against that username in /etc/passwd. It will disable the acct. As and when you feel to reactivate remove the *. Passwd will be in encripted form in second colum.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 02:57 PM
тАО11-19-2003 02:57 PM
Re: Disable user account login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 03:07 PM
тАО11-19-2003 03:07 PM
Re: Disable user account login
if [ "$LOGNAME" = "$username" ]
echo "login not permitted"
exit 1
fi
That would do it.
You could mess with the shell settings in /etc/passwd
I would NOT do that. It could effect the functionality of those users doing the jobs they do on your system.
I have verified these users can login. But they don't have a password set.that anyone can hack or anything.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 03:17 PM
тАО11-19-2003 03:17 PM
Re: Disable user account login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 03:21 PM
тАО11-19-2003 03:21 PM
Re: Disable user account login
/usr/lbin/modprpw -m alock=YES
This puts an admin lock on the user account and no one can login.
Also you can change other values of the tcb files of the user using modprpw, have a look at man pages which is found in 11i onwards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 04:54 PM
тАО11-19-2003 04:54 PM
Re: Disable user account login
Try the following command. it will help u,
#passwd -l <
Thanx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 05:52 PM
тАО11-19-2003 05:52 PM
Re: Disable user account login
Using SAM.
Double click on Accounts for Users and Groups -> Local Users .
Here you can find a list of ids like daemon,sys. Select the ids you want to disable and goto action menu and do the changes you require.
Thanx & Regards,
Roby