Register
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Dec 2008
    Posts
    43
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default replacing file in /bin

    I need to replace a file in /bin which is read only. How do I change it so that I can delete the old version of the file and replace it with a new one.
    Many thanks.

  2. #2
    V.I.P. Member
    GastonJ's Avatar
    Join Date
    Dec 2009
    Posts
    5,505
    Thanks Thanks Given 
    836
    Thanks Thanks Received 
    1,676
    Thanked in
    1,083 Posts

    Default

    rm -f file
    as root of course
    My master plan is to live forever..... going to plan so far
    Despite the cost of living, it's still very popular.
    No good deed goes unpunished....


  3. #3
    Newbie
    Join Date
    Dec 2010
    Posts
    9
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Why do you need to replace a file in /bin and which one is it. You could quite easily break it by just trying to replace it, e.g. what library fils does the new one need, etc...

  4. #4
    V.I.P. VIC
    Mjolinor's Avatar
    Join Date
    Jan 2009
    Location
    Burnley Vicshire
    Posts
    1,073
    Thanks Thanks Given 
    49
    Thanks Thanks Received 
    114
    Thanked in
    70 Posts

    Default

    There shouldn't be a need to replace it, just copy your new one in there with a different name. Unless you are calling it from something else in which case you should rename the original.

  5. #5
    V.I.P. Member
    GastonJ's Avatar
    Join Date
    Dec 2009
    Posts
    5,505
    Thanks Thanks Given 
    836
    Thanks Thanks Received 
    1,676
    Thanked in
    1,083 Posts

    Default

    He may not be using /usr/local/bin and it could well be a script or binary of his own making or just breaking his system..
    My master plan is to live forever..... going to plan so far
    Despite the cost of living, it's still very popular.
    No good deed goes unpunished....


  6. #6
    Member
    Join Date
    Dec 2008
    Posts
    43
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Quote Originally Posted by Hairlocks View Post
    Why do you need to replace a file in /bin and which one is it. You could quite easily break it by just trying to replace it, e.g. what library fils does the new one need, etc...
    I started out by wanting to put a new version of cccam onto my 500s.
    The current version was in /bin which I wanted to replace with a newer version. I expected that executable would be in /var/bin but it was not. I got around the problem by letting the image auto up date the cam itself. It reminded me of the problem that you have replacing executables in read-only mounted file systems.
    As it was about 20 years since I had worked on unix system at work, I could not remember the way around it.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.