-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sudo over ssh #136
Comments
Hello, It looks like the pw command is using exec call, which are intercepted by lshell. I am not sure what is pw, can you tell me what hides behind it? |
Hi, Thanks for your answer. pw is used to manage accounts (users and groups) on FreeBSD. I try to delete an user with a ssh script. I have an other problem, when I try to start a daemon like this : /usr/local/etc/rc.d/example start, lshell returns "forbidden command". I don't know if I miss something or if it's a bug. bye |
Have you tried adding pw(8) to the allowed list? About the daemons, you will need to add /usr/local/etc/rc.d/ to the path of your user in order not to get rejected for "forbidden path". Then add "/usr/local/etc/rc.d/example" to the allowed list. |
You can also use |
Hi,
I want to run this command over ssh "sudo pw userdel user" and when I try, lshell return "*** forbidden shell escape". Can you help me pls ?
PS : shell.conf
allowed : 'all' - ['sh','czh','chpass']
sudo_commands : all
overssh : ['grep', 'cut', 'uname', 'sudo', 'pw']
Have a nice day.
Berzia
The text was updated successfully, but these errors were encountered: