LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-25-2005, 03:30 AM   #1
magicpio
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
make a file in dir1 appear to be in writeprotected dir2


Hi!

Does anyone know, how to do the following:

I have an executable in /opt, e.g. /opt/exec1
But some other program need it to be in /sbin, which is write protected.

How can I make /opt/exec1 to appear to be /sbin/exec1 ?

Have tried with ln , but no success so far.

Thanks for any help!

magicpio
 
Old 09-25-2005, 04:37 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
You mean you don't have the permissions to write to it? You can always do it if you're root.
 
Old 09-25-2005, 01:56 PM   #3
magicpio
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0
I tried this, but that´s not the issue.

I´m using Dam Small Linux, they somehow make links to core utils, which are inside
a compressed file (in fact the whole linux stuff is in one compressed file).
Some of it will be uncompressed onto a ram disk, which is write protected,
but the whole /sbin seems to remain inside the compressed file and a particular program
is only extracted somehow and temporarily, when the command is beeing called from the command line.

When I´m trying to copy my binary into the directory /sbin I get a 'write protected' message, even as su, which is logical.
And since I´m unable to re-create the compressed file including my executable, I´m looking for a workaround.
 
  


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
when creating a *.iso file, how to make the file size smaller? minm Linux - Newbie 8 12-26-2004 09:58 PM
Make file help rajesh_b Programming 1 11-25-2004 04:39 AM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 07:55 PM
why can't i do 'make' on this file!? ambelos Linux - Software 6 02-04-2004 10:19 PM
what is a make file linorg Linux - Newbie 7 11-03-2003 09:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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