I have to give ssh access to a user, but i want them to execute only limited command set like ifconfig, ip link,restart apache etc. but not adduser etc. Please someone point me in the right direction
Asked
Active
Viewed 547 times
1 Answers
0
You don't create a restricted shell to do this. These commands need root access, so start by giving them access to a normal user, without root access. Then, use sudo to grant them access to specific commands. Is it possible to give sudo access to only a particular command?
muru
- 207,228