Disable all the logs in Solaris


 
Thread Tools Search this Thread
Operating Systems Solaris Disable all the logs in Solaris
# 1  
Old 01-31-2011
Disable all the logs in Solaris

Hi
Is there anyway to disable all logs/logging (lastlog, sulog, messages etc.) in Solaris 9&10? I know this is not recommended but i just want to know if this is possible.

TIA
Reddy
# 2  
Old 01-31-2011
When a system will not be available for an extended time, you can create an /etc/nologin file to prevent users from logging in to the system. When a user logs in to a system that has an /etc/nologin file, the message in the /etc/nologin file is displayed and the user login is terminated. Superuser logins are not affected by the /etc/nologin file.
# 3  
Old 01-31-2011
recreate the log file with link.
Code:
ln -s /dev/null lastlog 
ln -s /dev/null sulog

# 4  
Old 01-31-2011
Quote:
Originally Posted by aix-guy
When a system will not be available for an extended time, you can create an /etc/nologin file to prevent users from logging in to the system. When a user logs in to a system that has an /etc/nologin file, the message in the /etc/nologin file is displayed and the user login is terminated. Superuser logins are not affected by the /etc/nologin file.
Thanks for your reply but this is not what i asked. I was talking about logs/logging NOT logins (NOT user login/logout)

---------- Post updated at 08:44 PM ---------- Previous update was at 08:43 PM ----------

Quote:
Originally Posted by rdcwayx
recreate the log file with link.
Code:
ln -s /dev/null lastlog 
ln -s /dev/null sulog

Thanks for reply and i was looking something like change in syslog.conf etc. and yes, your suggestion helps me partly.
# 5  
Old 01-31-2011
Sorry late or early depends where you are :-)
# 6  
Old 02-01-2011
Just disable the syslogd with
Code:
svcadm disable system-log

This will disable all logging controlled by the syslogd. Programs not using syslog, like apache, have to be dealt with separately.

On Solaris 9 stop syslog and remove the Start-Link:
Code:
/etc/init.d/syslog stop
rm /etc/rc2.d/S74syslog

# 7  
Old 02-01-2011
Quote:
Originally Posted by hergp
Just disable the syslogd with
Code:
svcadm disable system-log

This will disable all logging controlled by the syslogd. Programs not using syslog, like apache, have to be dealt with separately.

On Solaris 9 stop syslog and remove the Start-Link:
Code:
/etc/init.d/syslog stop
rm /etc/rc2.d/S74syslog

Thanks for your reply; as i replied in my prev posts, i tried disabling syslog and commented out alll the lines of syslog.conf etc. but ssh logins still being logged.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Disable Inactive User in Solaris 11

Goal: To disable a Solaris user, after that user was inactive for X days. My understanding for linux was that there was no systematic way to disable inactive users, therefore we had to set a password expiration via /etc/default/passwd, MaxWeeks; then in /etc/default/useradd (/etc/shadow), the... (1 Reply)
Discussion started by: Drasavokian
1 Replies

2. Solaris

Disable create subdirectory Solaris 8 ftp

Running Solaris 10. For FTP users or groups, I want to prevent them from creating new subdirectories, but I still want to allow them to create, upload, download files from the subdirs. I understand how to set the general file/directory permissions -- read, write, execute. So for a directory,... (0 Replies)
Discussion started by: themonman
0 Replies

3. Solaris

Can't disable CPU in Solaris

hello all i have an issue about a solaris V440 cpu, im logged in the Ok prompt i can't disable a CPU3, i can't see it in dev list, i see only the cpu3-bank0 to cpu-bank4 please help me to disable it thank youuu (3 Replies)
Discussion started by: walidadam
3 Replies

4. Solaris

Solaris 10: how to disable an unused HBA card

Dear all, I have a new Oracle Blade X4-2B server, running Solaris 10. The server comes with a HBA card that will not be used now. It has not fibers connected to it. As a consequence, its leds never stop flashing. My question is: how to disable this HBA card, without removing it physically... (2 Replies)
Discussion started by: Gus1971
2 Replies

5. Shell Programming and Scripting

How to disable cron emails, but only for logrotate only not for other logs?

Guys, is there a script or command? how to disable cron emails, but only for logrotate only not for other logs (3 Replies)
Discussion started by: kenshinhimura
3 Replies

6. Solaris

How do I disable a core(or more) while boot up in Solaris 10?

Hi, I have 4 cores in my PC. I know how to disable a core using psradm -f command after boot up. But I want to disable while boot up (permanently). 1) I want only 1 core. How to disable all other cores while boot up? 2) I need to disable 2 cores. How to disable all other cores while boot... (5 Replies)
Discussion started by: sreejesh
5 Replies

7. Cybersecurity

How to disable TLS 1.0 support in Solaris

Hey Guys, I have a couple servers that are getting flagged by by our network security team. How do I disable TLS 1.0 protocol within Solaris? The vulnerability is : CVE-2011-3389 TLS-SSL Server Blockwise Chosen-Boundary Browser Weakness (2 Replies)
Discussion started by: s ladd
2 Replies

8. Solaris

Solaris 11 disable IPv6

I've new installed Solaris 11 on Sparc T4-1. I'd like to disable IPv6 but with no luck. lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 net0: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 2 inet... (6 Replies)
Discussion started by: samer.odeh
6 Replies

9. UNIX for Advanced & Expert Users

How to disable application level logs in Unix?

Hi, I'm working in an application and the related Java code and the envrionment is in Unix server. We are generating the log messages using loggers of Java.util.log . But, the logs are not getting generated in the log files. We feel that the people who developed the system might have done some... (6 Replies)
Discussion started by: kelangovan
6 Replies

10. Solaris

disable telnet on Solaris

All - would you please some one help me to disable telnet on Solaris? /etc/inetd.conf Thanks :confused: (11 Replies)
Discussion started by: March_2007
11 Replies
Login or Register to Ask a Question