Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.