The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > BSD
.
google unix.com



BSD BSD, sometimes called Berkeley Unix, is a Unix operating system developed by the Computer Systems Research Group of the UC Berkeley.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
apache problem k2k Debian 14 11-06-2008 11:12 PM
Problem in apache naw_deepak Red Hat 3 10-25-2008 04:58 AM
Apache 2.2 problem mjdousti UNIX for Dummies Questions & Answers 6 12-21-2007 11:21 PM
Apache with SSL problem b_manu78 SUN Solaris 2 03-23-2005 06:13 PM
userdir Synbios UNIX for Dummies Questions & Answers 1 01-17-2004 12:58 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-11-2009
moslemovic moslemovic is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 10
Problem userdir ~username on apache

i have problem user cannot add or edit file on their directory
i mean /home/user/public_html

i have httpd.conf like this :

................

# UserDir
Include etc/apache22/extra/httpd-userdir.conf


and httpd-userdir.conf

................
#
UserDir public_html
UserDir disabled root toor daemon operator bin tty kmem games news man sshd bind proxy _pflogd _dhcp uucp pop www nobody mail
null smmsp
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory "/home/*/public_html">
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>


and permision user at home directory

before:

sipitung# ls -ll
total 18
-rw-r--r-- 1 moslemovic www 758 Jul 12 05:24 .cshrc
-rw-r--r-- 1 moslemovic www 258 Jul 12 05:24 .login
-rw-r--r-- 1 moslemovic www 167 Jul 12 05:24 .login_conf
-rw------- 1 moslemovic www 379 Jul 12 05:24 .mail_aliases
-rw-r--r-- 1 moslemovic www 339 Jul 12 05:24 .mailrc
-rw-r--r-- 1 moslemovic www 773 Jul 12 05:24 .profile
-rw------- 1 moslemovic www 284 Jul 12 05:24 .rhosts
-rw-r--r-- 1 moslemovic www 980 Jul 12 05:24 .shrc
drwxr-xr-x 2 root www 512 Jul 12 06:22 public_html

after owner i change to public_html

-rw------- 1 moslemovic www 284 Jul 12 05:24 .rhosts
-rw-r--r-- 1 moslemovic www 980 Jul 12 05:24 .shrc
drwxr-xr-x 2 www www 512 Jul 12 06:24 public_html


test via browser is running :
Index of /~moslemovic


but when i try to edit

test.txt

hhahhahhhahhahhhaha

Error: test.txt: Permission denied.


Ask:
what can i do about this configure to httpd.conf and user directory owner, i make home because i wan give access ftp to home user.

thanx for your repply


Moslemovic

Last edited by moslemovic; 07-11-2009 at 08:28 PM.. Reason: made links visible
  #2 (permalink)  
Old 07-11-2009
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,209
Yow can't change public_html to www and not give group write on the file to the user if you want to be able to edit the file.
  #3 (permalink)  
Old 09-14-2009
michealrp michealrp is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 7
As root,

cd ~moslemovic
chown -R moslemovic ./public_html
chgrp -R www ./public_html
chmod -R 755 ./public_html

That way moslemovic can edit any file in the folder and www can read/execute anything in the folder.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:23 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0