LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2009, 07:15 AM   #1
Rob001
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Executable removed from /usr/bin on restart.


I have a program that does not install its executables to one of the locations in the standard path. It is a custom module for a custom box, so I can not modify it easily.

When I manually move or link the executable to /usr/bin (and other directories in the path), the files works and is found when called, as I want.

HOWEVER, when I restart the system the file or link disappears. Somehow its gets deleted during restart.

I use it through an SSH shell, again a custom module with inbuilt path, so I can not play with the compiled in path.

I NEED a way to properly copy the file to one of the directories in the path and let the system know it is valid and to LEAVE IT ALONE.

Has anybody got ideas on where and what for should I look?

Thanks
 
Old 10-15-2009, 08:52 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by Rob001 View Post
I have a program that does not install its executables to one of the locations in the standard path. It is a custom module for a custom box, so I can not modify it easily.

When I manually move or link the executable to /usr/bin (and other directories in the path), the files works and is found when called, as I want.

HOWEVER, when I restart the system the file or link disappears. Somehow its gets deleted during restart.

I use it through an SSH shell, again a custom module with inbuilt path, so I can not play with the compiled in path.

I NEED a way to properly copy the file to one of the directories in the path and let the system know it is valid and to LEAVE IT ALONE.

Has anybody got ideas on where and what for should I look?

Thanks
why dont you just add the path where the executable is to your path variables in the home dir of the user you ssh in as??



ie

assuming you are using bash,

in .bash_profile, add a line

Code:
export PATH=$PATH:/path/to/executable
 
Old 10-15-2009, 09:11 AM   #3
Rob001
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Does not work with sshd

... because the daemon has an incompiled path setting. Namely it has a standard set of path compiled in, but does not read the user paths. As I said I am starting an ssh shell for remote backups.

There is a way to force the daemon to read users settings from their home directory, but this is not an acceptable solution in this case because:

1. It is a security risk, as the settings pertain to more than just paths.

2. It has to be done for each user everytime there is a user.

I've had a similar problem before with a different program, on a different machine (Fedora Core 5, a little old... ), so I would rather work out what is behind all this. The current machine is a Thecus RAID box.

I copy all files as root, so as far as I know they should remain where I put them. My guess is it is some kind of security feature/bug... and ther has to be a way around as after all packages installed by rpm have no troubles.

I was hoping somebody else noticed something similar.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 09:33 AM
Failed to chck remot comnd executin using shells /usr/bin/ssh and /usr/bin/rsh farnaw4u Linux - Software 2 04-06-2009 01:08 AM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 02:02 AM
suse 9.2 - /usr/bin/[ Executable - what is this? nathanv117 SUSE / openSUSE 3 01-23-2005 10:20 AM
Webmin: The Apache server executable /usr/local/apache2/bin does not exist hektor Linux - Software 0 01-14-2005 07:48 AM


All times are GMT -5. The time now is 02:57 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration