I have two users (Administrator, Normal). I want that the Administrator is able to read, write, execute and delete files inside specific folder while Normal user is unable to create, write and delete files inside that folder while he can only execute a specific script which is inside that folder, the script requires reading of other files inside that folder.
- Is it is possible to execute the script from by Normal user on behalf of Administrator without giving Administrator’s password?? Or
- Can we make a script which is run by Normal user while giving password in encrypted format??
Using Sticky Bit my problem cannot be solved as it is used to avoid deletion of a folder and its content by other users though they have write permissions on folder contents.
sudo
orsetuid
bit?