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 difference between inetd and xinetd
How find out drivers of installed devices in linux (RHEL)?
how do you configure linux system as a router?
What is the difference between RedHat linux and Fedora and Ubuntu?
I want to configure production interface and manage interface, how to configure both interfaces in Linux. please post the answers
Hi all Could u plz tell me how I can get UNIX/Linux Certification
How to build new filesystem ? and what is irig file system?
Without Using $date -dyesterday. How I get the yesterday's date ?
1 which file contains information about os wether it's 32 bit or 64 bit os 2 difference between logical block and physical block?? 3 what is the size of logical block and physical block?? 4 daemon for nfs on client end as well as server end??? 5 how to confirm from client end about nfs server sharing?? 6 what contains information about file and directory creating time or modification time??
How to ""Add"" not replace address to same network card other than the alias way.... ??????
what is memory mapped / IO mapped ? Which calls used for this to access any hardware address in linux device driver ?
In Linux(RHEL) server have two users with same name. one is local user and second one is NIS user. if you login the server which user will login (local or NIS)