Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-25-2005, 03:30 AM   #1
LQ Newbie
Registered: Sep 2005
Posts: 2

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


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!

Old 09-25-2005, 04:37 AM   #2
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
LQ Newbie
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0
I tried this, but thats not the issue.

Im 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 Im trying to copy my binary into the directory /sbin I get a 'write protected' message, even as su, which is logical.
And since Im unable to re-create the compressed file including my executable, Im looking for a workaround.


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
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:28 AM.

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