On Sun, 18 Nov 2001, Mark Finlay wrote:
> I'm trying to write a script that will use su
> to switch to root and then run a program
> without prompting the user for the root password.
> So fat no matter what i try it pauses the script
> prompts for a password.
I suspect really what you want is
* sudo (allow listed users to do certain things with root priviledges
* create a group called "sometask" and give the necessary permissions to the
files and devices to members of "sometask". Then add the users who need to
accomplish that task to that group. Then they'll be able to do it. This
is how many admins allow users to eg play audio tracks, burn cds etc.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!