I have a webserver set up on OpenSuse 10.3. The web directory is set up on a Samba share which I can browse to on my WinXP machine. I am able to create/edit/delete anywhere on that Samba share except for the /www/htdocs folder. This is a permissions issue. I have given full control for the Samba share to the user I login with on the XP machine, but how do I give that user full control over the web space?
Someone owns the htdocs folder in Linux. Supppose it’s “billy” and group = users. Add to the definotion of the share the line:
force user = billy
If that’s not easy to understand, then post the share definition here, together with the Linux permissions on htdocs and the name and group of the owner of htdocs (I’m assuming you’ve made htdocs the document root of the web?)
Sorry it has been long between replies but 4th of July came and then lots and lots of bad weather and I did not want to see how good my UPS was.
Okay, well, I have looked and looked, obviously in the wrong place but I can find no record of the owner of the htdocs directory.
In Samba the entire /srv directory share options are as follows:
guest ok yes
read only no
comment Media
path /srv
inherit acls yes
If I understand you correctly then I should add “force user = billy” in that Samba entry for whomever owns /srv/www/htdocs, yes?
I am unsure where to find this info of the owner though. What bugs me is that I had this set up previously but rebuilt most of the machine. Word to the wise…backup your config basics =).
wergeld
EDIT> Found owner: it is root…great. How do I allow me access to my webspace without invoking root? Seems like that is asking for security trouble.
Excellent! That did it. I kept the original share /srv as it is since other directories are used to share documents between computers. But now I can edit my webspace directly in my XP machine. Thanks for the help. Will there be any security issues with this. Both machines are behind a LAN and no public ports are forwarded to any of the machines (yet).
Excellent! That did it. I kept the original share /srv as it is since other directories are used to share documents between computers. But now I can edit my webspace directly in my XP machine. Thanks for the help. Will there be any security issues with this. Both machines are behind a LAN and no public ports are forwarded to any of the machines (yet).
Glad it worked – I don’t see any security issues apart from allowing guests into the whole directory structure under /srv