You are not logged in.
Pages: 1
Hi,
I want to start a script as a normal user, and the script to do things, only root can do.
I changed the permission with chmod, they look like this now:
-rwsr-sr-- root ls ... file-name
But when the script tries to acces a root-only file, I get a "permission denied".
Any adivce?
Thanks!
Nathan
Offline
you may be better off using sudo
Mr Green
Offline
I don't think that's possible without using sudo or su. The whole point of not having root privileges is to prevent exactly what you want to do. The only workaround that I can think of would be to create a daemon that's started with root privileges and that can accept some limited commands from a regular user, but I have no idea how you would actually do that.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Well, sudo is a good Idea too. Thanks!
Offline
Pages: 1