Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running a server on centos 6.0 and I'm looking for a way to limit ssh access of one user to only tail and vi and only in their home folder.
I found some guidelines to the home folder part but haven't found tips on the tail & vi part.

Thanks in advance

share|improve this question
up vote 3 down vote accepted

The easiest way is to chroot their SSH session, and only put tail and vi in the chroot.

It can also be done with SELinux, but this is a much more complex route, requiring you to define a number of SELinux objects to account for the different actions required by logging in and such.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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