Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 02-22-2008, 07:25 PM   #1 (permalink)
 
Junior Techie

Join Date: Feb 2007

Posts: 91

White_Wolf is on a distinguished road

Default FTP permissions and apache

This probably isn't the right forum to ask in, but:

I am running Apache on Linux Fedora5, on a virtual private server.

I got this problem.
On my forum, every time I try to install an add-on, the newly created files have their permissions set to "apache" as the owner, instead of my FTP account name.

When this happens I cannot change the chmod settings, and I can't even delete the files; neither through my FTP or the server interface (Plesk)

So I guess I really have three questions:
1. How do I change file/directory ownership from Apache to my FTP user name?
2. How do I stop my forum from assigning ownership of files and directories to apache?
3. If ownership can't be changed, how do I at least delete these files from my server?
__________________
HP Pavilion 7920
901MHz Intel processor, 256MB SDRAM,
30GB & 250GB IDE Hard Drives (NTFS)
Audio= Intel 82801AA AC\'97 Audio Controller
Video= Intel 82810 Graphics Controller
OS= WinXP Pro / SP3 (32 bit)
White_Wolf is offline  
Old 02-23-2008, 01:20 AM   #2 (permalink)
Greg's Avatar
 
Indeed.

Join Date: Dec 2004

Posts: 1,554

Greg is on a distinguished road

Default Re: FTP permissions and apache

As root you can do
Code:
chown user:usergroup file
or
Code:
chown -R user:usergroup folder
I don't use Apache so I'm not sure exactly why it does this, but it might be for security reasons. Try it and if something gets fuxxed up just change it back.
__________________
Greg is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On