Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Disable remote login, su only
Name: duke167 Date: January 19, 2006 at 12:19:47 Pacific OS: redhat CPU/Ram: 1gb
Comment:
How can I disable remote login for a user, only allow "su -" to it?
exactly the same purpose as /etc/user_attr in solaris
Name: 3Dave Date: January 20, 2006 at 01:16:26 Pacific
Reply:
You can disable all logins by creating a file /etc/nologin. If the file contains text it will be displayed when a user tries to log in. Root can still login and so can FTP users.
0
Response Number 2
Name: duke167 Date: January 20, 2006 at 06:21:01 Pacific
Reply:
but how about I only want to disable one user e.g. user "abc" instead of all of them? I can't lock the password because people still need to su to "abc", I just don't want ppl to use "abc" to login.
pls help, thx.
0
Response Number 3
Name: 3Dave Date: January 20, 2006 at 06:42:12 Pacific
Reply:
How are the remote users logging in? If it is via SSH then you can disable user/host logins via the ssh config file.
0
Response Number 4
Name: Giro Timussi (by aaabbb) Date: January 24, 2006 at 13:48:04 Pacific
Reply:
You can make usermod -s /bin/false to all users except root and then all cannot login via ssh. And from root privs su -s /bin/bash username
Summary: okay. i'm trying to make our home network a little more secure. especially disabling remote logins over ppp0 on the gateway/dns/dhcp server, just because that freaks me out more than anything else. pp...
Summary: Hi linux people, I have fedora 2 with sshd on it. I disabled root login through ssh shell. so only other users can connect remotley. and I was trying to log in ad my userName and then su to be a root....