- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- system not logging to btmp
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
Discussions
Discussions
Discussions
Forums
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
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-25-2002 08:46 AM
тАО01-25-2002 08:46 AM
My HPUX 11 system is not logging to /var/adm/btmp, but /var/adm/wtmp is working fine. Both are in /etc, as other threads have described. Is there a system or inetd service that needs to be running for btmp to work? What would cause it to not work (other than that I'm an idiot)?
Regards,
Jeff
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2002 08:54 AM
тАО01-25-2002 08:54 AM
Re: system not logging to btmp
You have to create /var/adm/btmp by youself.
run touch /var/adm/btmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2002 08:55 AM
тАО01-25-2002 08:55 AM
Re: system not logging to btmp
The file /etc/btmp should be lined to /var/adm/btmp.
cd /etc
ll btmp
btmp --> /var/adm/btmp
The file permission on /etc/btmp are lrwxrwxrwt and the permission on /var/adm/btmp are -rw-------
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2002 09:08 AM
тАО01-25-2002 09:08 AM
Re: system not logging to btmp
All of this is set up as everyone has instructed. /var/adm/btmp exists and /etc/btmp is linked to it. Similarly /var/adm/wtmp exists and /etc/wtmp is linked to it. wtmp is logging information, but btmp is not.
Any ideas?
Regards,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2002 09:35 AM
тАО01-25-2002 09:35 AM
Re: system not logging to btmp
suggest you remove the existing /var/adm/btmp file and create a new file with 0 bytes and see if it starts logging. There is no configuration variable for this purpose.
cat /dev/null >/var/adm/btmp
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2002 10:03 AM
тАО01-25-2002 10:03 AM
Re: system not logging to btmp
Well, now it gets interesting. I recreated the file as you said, and it still didn't seem to work. BUT, it does work...my testing method just wasn't valid.
You see, I have disabled telnet and only allow shell access via ssh. Ssh for some reason either doesn't use "login", or I have some parameter in sshd mis-configure. Because when I try to ssh to the server with a bogus account, nothing gets logged to btmp, but when I just execute "login" from the command prompt and type bogus info, information is sent to btmp.
Sooooo, I guess my question changes to why isn't ssh routing invalid logins to btmp? Should I ask this in a different thread? Do you have any ideas?
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2002 10:07 AM
тАО01-25-2002 10:07 AM
SolutionI can't say you should this question in another thread. You can leave the question over here and wait for the responses if you can. If you don't get some good answers post it as a seperate thread. Don't allot 8 or more points to anyone till you get the results in this thread.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2002 10:30 AM
тАО01-25-2002 10:30 AM
Re: system not logging to btmp
See if there is a file called /var/log/secure and if it is logging the bad login attempts using ssh.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2002 10:32 AM
тАО01-25-2002 10:32 AM
Re: system not logging to btmp
It turns out that, at least on the version of sshd I'm running, use of btmp is not supported. From the installation notes:
----
Mechanisms for updating wtmp, utmp, lastlog, and similar mechanisms
are not standardized. Ssh substitutes many of the functions of the
conventional login program. These functions are implemented in login.c.
You may need to modify this file to make it work on exotic systems.
Please send any modifications and bug fixes back to the author for inclusion
in the distribution. If you just want to try ssh, and cannot get this file
to compile, if is safe to define all of the functions as empty; however,
in that case logins will not be logged.
---------
So far, what I've seen from even the most recent version of openssh, it's still not supported. All the developers ever seem to say is "if you want the feature, add it yourself"...a typical response when its something this obscure I suppose. I'm going to post a new thread and give you the 8 points...you deserve it as you got me thinking and digging. thanks.
Jeff