Task: Create an Init Script to Run Commands as a Specific User
Task: Create an Init Script to Run Commands as a Specific User: a task in Terminal-Lego-15k (Harbor dataset). You need to create a System V init script that can reliably execute commands as a non-root user across different Linux distributions (Ubuntu/Debian and RHEL/CentOS). The challenge is that…
The task
You need to create a System V init script that can reliably execute commands as a non-root user across different Linux distributions (Ubuntu/Debian and RHEL/CentOS). The challenge is that `sudo -u username command` may hang on RHEL systems, so you need to implement alternative methods that work consistently across…
Part of PrimeIntellect/Terminal-Lego-15k.