-
-
Notifications
You must be signed in to change notification settings - Fork 274
Closed
Description
Causing "bad interpreter: No such file or directory"
Steps:
As the root user:
- In
visudoadd the following lines (taken from here):
Defaults log_format=json
Defaults log_subcmds
Defaults:%wheel runchroot=*
Defaults log_input, log_output
Defaults !log_passwords
Defaults log_servers=0.0.0.0
- create a file
debuginroot's home, with the following content:
#!/bin/bash
echo hello
- Make executable:
chmod +x debug - Add user
bobto sudoers:usermod -aG sudo bob
============================================
Try with log_subcmds enabled:
- login as user
bob sudo bashcd $HOME./debug
bash: ./debug: /bin/bash: bad interpreter: No such file or directory
Try with log_subcmds disabled (commented):
- login as user
bob sudo bashcd $HOME./debug
hello
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels