You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by vsolve apache <vs...@yahoo.com> on 2000/03/21 05:10:01 UTC
Re: general/5892:Can't change uid of a file
The following reply was made to PR general/5892; it has been noted by GNATS.
From: vsolve apache <vs...@yahoo.com>
To: gaspari@ub.edu.ar, submit@bugz.apache.org
Cc: apbugs@Apache.Org
Subject: Re: general/5892:Can't change uid of a file
Date: Mon, 20 Mar 2000 20:06:09 -0800 (PST)
Hi,
>>I'm trying to change the UID of file created with a
script, but I get "chown:
>>file: Not owner".
>>I have the file and the script:
>>/www/cgi-bin> ls -l
>>total 2
>>-rwxr-xr-x 1 www www 175 Mar 16
09:49 cambio.cgi*
>>-rw-r--r-- 1 www www 0 Mar 16
09:36 prueba
>>cambio.cgi contains:
>>/www/cgi-bin> cat cambio.cgi
>>#!/bin/sh
>>chown gaspari:webmail prueba
>>echo Content-Type: text/plain
>>echo
>>....
>>HTTPD is running as www:www
>>The script runs fine, but i can't get chown work.
>>Does anyone known
>>what i'm doing wrong?
chown command with both user and group ownership
changed works fine when the script is run with httpd
running as root.
If you are running httpd as non-root user ie.,as www
user, you can assign access of one of your files to a
group, but unless you are running httpd as root, you
cannot assign one of your files to appear to have been
either created by or owned by another user.
regards,
vsolve_apache
Visolve.com
=====
_____________________________________________
Visit our website: http://www.v-solve.com
Regarding our services mail to: visolve@pacbell.net
Tel: (408) 666-4320
_____________________________________________
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com