Re: [Samba] Samba versus Dreamweaver

2002-06-14 Thread Mike Brodbelt



Keller Nicolas wrote:
 Hi!
 
 I hope someone can help me with this one:
 
 We're using Macromedia Dreamweaver 3 to publish local files from a NT4
 Server to our internet server running Redhat 7.3 / Samba 2.2.3a. Life could
 be so sweet but we're facing a strange problem: Users can't _overwrite_
 files edited by other users. Everytime someone tries to overwrite such a
 file the message An error occurred - cannot put file.xxx. Access is
 denied. pops up. But they can delete them and this only happens inside
 Dreamweaver 3, overwriting a file with the normal Windows Explorer isn't a
 problem. I guess my Samba configuration below is right and Dreamweaver does
 some strange things.

It sounds like your problem is the Unix filesystem semantics not Samba.
To delete a file requires only write access to the *directory* that
contains that file - no permissions on the file itself are required. To
overwrite a file would require changing the data in the file, and so
needs write permission on the *file*. Windows explorer is, I'd guess,
actually deleting/recreating when you overwrite.

The normal way around this is to set the group ownership of the
directory to a group that contains all the users you want to have
access. Then set the SGID bit on the directory. From that point on, all
files created in that directory will inherit the group ownership of the
parent directory. Subdirectories will inherit both the group ownership
of the parent, and the SGID bit. Then you need to ensure that the umask
is set so that files are created group writeable. You'll (obviously)
also need to chage the group/permissions on the files that were created
before you set the SGID bit on the directory.

HTH,

Mike.


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Samba versus Dreamweaver

2002-06-14 Thread Barry Dean

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Good advice.

You may also need:

dos filetimes = yes
dos filetime resolution = yes
dos filemode = yes
fake directory create times = yes
create mask = 0112
force directory mode = 0775
inherit permissions = Yes

In your SAMBA config.

We do just what you do, SAMBA shares for groups of web authors. 
The authors belong to one of about 300 groups, the directories are set owned 
by root, group writable by one of these groups and not world accessible at 
all. The group sticky bit is set and a Solaris ACL is added to allow the user 
the web server runs as to have read access. 

All seems to run quite nicely. Even from Macs that run DAVE.

On Friday 14 Jun 2002 11:39 am, Mike Brodbelt wrote:
 Keller Nicolas wrote:
  Hi!
 
  I hope someone can help me with this one:
 
  We're using Macromedia Dreamweaver 3 to publish local files from a NT4
  Server to our internet server running Redhat 7.3 / Samba 2.2.3a. Life
  could be so sweet but we're facing a strange problem: Users can't
  _overwrite_ files edited by other users. Everytime someone tries to
  overwrite such a file the message An error occurred - cannot put
  file.xxx. Access is denied. pops up. But they can delete them and this
  only happens inside Dreamweaver 3, overwriting a file with the normal
  Windows Explorer isn't a problem. I guess my Samba configuration below is
  right and Dreamweaver does some strange things.

 It sounds like your problem is the Unix filesystem semantics not Samba.
 To delete a file requires only write access to the *directory* that
 contains that file - no permissions on the file itself are required. To
 overwrite a file would require changing the data in the file, and so
 needs write permission on the *file*. Windows explorer is, I'd guess,
 actually deleting/recreating when you overwrite.

 The normal way around this is to set the group ownership of the
 directory to a group that contains all the users you want to have
 access. Then set the SGID bit on the directory. From that point on, all
 files created in that directory will inherit the group ownership of the
 parent directory. Subdirectories will inherit both the group ownership
 of the parent, and the SGID bit. Then you need to ensure that the umask
 is set so that files are created group writeable. You'll (obviously)
 also need to chage the group/permissions on the files that were created
 before you set the SGID bit on the directory.

 HTH,

 Mike.

- -- 

Barry Dean
Senior Computing Officer
Computing Service, University of Kent
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9Ceuy63PGDezn6TQRAsr4AKCcibul2To8vQJa1dKaFba1/WyCdgCg4OPs
MrqLu9K9Xvq1ap5O/CpHT6c=
=g0ba
-END PGP SIGNATURE-

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



