dimanche 8 mars 2015

How to run privileged bash script as non-root?


I created a simple bash script which contains the command ifconfig. In general I want to execute such a privileged script to run as non-root user. I have tried hown root:users ./path/to/script.sh followed by chmod 4550 ./Desktop/dhcp_client.sh I tried even 4755. I want to use bash scripts to include some privileged commands then I must run the script that contains them as non-root. So how to run privileged bash scripts as non-root ?



Aucun commentaire:

Enregistrer un commentaire