LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-10-2007, 07:33 PM   #1
adapter
Newbie
 
Registered: May 2007
Posts: 0

Rep: Reputation: 0
Access problem whit userdir/public_html


Hi.

I have sett up a /home/*/user account to my frend so he can play whit joomla/drupal or somthing. But I got a realy bad problem if u make anything from joomla like new folder upload via backend everying is made by user www-data. so then when he is going in via ftp to remove a folder that he has uploaded he dont got access to it.. Can anyone help out. here are som settings for mod_userdir.

I have debian etch 4.0.

config:
Code:

<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root

<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>
</IfModule>


here is u see the thing He uploaded not via ftp but in backend of joomla www-data is wrong.
Code:

drwxr-xr-x 2 anders anders 4096 2007-05-11 00:12 com_banners
drwxr-xr-x 5 www-data www-data 4096 2007-05-11 00:17 com_comprofiler
drwxr-xr-x 2 anders anders 4096 2007-05-11 00:12 com_contact
drwxr-xr-x 2 anders anders 4096 2007-05-11 00:12 com_content
drwxr-xr-x 2 anders anders 4096 2007-05-11 00:12 com_frontpage
drwxr-xr-x 2 anders anders 4096 2007-05-11 00:12 com_login
drwxr-xr-x 2 anders anders 4096 2007-05-11 00:12 com_messages
drwxr-xr-x 2 anders anders 4096 2007-05-11 00:12 com_newsfeeds


I realy hope anyone know how to fix this.
 
Old 05-13-2007, 07:46 AM   #2
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
You can fix this one instance of the issue by logging in as root and changing the ownership of the directory:
Code:
chown anders.anders com_comprofiler
Unfortunately, I don't believe there is any way to change this behavior in the future. joomla is working as it was designed to work; the content that is uploaded is uploaded as the Apache user. It is meant to be accessed via joomla and not via FTP. Sadly, it also creates a security problem: You have a directory there to which any web user has write permissions.

Last edited by zaichik; 05-13-2007 at 07:48 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Access to public_html directory ForYouAndI.com Linux - Security 7 02-04-2007 08:48 AM
apache UserDir public_html problem aeshley Linux - Newbie 4 11-29-2004 01:58 AM
UserDir public_html - Problems with CGI wzws Linux - General 3 03-11-2004 07:40 AM
apache UserDir public_html problem aeshley Linux - Networking 4 01-17-2002 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration