LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] bash scripting question

[ILUG] bash scripting question

Gavin McCullagh gavin at fiachra.ucd.ie
Sun Nov 18 18:21:51 GMT 2001


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

or

* 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.

Gavin
 




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell