View Full Version : cannot write into html folder
9th May 2009, 09:28 PM
I'm setting up my fedora 10 server. I am currently working on samba. I have added users and created their home directories with their own html directories. I have changed their html directories to 777. However, it appears to be read-only since I cannot create files or folders within it. Can anyone please give me some ideas as to what may be causing this? Probably some extra configurations I may have overlooked? Any help would be kindly appreciated. I also created a general wshare (writable share) directory for all users within home directory but I am encountering the same problem and cannot write to it.
10th May 2009, 01:27 AM
can you go to /etc/skel and type ls -l in there. and another thing Why don't you use /var/www/html for web site.
it might be that you are not owner of this folder
10th May 2009, 04:27 AM
I tried that and root is the owner.
10th May 2009, 04:55 AM
Have you tried any guide for setting up your samba. You may wanna take a look over here: http://www.techotopia.com/index.php/Sharing_Fedora_Linux_Folders_with_Remote_Linux_and _UNIX_Systems
It has a complete guide which may help your permission issues.
Linux Archive (http://www.linux-archive.org/)
10th May 2009, 05:09 AM
Thanks Ellen, I was actually using as a guide, among others......
10th May 2009, 05:33 PM
In order for their home folders to be r+w in Samba, there needs to be a line in either the [homes] section or their [username] section (which is optional) of /etc/samba/smb.conf that says writable = yes (notice odd spelling of writable). Mine looks like this:
path = /home/abirdman
available = yes
browsable = yes
public = no
writable = yesIf you're not using separate setcions in the conf file for each user, make sure the line writable = yes is in the [homes] stanza. I don't believe setting the access bits in the directories to 777 is enough if you're accessing them via Samba, because Samba will block the write unless it's specifically allowed in the conf file.
11th May 2009, 02:14 AM
Thanks guys. I fixed my problem. It turns out I had to install another package dependency for Apache and samba. However, I''m having problems viewing the user's html public folder through the web brower.
How can I get that to work? I know that in ubuntu there is a command you can use but is there one for fedora too?
11th May 2009, 03:21 PM
You set the httpd.conf file to allow user directory's and put a directory statement for them at the bottom of the httpd conf file.
I had it working a while back with something like this. Put what options you want for your setup. At least this worked for me around fedora 4.
AllowOverride Options FileInfo AuthConfig Limit
Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
<Limit GET POST OPTIONS>
Allow from all
<LimitExcept GET POST OPTIONS>
Allow from all
12th May 2009, 04:25 AM
Haha i know this user, so Keila why Kenam? Thats wierd anyhow :S I solved it, read my thread or i'll do the job for a kiss :D
Here is the links: http://www.fedoraforum.org/forum/showthread.php?t=221187
But i'd also like the kiss also since i'm helping, so either way the "kiss" :p
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.