- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- about telnet
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2005 01:20 AM
06-06-2005 01:20 AM
thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2005 01:27 AM
06-06-2005 01:27 AM
Re: about telnet
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2005 01:40 AM
06-06-2005 01:40 AM
Re: about telnet
But I want to allow user,not his ip!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2005 03:04 AM
06-06-2005 03:04 AM
Solutionhope this helps,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2005 03:04 PM
06-06-2005 03:04 PM
Re: about telnet
Simply, remove the user login that you would like to Allow in this Deny User list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2005 08:13 PM
06-06-2005 08:13 PM
Re: about telnet
Just write "exit" in the .profile of the user.
Now whenever he will telnet, he will be logged off.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2005 08:31 PM
06-06-2005 08:31 PM
Re: about telnet
if [[ "$LOGNAME" = "splusername" ]]
then
ps | grep -q 'telnet'
if [[ $? -eq 0 ]]
then
echo "$LOGNAME is denied with telnet login"
sleep 2
fi
fi
If you want to control based on specific user from specific IP for using telnet then,
if [[ "$LOGNAME" = "splusername" ]]
then
if [[ $(who -mu | awk '{ print $8 }') = "ip-address" ]]
then
ps | grep -q 'telnet'
if [[ $? -eq 0 ]]
then
echo "$LOGNAME is denied with telnet login"
sleep 2
fi
fi
fi
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2005 08:53 PM
06-06-2005 08:53 PM
Re: about telnet
You can deny a special user using /etc/profile as,
if [[ "$LOGNAME" = "splusername" ]]
then
ps | grep -q 'telnet'
if [[ $? -eq 0 ]]
then
echo "$LOGNAME is denied with telnet login"
sleep 2
exit 1
fi
fi
If you want to control based on specific user from specific IP for using telnet then,
if [[ "$LOGNAME" = "splusername" ]]
then
if [[ $(who -mu | awk '{ print $8 }') = "ip-address" ]]
then
ps | grep -q 'telnet'
if [[ $? -eq 0 ]]
then
echo "$LOGNAME is denied with telnet login"
sleep 2
exit 1
fi
fi
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2005 02:55 PM
06-07-2005 02:55 PM
Re: about telnet
here's a "gem" to think about from Bill Hassell.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=697894
HP-UX 11.11 uses PAM for all authentication. You can loggin options for ssh in /etc/opt/ssh/sshd_conf. For a normal login, you can add this to /etc/profile:
TTY=$(tty)
RHOST=$(who -muR | awk '{print $NF}')
UID=$(id -ur)
EUID=$(id -u)
RUSER=$(id -un)
logger -t "login-info" -p auth.info "logname=$LOGNAME uid=$UID euid=$EUID tty=$TTY ruser=$RUSER
rhost=$RHOST"
This only writes a syslog message when the user is successful in getting a login.