- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to keep a log on remote login from normal ...
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
01-13-2000 05:06 PM
01-13-2000 05:06 PM
How to keep a log on remote login from normal telephone dialup?
server. Anybody can dial in and login at the given number by Hyperterminal
into the system. Is there any
way to keep a log on this kind of login? I noticed that
/var/adm/syslog/syslog.log does not log these activities.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2000 05:51 AM
01-14-2000 05:51 AM
Re: How to keep a log on remote login from normal telephone dialup?
mechanism, rather than using PPP and rlogin?
If so then login can be recorded in the wtmp file. See 'man login' - for
details.
Also check out 'securetty' to prevent root login directly from such a source.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2000 09:47 AM
01-14-2000 09:47 AM
Re: How to keep a log on remote login from normal telephone dialup?
the system through a particular modem port, but I wonder how long the data will
be kept. I can see any earlier records like the ones for
last week. I found there is a file /var/adm/acct/nite/owtmp, how do I use
this file?
In addition, If I want to find out what commands this
particular user has run, I can just run /usr/lib/acct/acctcom -u "username" to
find out the details. But if the accounting is disabled, is there any other way
to do that?
One more question, just out of curiosity, is there any way to prevent a
particular user (root, e.g.) from
logging through a specific modem port (/dev/ttyd0p7,e.g.) ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2000 02:20 AM
01-19-2000 02:20 AM
Re: How to keep a log on remote login from normal telephone dialup?
lastb | grep ttyd-p7 will show you who FAILED - also important to watch
wtmp remails available until you clear it and can grow quite large.
You can save and compress the contents for future reference and clean the file
as noted below
Create a new ascii file:
who /var/adm/wtmp > wtmp.text
compress wtmp.text
Clear the contents of wtmp:
cat /dev/null > /var/adm/wtmp
I have a file in /etc called modem.acl In /etc/profile I check to see if the
user is on a modem line and grep for the username on that list. If it's not
there then echo a short message and log them off.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2000 10:54 AM
01-19-2000 10:54 AM
Re: How to keep a log on remote login from normal telephone dialup?
inside /etc/profile, then you will be able to control who are allowed to login
from a specific modem line. But I was wondering how you write this script
to capture who is trying to login from the modem line (maybe /dev/ttyd0p7 ).
Just use `whoami` and compare it with "modem.acl" to decide whether this person
is allowed to login?
One more question , if I run /usr/lib/acct/runacct on the daily basis to
generate the accounting data, the file /var/adm/wtmp will automatically be
trimed
everyday and you can only see who has logined today. In that case, how can I
find out whether anybody has ever logined two days ago? Even from the file
/var/adm/acct/nite/owtmp you can only see yesterday's log.