Computing.Net > Forums > Linux > Disable remote login, su only

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

Reply to Message Icon

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



Sponsored Link
Ads by Google

Response Number 1
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

Giro Timussi


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Disable remote login, su only

simple networking security question www.computing.net/answers/linux/simple-networking-security-question/5579.html

How to make Remote login using ssh, www.computing.net/answers/linux/how-to-make-remote-login-using-ssh/15422.html

su is not working www.computing.net/answers/linux/su-is-not-working/27412.html