HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - HP-UX
 - >
 - Re: Tcpdump not work from other user
 
Operating System - HP-UX
        1840176
        Members
    
    
        2777
        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
	
		
			
            
                
            Go to solution
        
            
		
		
			
            	
	
		
        
		
	
	
		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
 
07-22-2009 05:40 AM
07-22-2009 05:40 AM
			
				
					
					
						I guy,
I need to run tcpdump command from a normal user (not-root-user).
I have a 11.23 .
I have installed tcpdump:
swlist -l product |grep -i tcpdump
Tcpdump A.12.00-3.9.8.001 Network Monitoring and Data Acquisition
I have use SETUID:
ll ./opt/iexpress/tcpdump/sbin/tcpdump
-r-sr-sr-x 1 bin bin 1179888 May 12 2008 ./opt/iexpress/tcpdump/sbin/tcpdump
ll ./usr/sbin/tcpdump
lrwxr-xr-x 1 root sys 34 Jul 20 14:24 ./usr/sbin/tcpdump -> /opt/iexpress/tcpdump/sbin/tcpdump
but if i try to start tcpdump with a normal user :
$ /usr/sbin/tcpdump -p -i lan0
tcpdump: recv_ack: promisc_sap: UNIX error - Not owner
Help me many point at all
					
				
			
			
				
			
			
				
	
			
				
		
			
			
			
			
			
			
		
		
		
	
	
	
I need to run tcpdump command from a normal user (not-root-user).
I have a 11.23 .
I have installed tcpdump:
swlist -l product |grep -i tcpdump
Tcpdump A.12.00-3.9.8.001 Network Monitoring and Data Acquisition
I have use SETUID:
ll ./opt/iexpress/tcpdump/sbin/tcpdump
-r-sr-sr-x 1 bin bin 1179888 May 12 2008 ./opt/iexpress/tcpdump/sbin/tcpdump
ll ./usr/sbin/tcpdump
lrwxr-xr-x 1 root sys 34 Jul 20 14:24 ./usr/sbin/tcpdump -> /opt/iexpress/tcpdump/sbin/tcpdump
but if i try to start tcpdump with a normal user :
$ /usr/sbin/tcpdump -p -i lan0
tcpdump: recv_ack: promisc_sap: UNIX error - Not owner
Help me many point at all
Solved! Go to Solution.
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
07-22-2009 06:33 AM
07-22-2009 06:33 AM
			
				
					
						
							Re: Tcpdump not work from other user
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						The whole point of tcpdump is that it lets you snoop packets on the network...
so allowing an "ordinary" user access to it, is like granting an "ordinary" user access to all the files on your system... (and any other system this server talks to) i.e. not very bright.
Access to tools like tcpdump *should* be limited to just root - if you have a specific situation where a non-root user needs to use it, I would look at using sudo or the RBAC tools (privrun)
HTH
Duncan
	
I am an HPE Employee
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
so allowing an "ordinary" user access to it, is like granting an "ordinary" user access to all the files on your system... (and any other system this server talks to) i.e. not very bright.
Access to tools like tcpdump *should* be limited to just root - if you have a specific situation where a non-root user needs to use it, I would look at using sudo or the RBAC tools (privrun)
HTH
Duncan
I am an HPE Employee
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
07-22-2009 06:39 AM
07-22-2009 06:39 AM
Solution
			
				
					
					
						it is really not advised to set user id bit on tcpdump.
it is much better to use sudo or RBAC and fine grain priviledge.
else setuserid bit set the uid like the owner, and the owner of your tcpdump is bin and not root
so a chown root before the chmod is necessary
		
		
	
	
	
it is much better to use sudo or RBAC and fine grain priviledge.
else setuserid bit set the uid like the owner, and the owner of your tcpdump is bin and not root
so a chown root before the chmod is necessary
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
07-23-2009 12:04 AM
07-23-2009 12:04 AM
			
				
					
						
							Re: Tcpdump not work from other user
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						OK
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
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