LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-04-2011, 07:21 PM   #1
ndaka123488
Member
 
Registered: Aug 2011
Posts: 63

Rep: Reputation: Disabled
users cant execute program in bin but root can


Hi Guys

I have a folder /usr1/bin/lts

its a company specific install, not a unix system folder.

lts was functional until i added some other programs to bin, all programs
run, lts can be executed only by root and not any user.

-rwxrwxrwx 1 jane bure 127158 2011-12-01 16:42 lts
[root@localhost bin]# ls -l ltf
-rwxrwxrwx 1 jane bure 205481 2010-05-18 06:37 ltf
ltf runs perfect for all users, lst only for root. segmentation fault for users. wat can it be?

ltf runs for both as well as all other programs. Wat can be wrong
 
Old 12-04-2011, 07:26 PM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
Segmentation fault for users? Hm, file a bug.

General debugging steps:

(1) Run ldd to see what it links to. Make decisions/changes based on this info.
(2) Run strace to see what system calls it makes. Make changes/decisions based on this info.
(3) Run it with gdb. If debugging symbols are present, you might bet a great clue as to what's happening.
 
Old 12-05-2011, 05:21 AM   #3
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Yep, try ldd to scan for differences in the used libraries.

It could also be a sign of wrong error handling in programming: maybe some system call returns an error as only root can access certain files. But instead of testing the returned file pointer they just use it.
 
Old 12-05-2011, 06:23 PM   #4
ndaka123488
Member
 
Registered: Aug 2011
Posts: 63

Original Poster
Rep: Reputation: Disabled
Recompiled the program and it worked.
Thanks.......
 
Old 12-05-2011, 06:36 PM   #5
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Since you have solved your issues, could you mark your thread as solved using the thread tools located at the top of the page? Thanks!

Cheers,

Josh
 
  


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
chroot like program for non-root users xowl Linux - Security 12 12-10-2007 06:02 AM
How to add paths to sbin, bin/bash, bin sh for users gopi.d Fedora 3 12-07-2007 12:47 AM
open office appears in the root and not the users program file list reycapoy Linux - Software 5 02-24-2006 06:06 AM
all users but root cannot execute even when they have premissions jbabcock Linux - Security 4 11-02-2005 03:38 PM
Execute .bin fiies nodnarb Linux - Software 3 07-19-2004 05:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:10 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