1

Is it safe to move a binary from /sbin to /usr/sbin. When I installed ZFS for linux it placed the binaries in /sbin, but when I type zpool list it says the binary is it not in /usr/sbin. Is it okay to move them? Is there something else I can do?

4

Sure, it's safe, as long as you don't have any programs that use the binary from /sbin (often they just search $PATH), but to be save, you'll want to symlink it:

mv /sbin/<your binary> /usr/sbin/
ln -s /usr/sbin/<your binary> /sbin/
  • Isn't /sbin supposed to be included in $PATH by default? – ianc1215 Aug 25 '11 at 3:17
  • It should be. I'm talking about programs that might hard code it in. – digitxp Aug 25 '11 at 3:50
  • 1
    @Solignis: All sbin directories are supposed to be in $PATH, but only for root. – user1686 Aug 25 '11 at 10:20
1

It's safe, but you may confuse your package manager. Can can also just use a symlink from /usr/sbin to /sbin.

  • sounds like symlinks are the best way to do it. Works for me – ianc1215 Aug 25 '11 at 3:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.