LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-13-2012, 09:02 PM   #1
ph316
LQ Newbie
 
Registered: Feb 2003
Posts: 8

Rep: Reputation: 0
snmpget segmentation fault


When I run an snmpget command from two different non root users one user gets valid results the other gets a seg fault.
I've tried to use ldd to track down the bins involved to check their permissions. So far I can't find any problem. IE both users have access to the lib files I've tracked down.
Advice on finding the problem?
Thanks
 
Old 05-14-2012, 01:03 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Just because they both have access doesn't mean they both use the same binary... see also their environment settings eg $PATH.

Ensure you use the EXACT same cmds/files etc, by specifying full paths eg

Code:
/usr/bin/snmpget ...
 
Old 05-14-2012, 10:14 AM   #3
ph316
LQ Newbie
 
Registered: Feb 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Good point.
I confirmed that the 'PATH' varible is the same for both users. Also the full path is used to exeucte the snmpget command.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
user act based segment fault for snmpget ph316 Linux - Server 0 04-27-2012 10:17 AM
Segmentation fault gearonlinux Linux - General 3 02-25-2011 05:07 AM
Segmentation Fault babu.chanuvalli Linux - Newbie 4 05-27-2009 01:32 AM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
Segmentation Fault (What is that?) jlacroix Fedora 6 11-17-2003 08:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration