Re: [PHP] chown(), chgrp()

2006-09-22 Thread Richard Lynch
775 needs to be 0775 for starters, as I recall... On Tue, September 19, 2006 11:07 am, Rahul S. Johari wrote: > > Here's the interesting things. I did exactly that to begin with... And > I > never got the "file can't be chmoded!" ... Instead, I actually got the > "Mode > changed to" notification

Re: [PHP] chown(), chgrp()

2006-09-19 Thread Børge Holen
On Tuesday 19 September 2006 22:22, Rahul S. Johari wrote: > Ok, my code follows. Basically I'm printing ... > my Owner/Group, the existing Owner/Group of the file, the Owner/Group of > the file After trying to change it. Does apache have write access to write to yer file, that goes for either o+r

Re: [PHP] chown(), chgrp()

2006-09-19 Thread Rahul S. Johari
Ok, my code follows. Basically I'm printing ... my Owner/Group, the existing Owner/Group of the file, the Owner/Group of the file After trying to change it. The most interesting thing is... I get absolutely no errors, no warnings, and everything prints out as if everything worked... Except that it

Re: [PHP] chown(), chgrp()

2006-09-19 Thread Steve Edberg
At 11:01 AM -0400 9/19/06, Rahul S. Johari wrote: Is there a way to find out if a file can be chown'd or chgrp'd ? Something like is_writeable() ... Except that you're trying to find out if you can change the Owner or Group of a file. fileperms() perhaps? http://php.he.net/manual/en/f

Re: [PHP] chown(), chgrp()

2006-09-19 Thread Rahul S. Johari
Here's the interesting things. I did exactly that to begin with... And I never got the "file can't be chmoded!" ... Instead, I actually got the "Mode changed to" notification that I had set in the "else {" case. However... The mode of the file never changed! Even though !chmod didn't say that mode

Re: [PHP] chown(), chgrp()

2006-09-19 Thread John Nichel
Rahul S. Johari wrote: Is there a way to find out if a file can be chown¹d or chgrp¹d ? Something like is_writeable() ... Except that you¹re trying to find out if you can change the Owner or Group of a file. Who will say it first? http://www.php.net/manual/en/function.fileowner.php -- John C

[PHP] chown(), chgrp()

2006-09-19 Thread Rahul S. Johari
Is there a way to find out if a file can be chown¹d or chgrp¹d ? Something like is_writeable() ... Except that you¹re trying to find out if you can change the Owner or Group of a file. Rahul S. Johari Supervisor, Internet & Administration Informed Marketing Services Inc. 500 Federal Street, Suite

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-14 Thread Bix
This is the part of the code as it stands, it gives a permission denied error. $imtemp=$_FILES['file']['tmp_name']; $imsize=$_FILES['file']['size']; $imname=$_FILES['file']['name']; if ($imsize > "10") {zerror("Image too large","Please go back and correct, image must be less than 100k"

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-14 Thread Bix
Not sure about cron, but will look into sudo. Thanks! "Adrian" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > you could setup a cronjob running as root which chowns the files. > or maybe you can so something with sudo > > > > > > -- > Adrian > mailto:[EMAIL

[PHP] chown / chgrp of a http owned file after upload

2003-08-14 Thread Bix
Hiya, I have written as part of my CMS, an image upload system, now when the images are placed in the destination folder, they are owned by httpd.root and I need to get them to be owned by siteuser.sitegroup. I have tried to chmod and chgrp it to siteuser.sitegroup but it gives permission denied

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-14 Thread Bix
This is the part of the code as it stands, it gives a permission denied error. $imtemp=$_FILES['file']['tmp_name']; $imsize=$_FILES['file']['size']; $imname=$_FILES['file']['name']; if ($imsize > "10") {zerror("Image too large","Please go back and correct, image must be less than 100k"

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-14 Thread Jason Wong
On Wednesday 06 August 2003 18:16, Bix wrote: > I have written as part of my CMS, an image upload system, now when the > images are placed in the destination folder, they are owned by httpd.root > and I need to get them to be owned by siteuser.sitegroup. > > I have tried to chmod and chgrp it to s

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-11 Thread Bix
Much appreciated! Will try the ftp approach, thanks. "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wednesday 06 August 2003 18:16, Bix wrote: > > > I have written as part of my CMS, an image upload system, now when the > > images are placed in the destination folder

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-10 Thread Adrian
you could setup a cronjob running as root which chowns the files. or maybe you can so something with sudo -- Adrian mailto:[EMAIL PROTECTED] www: http://www.planetcoding.net www: http://www.webskyline.de -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-07 Thread Mike Migurski
>I have written as part of my CMS, an image upload system, now when the >images are placed in the destination folder, they are owned by httpd.root >and I need to get them to be owned by siteuser.sitegroup. > >I have tried to chmod and chgrp it to siteuser.sitegroup but it gives >permission denied e

Re: [PHP] chown/chgrp not working

2001-11-30 Thread Fred
<[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Friday, November 30, 2001 10:21 AM > Subject: RE: [PHP] chown/chgrp not working > > > > Good day, > > > > What user is the application running as? Only the superuser can use these > >

Re: [PHP] chown/chgrp not working

2001-11-30 Thread Paul Warner
TED]>; <[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 10:21 AM Subject: RE: [PHP] chown/chgrp not working > Good day, > > What user is the application running as? Only the superuser can use these > functions (this is documented with both of these functions). > > Fo

RE: [PHP] chown/chgrp not working

2001-11-30 Thread Darren Gamble
Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: Paul Warner [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 8:24 AM To: [EMAIL PROTECTED] Subject: [PHP] chown/chgrp not working

[PHP] chown/chgrp not working

2001-11-30 Thread Paul Warner
I have a client that I made a image uploader/thumbnailer for that insists on using FrontPage. In order to make FP happy, I need to set the owner to 'nobody' and the group to 'site3' which are uid 99 and gid 117. The uploaded file is set as httpd/root and the thumbnail created by the script comes