You (root) can give permission to any file you want.  Lets, for example, say
root wants to give the ID brian ownership of the file /tmp/tempfile.txt.

chown id:group /file

chown brian:brian /tmp/tempfile.txt






-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]
Sent: Monday, January 07, 2002 9:36 AM
To: [EMAIL PROTECTED]
Subject: Re: [newbie] Shell Script



This brings up a question about permissions ...

So a script (or any executable, such as a perl script written for cgi)
cannot be run by anyone other than root, if it was created by root? I mean,
root can't give permission for a root-owned script to be world executable,
even if the administrator wanted to? While I can see how doing that would
be a very bad idea, in terms of security, I'm just asking in order to learn
more about linux file permissions.

I had written a perl cgi script, and it wouldn't run from the web page, as
it turns out because I had created it as root.

mitch





>

hi rich,

  the script is an _executable_. just create an icon in your desktop and
point it to the script of your choice. make sure that you have the proper
permissions though as some scripts are for administration (root and its
equivalent) use only.

ciao!

--

"Programming, an artform that fights back."

=============================
Anuerin G. Diaz
Design Engineer
Millennium Software, Incorporated
2305 B West Tower, Philippines Stocks Exchange Center,
Exchange Road, Ortigas Center, Pasig City

Tel# 638-3070 loc. 72
Fax# 638-3079
=============================


Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to