AW: [Samba] Samba versus Dreamweaver

2002-06-14 Thread Keller Nicolas

Finally... :-)


dos filetimes = yes
dos filetime resolution = yes
dos filemode = yes
fake directory create times = yes
inherit permissions = Yes


...has done the trick! Permissons were all set correctly before (Samba and
FS) but this lines helped me out. It's a little slower than before (?) but
it doesn't matter if only it works for more than one person - and it does
:-)

So thank you very very much  have a nice weekend!

Bye,

Nicolas Keller

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Good advice.

You may also need:

dos filetimes = yes
dos filetime resolution = yes
dos filemode = yes
fake directory create times = yes
create mask = 0112
force directory mode = 0775
inherit permissions = Yes

In your SAMBA config.

We do just what you do, SAMBA shares for groups of web authors. 
The authors belong to one of about 300 groups, the directories are set owned

by root, group writable by one of these groups and not world accessible at 
all. The group sticky bit is set and a Solaris ACL is added to allow the
user 
the web server runs as to have read access. 

All seems to run quite nicely. Even from Macs that run DAVE.

On Friday 14 Jun 2002 11:39 am, Mike Brodbelt wrote:
 Keller Nicolas wrote:
  Hi!
 
  I hope someone can help me with this one:
 
  We're using Macromedia Dreamweaver 3 to publish local files from a NT4
  Server to our internet server running Redhat 7.3 / Samba 2.2.3a. Life
  could be so sweet but we're facing a strange problem: Users can't
  _overwrite_ files edited by other users. Everytime someone tries to
  overwrite such a file the message An error occurred - cannot put
  file.xxx. Access is denied. pops up. But they can delete them and this
  only happens inside Dreamweaver 3, overwriting a file with the normal
  Windows Explorer isn't a problem. I guess my Samba configuration below
is
  right and Dreamweaver does some strange things.

 It sounds like your problem is the Unix filesystem semantics not Samba.
 To delete a file requires only write access to the *directory* that
 contains that file - no permissions on the file itself are required. To
 overwrite a file would require changing the data in the file, and so
 needs write permission on the *file*. Windows explorer is, I'd guess,
 actually deleting/recreating when you overwrite.

 The normal way around this is to set the group ownership of the
 directory to a group that contains all the users you want to have
 access. Then set the SGID bit on the directory. From that point on, all
 files created in that directory will inherit the group ownership of the
 parent directory. Subdirectories will inherit both the group ownership
 of the parent, and the SGID bit. Then you need to ensure that the umask
 is set so that files are created group writeable. You'll (obviously)
 also need to chage the group/permissions on the files that were created
 before you set the SGID bit on the directory.

 HTH,

 Mike.

- -- 

Barry Dean
Senior Computing Officer
Computing Service, University of Kent
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9Ceuy63PGDezn6TQRAsr4AKCcibul2To8vQJa1dKaFba1/WyCdgCg4OPs
MrqLu9K9Xvq1ap5O/CpHT6c=
=g0ba
-END PGP SIGNATURE-

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



RE: [Samba] Samba versus Dreamweaver

2002-06-14 Thread Javid Abdul-AJAVID1

Hi Keller, Barry

I am getting the same error even though i tried these settings.
The strange thing is am getting the error ,but the file is getting written
to unix share from windows
but i was wondering why the mysterious error, 

am getting the error but lock file , i have manually clear on windows side, 

originally its supposed to save file on windows side and put a lock on it,
and when i check in back on unix side it should write back and clear the
lock on windows


Now i am getting error, but able to write the file on unix side , but have
to manually clear the lock


thanks in advance for your input

Javid

-Original Message-
From: Keller Nicolas [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 8:44 AM
To: 'Barry Dean'
Cc: [EMAIL PROTECTED]
Subject: AW: [Samba] Samba versus Dreamweaver


Finally... :-)


dos filetimes = yes
dos filetime resolution = yes
dos filemode = yes
fake directory create times = yes
inherit permissions = Yes


