HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - HP-UX
 - >
 - sshd line filling up wtmp file
 
Operating System - HP-UX
        1840213
        Members
    
    
        3474
        Online
    
    
        110162
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              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
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            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
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
Topic Options
			
				
					
	
			
		
	- 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
 
05-09-2011 03:04 AM
05-09-2011 03:04 AM
			
				
					
						
							sshd line filling up wtmp file
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hi
sshd line filling up the wtmp file and hence /var is getting full.
Please advise me how can I stop this ?
Sagar
		
		
	
	
	
sshd line filling up the wtmp file and hence /var is getting full.
Please advise me how can I stop this ?
Sagar
		2 REPLIES 2
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-09-2011 03:38 AM
05-09-2011 03:38 AM
			
				
					
						
							Re: sshd line filling up wtmp file
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hi,
Do not think you can disable sshd logging to the wtmp file as such.
You can however reset the file using the following command:
# cat /dev/null > /var/adm/wtmp
Also, I believe I have read somewhere in the past that if you remove the wtmp file you will need to recreate it manually (it cannot be automatically created). So if you want to get rid of the file/logging (save up some space) you could try to remove the file... Of course this would mean that unsuccessful attempts are not being logged...
Hope that helps,
sangilak
		
		
	
	
	
Do not think you can disable sshd logging to the wtmp file as such.
You can however reset the file using the following command:
# cat /dev/null > /var/adm/wtmp
Also, I believe I have read somewhere in the past that if you remove the wtmp file you will need to recreate it manually (it cannot be automatically created). So if you want to get rid of the file/logging (save up some space) you could try to remove the file... Of course this would mean that unsuccessful attempts are not being logged...
Hope that helps,
sangilak
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-09-2011 04:21 AM
05-09-2011 04:21 AM
			
				
					
						
							Re: sshd line filling up wtmp file
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						May be something like logratate would help you in this situation.
For logrotate required thing is bash.
Source is also here:
http://hpux.ee.ualberta.ca/hppd/hpux/hpux/Sysadmin/logrotate-2.5/
You can use cron entry for that.
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
For logrotate required thing is bash.
Source is also here:
http://hpux.ee.ualberta.ca/hppd/hpux/hpux/Sysadmin/logrotate-2.5/
You can use cron entry for that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP