2

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

1 Answer 1

3

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .