Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to diable remote user to login? 1

Status
Not open for further replies.

bonsky

MIS
Joined
Apr 23, 2001
Messages
280
Location
US
how can i configure in suse to disable login remotely.sorry.. newbie here.. thanks alot.

 
thanks alot for th reply, however, im looking at not allowing a user to login remotely. thanks!
 
Could you add something in .profile for the user to check whether they're accessing from the console and if not, exit with a message if required?
 
Perhaps you can create a file called
/etc/remusers.deny

In /etc/profile, add something like this
Code:
## REMOTE LOGIN CHECK ##
if [ `cat /etc/remusers.deny | grep -w $USER | wc -l` -gt 0 ] ; then
        echo "##################################"
        echo "# REMOTE LOGIN NOT ALLOWED!!!!!! #"
        echo "##################################"
        exit 0
fi


"If you always do what you've always done, you will always be where you've always been."
 
What exactly are you trying to achieve?
If you need to disable logins from almost everywhere (and without considering individual users) you might think about a quite different approach:
Disable telnet, disable rsh, allow ssh only from a few other hosts.
Suse Linux comes with a package called bastille that does things like these.

regards
 
to all,
thanks alot for your real help. Basically, what i am trying to do is to disallow the user to remote login but i want the user to login via another name and su to that particular user that i blocked from remote.
I will try the remusers.deny later, however, i have configure that via editing the /etc/security/access.conf.

thanks alot!
edmon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top