Lock user through file...
Hi Everyone,
I have a small question regarding local user, how to lock a user by using a file, and not any direct command ? Any direct command will also be appreciated? Thank You, Kapil |
Lock them from what? Files/binaries, account?
|
Quote:
If you mean lock the account, look at the man page for the passwd command, specifically the "-l" option. |
Quote:
lock them in the sense that they can't login at any terminal |
Quote:
Hi There, I want to lock them in the sense that they can't login at any terminal, also i want to put timeout for releasing this restriction as well after 10 hrs??? Thank You |
As already mentioned:
# passwd -l <user> To unlock in 10 hours: # echo '/usr/bin/passwd -u <user>' | at now + 10 hours |
Quote:
Thank You for the help...I will try this and update the thread soon |
All times are GMT -5. The time now is 05:24 AM. |