- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How see that do user, which was connect from remsh...
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
07-27-2005 05:22 PM
07-27-2005 05:22 PM
How see that do user, which was connect from remsh?
In LAST I see session that was connect from remsh. How see that do user, which was connect from remsh? There is not this info in syslog.log.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2005 08:13 PM
07-27-2005 08:13 PM
Re: How see that do user, which was connect from remsh?
eg:
remsh server "uptime"
then there is no record of it on the local server itself - you'd need to check out their .sh_history file on the remote server from which they ran the command.
If they're running
remsh server
then commands are logged to the .sh_history file (or equivalent) as normal.
It's also possible that it's a cron job that's running a remsh command, in which case you'd need to check the job details on the remote server to see what it was doing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2005 08:27 PM
07-27-2005 08:27 PM
Re: How see that do user, which was connect from remsh?
One way it is possible is:
1. # who ( lists all sessions )
Get tty from this of sessions.
2. # ps -t tty
This shows "rlogind" daemon running on that tty if it is connected through remsh.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2005 11:35 PM
07-27-2005 11:35 PM
Re: How see that do user, which was connect from remsh?
--/etc/profile--
ps | grep -q 'rlogin'
if [[ $? -eq 0 ]]
then
echo "`date` $LOGNAME is logging from who -mu" >> /tmp/remsh.log
fi
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2005 11:37 PM
07-27-2005 11:37 PM
Re: How see that do user, which was connect from remsh?
ps | grep -q 'rlogin'
if [[ $? -eq 0 ]]
then
echo "`date` $LOGNAME is logging from `who -mu`" >> /tmp/remsh.log
echo "...
fi
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2005 12:08 AM
07-28-2005 12:08 AM