how can i make an user to nologin without locking the account for the user
Answers were Sorted based on User's Feedback
Answer / aman thakur
Simply edit a line in /etc/passwd and chage user's shell to /bin/false(in case of ubuntu) or /bin/nologin(incase of redhat or fedora)
| Is This Answer Correct ? | 45 Yes | 7 No |
Answer / arnab chowdury
Simply edit a line in /etc/passwd and chage user's shell to /sbin/nologin
| Is This Answer Correct ? | 12 Yes | 4 No |
Answer / tinku prasad
Simply edit a line in /etc/passwd and chage user's shell
to /sbin/nologin
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / naveen.esamalla
i know just lock the useraccount ie usermod -L username
| Is This Answer Correct ? | 10 Yes | 9 No |
Answer / santhosh kumar
use password aging for that user. and set the date which is already past..!!! "chage username" is the command
| Is This Answer Correct ? | 3 Yes | 4 No |
Answer / girish
vi /etc/passwd
student:x:500:500::/home/student:/bin/bash
student:*:500:500::/home/student:/bin/bash
here student is user and just replace "X" with "*"
| Is This Answer Correct ? | 1 Yes | 6 No |
what is meant by mysql clustering
Friends, I don't have enough free space in root directory. but in home directory I have 40gb free. So I can not install anything in root directory (which occupies more space) Please suggest me If there is any possibility to increase the root directory size by minimising the home directory's.
i installed clustering packages.When i try to run it getting LUCI error...what is it..??
What utility can you use to automate rotation of logs?
what is the difference between unix and linux...
How to Trouble shoot performance issue in RHEL administration ? please give to one example
What is the use of DNS Server? Name other servers works same as like DNS?
How do i check which nfs version I am using ????????
Tell me the 5 differences between Linux and Unix?
Without using w command how can Iknow that who are users logged in and what they are doing and whether they are idle or running mode?
What is the difference between an argument and an option/switch?
how can i create samba server in fedora 9.0 ? and domain/LDAP controller! clilent side is windows pc .?