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 ????????
in linux gui desktop icon was lost how con u back this icons
What is LILO?
What are the questions we are expecting for 2yrs. experience guy for linux company interview questions?
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)
What is the difference between an argument and an option/switch?
What is the minimum number of partitions you need to install Linux?
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 to apply patch for multiple servers .
How to catagories tickets in RHEL, which tickets are belong to PROBLEM, INCIDENT and CHANGE management? please given to me with examples
My Linux server in the two lan card one lan card is ok working but second lan card after restart daily lan card deactivate and then manual activate then properly working but after restart repeat this problem.(Fedora O.S.) Pls tell me solved this problem.
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)