How to restrict SSH users to a predefined set of commands after login?

后端 未结 9 1371
灰色年华
灰色年华 2020-11-29 15:28

This is a idea for a security. Our employees shall have access to some commands on a linux server but not all. They shall e.g. have the possibility to access a log file (

9条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 16:00

    Another way of looking at this is using POSIX ACLs, it needs to be supported by your file system, however you can have fine-grained tuning of all commands in linux the same way you have the same control on Windows (just without the nicer UI). link

    Another thing to look into is PolicyKit.

    You'll have to do quite a bit of googling to get everything working as this is definitely not a strength of Linux at the moment.

提交回复
热议问题