[SOLVED] users cant execute program in bin but root can
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
(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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.