I'm offering jailshell (on CentOS- whm) access to someone in order to use the folder sync tool called Unison (Some sort of bidirectional rsync)

That's for the background.

Unison is installed, as soon as I type unison in my terminal, I get the Usage list of unison.

But when I log in into my jail shell, and run the same app, it just returns

-jailshell: unison : command not found

However, when I look into the jailshell from a root perspective : [/home/virtfs/username/usr/bin] I can see a binary named unison@ Looks like the bin folder is an alias.

Why isn't it recognized in the jailshell? and how can I access this binary from the jailshell ?


result of ls -l /usr/bin/unison (both in and outside)

lrwxrwxrwx. 1 root root 24 20 déc 08:36 /usr/bin/unison -> /etc/alternatives/unison

result of ldd /usr/bin/unison inside:

no file or folder of this type (translated)

and outside : juste lists a bunch of libraries

result of ./unison from inside /usr/bin :

no file or folder of this type (translated)
  • IMO, the shell can't find it in the PATH. What's the output of echo PATH in the jailshell, and can you go directly to where the binary is and execute it from the jailshell cd /usr/bin && ./unison? – Braiam Dec 23 '14 at 19:13
  • Post the output of ls -l /usr/bin/unison and ldd /usr/bin/unison from inside the jail, and the corresponding commands outside the jail. – Gilles Dec 23 '14 at 22:35
  • just added the different results in the op – Vincent Duprez Dec 24 '14 at 6:40
  • Looks like unison is a soft link from the jailshell perspective. can you give the output of ls -l /usr/bin/unison – Thushi Dec 24 '14 at 6:44
  • Ok Now I looked at your updated question. Can u please verify that /etc/alternatives/unison exists? – Thushi Dec 24 '14 at 6:45

Your Answer

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

Browse other questions tagged or ask your own question.