LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-08-2004, 04:36 PM   #1
Sagara Sanosuke
LQ Newbie
 
Registered: Jun 2004
Location: Texas, US
Distribution: Mandrake 8.2
Posts: 9

Rep: Reputation: 0
Unhappy Making DreamWeaver work with Samba


I'm trying to create a intranet website using a Windows version of DreamWeaver MX and a Linux Apache/Samba server. All of them are configured correctly and run properly working independant of each other. I've created a remote site defintion in DW to the samba server. I have no problem uploading and managing the files and folders with DW, though when I try to view the site in browser it says that I don't have access to the file. I'm realitivly sure I've narrowed down the problem to the set UID/GID on the files that I'm creating through DW. When ever I change either the UID or GID of the file(html, gif, jpg, etc.) to apache it works fine.

I've tried to do some searching on my own and found the preexec and postexec commands. I've set it so that it recursivly changes the UID/GID of directory every time someone connects and disconnects from the samba share using chmod. This works fine if the user connects through Explorer but no matter how many times I refresh my view or save my files it doesnt seemt to change anything. Doesn't DW create the same connection type as Explorer when creating files and such? Is there a solution that would work aside from having to create a script to do this for me?

Oh and this is my current config for the share:
Code:
[website]
comment = Intranet Website Files
path = /home/share/website
create mode = 0770
# So other users can't connect and edit these files:
browseable = no
writeable = no
write list = zach
valid users = zach
# Try to fix problem with UID/GID:
root preexec = chmod -R zach.apache /home/share/website/
root postexec = chmod -R zach.apache /home/share/website/
Any help would be appreacated.
 
Old 08-08-2004, 07:13 PM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
I don't know if it is typo but :
writeable = no

should be :
writable = no

But I don't see why set writable to no if you want create file in this directory...
Also what is the output for ' testparm ' ?
 
Old 08-08-2004, 09:13 PM   #3
Sagara Sanosuke
LQ Newbie
 
Registered: Jun 2004
Location: Texas, US
Distribution: Mandrake 8.2
Posts: 9

Original Poster
Rep: Reputation: 0
Oh... yea... that's a typo :/

I like to think of it as a sorta of a security thing.

where do I find ' testparam '? sorry...

Last edited by Sagara Sanosuke; 08-09-2004 at 10:11 AM.
 
Old 08-09-2004, 02:21 PM   #4
Sagara Sanosuke
LQ Newbie
 
Registered: Jun 2004
Location: Texas, US
Distribution: Mandrake 8.2
Posts: 9

Original Poster
Rep: Reputation: 0
After playing around with it some more I've noticed that if I close out DreamWeaver after i've finished creating/editing and saving the files to the server and then close out DW then postexec works correctly. But then this means I have to exit out of DW every time I want to test something and that puts me back at square one...
 
Old 08-09-2004, 04:27 PM   #5
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
try change create mode = 0770 to create mode = 0644, as all web files like .html or .php are generally set to 0644 mode.
 
Old 08-10-2004, 10:42 AM   #6
Sagara Sanosuke
LQ Newbie
 
Registered: Jun 2004
Location: Texas, US
Distribution: Mandrake 8.2
Posts: 9

Original Poster
Rep: Reputation: 0
I believe it's working the way that I want it to. Instead of changing the create mode from 0770 to 0644, I changed it to 0744. This way I have access to new directories I create. Thank Cedrik.
 
Old 08-10-2004, 11:12 AM   #7
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
no probs
 
  


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
Samba 3.0.14-a not making stephen_davies Linux - Newbie 6 08-24-2005 02:28 PM
making it work Cap'n Skyler Linux - Newbie 8 11-16-2004 03:07 AM
making FTP work explorer Fedora 9 08-12-2004 11:24 AM
making telnet work explorer Fedora 2 05-02-2004 03:56 PM
Making second HD available through samba kojima Linux - Newbie 3 10-04-2003 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:37 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration