This is a discussion on Locking account on redhat using /etc/passwd within the Linux software forums, part of the Linux Getting Started category; How do I lock account on redhat Linux w/o deleting a user account? What modification do I need to make ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
| Sponsored Links | ||
|
|
|
|||
|
You can do like vi /etc/passwd and find the account that you want to lock it and put plus sign (+) in front of it. Save it and you're good to go. By doing that, the user account tomctl got disable and can't login anymore but his account is still in your machine. If you want to complete remove it, then do userdel -r tomctl. Also, you can do the rbash to restrict that user, too. Tons of things we can manage users in linux.
For example. +tomctl This will disable tomctl account. |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linux NFS file locking soft or hard method | vaibhav.kanchan | Getting started tutorials | 2 | 05-13-2008 06:00 PM |
| Passwd | bubloob_13 | Getting started tutorials | 2 | 03-24-2008 11:04 PM |
| passwd reset | pansarevai | CentOS / RHEL / Fedora | 4 | 03-24-2008 10:39 PM |
| Redhat Users vsftpd FTP Passwd Reset Problem | bubloob_13 | CentOS / RHEL / Fedora | 1 | 11-05-2007 09:03 PM |
| Ssh account locking | Linux software | 1 | 01-11-2006 12:28 AM | |