Question Locked

Samba Guru Needed (Help!)

0 helpful
10 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have setup a Samba share on SuSE Linux Enterprise v10.2. My users can use the share fine. However, two Windows users can edit the same file at the same time. How can I make it so the file is locked when a user has it open?

I can post the smb.conf file if requested.

Thanks.

10 replies

by tritonsmoon

I've been through that document and this is my smb.conf:

[buyers]
comment = Buyers Share
path = /winshare/buyers
read only = No
create mask = 0774
oplocks = No
level2 oplocks = No
strict locking = Yes

There is mention of modifying the registry keys in Windows, but do I really want to do that to 30+ PC's? That sounds like a lot of admin overhead.
Has anyone else had this specific issue?

Thanks for the reply robo_dev.

by tritonsmoon

Eventually it will be word, excel, etc.
Right now I am just trying a text file. I want to start basic and work my way up. :)

by tritonsmoon

Does anybody else have any suggestions? I don't want to make a bunch of insignificant changes. It seems like it's a configuration setting I just don't know where.

by robo_dev

how are these two users authenticating to the server?

Maybe somehow if both these windows users show up as one user (e.g. guest) then samba would share all the time.

Do you have other Windows users who are working properly?

by tritonsmoon

I've created all the users in the samba users file. They each have their own username and password.

When I look at the SWAT status page I can see the individual users and what files they have open.

None of the users work correctly, Windows OR Linux. Neither of them are notified that a file is open, locked, in use, etc. They don't receive any notification.

This discussion is closed to new replies.