[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sheflug] Apache / Samba integration



Hi all ,

Dumb question I guess but hints on best practice appreciated.

I intending on implemting a content server and i wanted to use both samba
and apache to allow users to publish and edit stuff.

I'm using SuSE and was very happy to find that when using yast to create a
user account it created a homefolder, /home/user  and a sub directory
/home/user/public_html  with that subdir available to the web as
http://server.name/~user/

I guess this is an old school cmd line  *nix standard.

I was also pleased to find in my standard samba implementation that each
users home folder was exported as \\server.name\user to windows clients
and that after setting up smbpasswd  windows users could access their home
folders and drag and drop files.

Whats giving me the headache is the permissions on the home folders.

I would like the home folders to be private by default ie users home
folder /home/user to be owned by user and chmod 700 but
/home/user/public_html to be owned by user but be chmod 744
but when i set these apache then cannot access the public_html ....

Also .. Is there an inherited permissions thing in unix ..?  So that if a
file has permission 700 in one directory but gets move to another it will
inherit the permissions of the new container.  I'm thinking if windows
clients wish to publish material form their /home/user and then find that
the permissions are wrong

Ok I can set the permissions to be 711 on /home/user and add wwwrun into
the users group...

Is there a better way ?

TIA

Alan Dawson


___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.