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 |
How do i check which nfs version I am using ????????
there are many IPC mechanisms available in Linux ? Which one is best to use and when ?
How to check all open ports on linux machine and block unsed ports????????
How to know what are the packages required for any service? Example: How to know what are the package required for send mail services. using any command it is passable are not?
Give a Linux shell command to find all files in a directory which contain ip addresses.
As a system admin i want to know some things what are the troubleshooting issues we are facing frequently and what are the tickets will be raised.
How do display error messages instantly when command fails?
how can i create samba server in fedora 9.0 ? and domain/LDAP controller! clilent side is windows pc .?
When you install RedHat what is the kernel mode ? What is kernel compilation / upgrade ?
What are the main differences between RHEL4 & RHEL5?
How to build new filesystem ? and what is irig file system?
How to convert an IP address to a Domain name using Unix ?