For security reasons I wouldn't recommend adding any user to the root group. Rather, change all the cgi scripts to be owned by user nobody.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Monday, January 07, 2002 10:40 AM To: [EMAIL PROTECTED] Subject: RE: [newbie] Shell Script But can I, as root, give permission to run a file as world executable in a user's home directory? The reason I ask is I tried that and it -- the cgi file -- wouldn't work, until I changed the owner to the user of the home directory ... oh wait. I had changed the group, not the user. I see now. You have to change both. If the file is the group "root," but the owner is the user "mitch," it won't run because mitch isn't in the root group. So if the file is in the group root, then the user would also have to be the root group for the file to be executable? That makes sense. Duh! Is that right? mitch "Scott Thurmond" <scott.thurmond@pfsfh To: <[EMAIL PROTECTED]> q.com> cc: Sent by: Subject: RE: [newbie] Shell Script newbie-owner@linux-ma ndrake.com 01/07/02 08:54 AM Please respond to newbie 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
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