...has done the trick! Permissons were all set correctly before (Samba and
FS) but this lines helped me out. It's a little slower than before (?) but
it doesn't matter if only it works for more than one person - and it does
:-)

So thank you very very much  have a nice weekend!

Bye,

Nicolas Keller

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Good advice.

You may also need:

dos filetimes = yes
dos filetime resolution = yes
dos filemode = yes
fake directory create times = yes
create mask = 0112
force directory mode = 0775
inherit permissions = Yes

In your SAMBA config.

We do just what you do, SAMBA shares for groups of web authors. 
The authors belong to one of about 300 groups, the directories are set owned

by root, group writable by one of these groups and not world accessible at 
all. The group sticky bit is set and a Solaris ACL is added to allow the
user 
the web server runs as to have read access. 

All seems to run quite nicely. Even from Macs that run DAVE.

On Friday 14 Jun 2002 11:39 am, Mike Brodbelt wrote:
 Keller Nicolas wrote:
  Hi!
 
  I hope someone can help me with this one:
 
  We're using Macromedia Dreamweaver 3 to publish local files from a NT4
  Server to our internet server running Redhat 7.3 / Samba 2.2.3a. Life
  could be so sweet but we're facing a strange problem: Users can't
  _overwrite_ files edited by other users. Everytime someone tries to
  overwrite such a file the message An error occurred - cannot put
  file.xxx. Access is denied. pops up. But they can delete them and this
  only happens inside Dreamweaver 3, overwriting a file with the normal
  Windows Explorer isn't a problem. I guess my Samba configuration below
is
  right and Dreamweaver does some strange things.

 It sounds like your problem is the Unix filesystem semantics not Samba.
 To delete a file requires only write access to the *directory* that
 contains that file - no permissions on the file itself are required. To
 overwrite a file would require changing the data in the file, and so
 needs write permission on the *file*. Windows explorer is, I'd guess,
 actually deleting/recreating when you overwrite.

 The normal way around this is to set the group ownership of the
 directory to a group that contains all the users you want to have
 access. Then set the SGID bit on the directory. From that point on, all
 files created in that directory will inherit the group ownership of the
 parent directory. Subdirectories will inherit both the group ownership
 of the parent, and the SGID bit. Then you need to ensure that the umask
 is set so that files are created group writeable. You'll (obviously)
 also need to chage the group/permissions on the files that were created
 before you set the SGID bit on the directory.

 HTH,

 Mike.

- -- 

Barry Dean
Senior Computing Officer
Computing Service, University of Kent
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9Ceuy63PGDezn6TQRAsr4AKCcibul2To8vQJa1dKaFba1/WyCdgCg4OPs
MrqLu9K9Xvq1ap5O/CpHT6c=
=g0ba
-END PGP SIGNATURE-

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Samba versus Dreamweaver

2002-06-13 Thread Keller Nicolas

Hi!

I hope someone can help me with this one:

We're using Macromedia Dreamweaver 3 to publish local files from a NT4
Server to our internet server running Redhat 7.3 / Samba 2.2.3a. Life could
be so sweet but we're facing a strange problem: Users can't _overwrite_
files edited by other users. Everytime someone tries to overwrite such a
file the message An error occurred - cannot put file.xxx. Access is
denied. pops up. But they can delete them and this only happens inside
Dreamweaver 3, overwriting a file with the normal Windows Explorer isn't a
problem. I guess my Samba configuration below is right and Dreamweaver does
some strange things.

Has anybody here dealed with the same problem? (Solutions?)

As I can't change Dreamweaver I hope there's an option in Samba that may
help.

Thank you very much for any answers.

Bye,

Nicolas Keller

--
smb.conf: (partial)
--

[global]
workgroup = XXX
netbios name = xx
server string = xx
encrypt passwords = Yes
map to guest = Bad User
announce version = 5.0
keepalive = 30
os level = 2
dos filetimes = Yes

[ShareName]
path = /xxx/xxx/xxx
writable = yes
force group = users
comment = x
valid users = xx1,xx2,xx3,xx4,xx5
create mask = 0740
directory mask = 0750
force directory mode = 020
force create mode = 020


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba