-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi friends... Which perms I have to give to my script if I wanna that other users run it but just how if I run it. I know that is something with suid but I can't do it
This question is a bit hard to follow. (If, as I suspect from your e-mail address, English is not your native language, you might do better to use very standard English, rather than try to use informal constructions like "perms" and "wanna". My actual problem, though, is needing to guess what you mean by "but just how if I run it".)
If I guess your meaning correctly, you want others to be able too execute a program, and have it run as though it were executed by you (the file's owner). For example, in order to be able to change their passwords, ordinary users need to be able to run the program "passwd" as though they were root so they can write to the /etc/shadow file.
You accomplish that by setting the suid bit, which you can do with the command
chmod +s filename
Try "man chmod" for the details. The program needs to be normally executable by the user in question, for example.
- To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
