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 memory mapped / IO mapped ? Which calls used for this to access any hardware address in linux device driver ?
how do i check which package has installed some command suppose ls , mkdir or whatever ???
what are the default permissions for files and folders..?
How to ""Add"" not replace address to same network card other than the alias way.... ??????
What is the difference between RedHat linux and Fedora and Ubuntu?
Which directory is closer to the top of the file system tree, parent directory or current directory?
This question is belong to linux support. "one of my customer told to me, my application is getting slow response". how to resolve the issue. what are the steps you will follow to resolve the issue.
How to Trouble shoot performance issue in RHEL administration ? please give to one example
how to install linux OS? pls send step by step
I want to send pop-up message to samba users when they access the shared folder.... for eg: i want to tell them (dont copy mp3 and video files)
What is the name and path of the main system log?
what is the difference between unix and linux...