- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- syslog.conf file
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
09-08-2004 05:19 PM
09-08-2004 05:19 PM
I am trying to work out the syslog.conf file. From what I understand, the following should mean a /var/adm/syslog/auth.log file is added to whenever an auth.notice type message is issued on the system:
auth.notice /var/adm/syslog/auth.log #
I have reread the conf file and issued an su command from root to another user. Would this not get logged in the /var/adm/syslog/auth.log file?
Thanks in advance for help..
Maria
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 05:33 PM
09-08-2004 05:33 PM
Re: syslog.conf file
first, i advise you to create the auth.log file, with "better rights" than syslog.log.
Next, try better a su FROM an user, TO root. su from root to an user is not really interresting for authentification.
Olivier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 05:36 PM
09-08-2004 05:36 PM
Re: syslog.conf file
Does the /var/adm/syslog/auth.log already exist? If not try to create it.
Did the attempt still get logged to /var/adm/syslog/syslog.log ?
Try su from an a normal user to root.
Regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 05:39 PM
09-08-2004 05:39 PM
SolutionThe level of logging all depends on how the daemon is coded to log the syslog events. If you're looking to capture su usage into a separate file from the syslog.log file, you could use:
auth.info /var/adm/syslog/auth.log
This line would instruct syslogd to log any "INFO" level messages from the authentication subsystem to the /var/adm/syslog/auth.log file. By default these messages also get logged to the /var/adm/syslog/syslog.log file, but if you want to capture specific types of messages for a given subsystem you can re-direct them in this manner.
Again, whether or not you capture the messages your interested in or not depends on how the daemon calls the syslog(3C) function and what level or type of message it logs. In the case of su, it uses INFO level syslog logging, so redirecting INFO level messages to a separate file would capture them.
Hope this helps,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 05:56 PM
09-08-2004 05:56 PM
Re: syslog.conf file
auth.info not as auth.notice
edit /etc/syslog.conf file as,
-----------
auth.info /var/adm/syslog/auth.log
*.info, ....
Note: No need to create the auth.log file.
Restart the syslogd as
kill the old syslogd ( ps -ef to get or syslog.pid )
/usr/sbin/syslogd -D
Try su log here and
If you see the /var/adm/syslog/auth.log file , it contains all entries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 06:09 PM - last edited on 09-16-2024 02:11 AM by support_s
09-08-2004 06:09 PM - last edited on 09-16-2024 02:11 AM by support_s
Re: syslog.conf file
changing the notice to info appears to have done the trick. Olivier, what did you mean about better permissions than syslo.log??
Regards,
Maria
- Tags:
- iLO_OA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 06:25 PM
09-08-2004 06:25 PM
Re: syslog.conf file
Don't create the file, the file will be automatically created at /var/adm/syslog/ location.
syslog.log will be 644 and but auth.log will be 444
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 11:09 AM
09-09-2004 11:09 AM
Re: syslog.conf file
Regards,
Maria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 11:40 AM
09-09-2004 11:40 AM
Re: syslog.conf file
What other log files are you referring to? Can you do an ll of /var/adm/syslog and tell us which log files you're concerned about? Also include a copy of your /etc/syslog.conf file so that we can see which log files are automatically built by syslogd.
Thanks,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 12:05 PM
09-09-2004 12:05 PM
Re: syslog.conf file
auth.log
lpd-errs
mail.log
mesgs.log
syslog.log
xferlog
are the other log files I have in there.
Thanks, Maria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 12:15 PM
09-09-2004 12:15 PM
Re: syslog.conf file
Dont worry about the individual file permissions as long as the parent directory is protected.
ls -ld /var/adm/syslog
As long as the permissions of /var/adm/syslog is 750 (with root:adm as the ownership), you can even have 777 for syslog.log and other log files.
-- Sundar.