Computing.Net > Forums > Solaris > login restriction

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.

login restriction

Reply to Message Icon

Name: srinivasam_ks
Date: February 17, 2004 at 03:56:51 Pacific
OS: solaris 9
CPU/Ram: 1GB
Comment:

I want to restrict a particular login to a particular IP.
I want to keep this in one of the shell initializatio files like :
if [ $LOGNAME = 'username' -a -fromhostIP != "machineIP" ]
then
echo " You are not allowed to ligin "
exit
fi

But I don't know if there is a function or env variable which can return the IP of the machine from which the login request is coming.
Please let me know if such feature is available.
thanks,
mitra.



Sponsored Link
Ads by Google

Response Number 1
Name: fpmurphy
Date: February 21, 2004 at 10:03:36 Pacific
Reply:

Have a look at TCP Wrappers.

BTW, a user has already logged in by the
time their shell initialization file is
read.


0
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 Solaris Forum Home


Sponsored links

Ads by Google


Results for: login restriction

Restricting Network Logins www.computing.net/answers/solaris/restricting-network-logins/1882.html

Restriction on users www.computing.net/answers/solaris/restriction-on-users/2183.html

FTP with Restricted Shell www.computing.net/answers/solaris/ftp-with-restricted-shell/1839.html