Execute a script with root permission
- by Bastien974
Hi all,
I need a script that will chown/chmod some files.
This script need to be executable by any user.
The problem is that those files are owned by different users, so it needs to be executed as root.
I tried the SUID so that any users with X permission can execute the script as root, but seems that it doesn't work with a bash script because of security issue.
How can I do that ? thanks.