LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   file locking problem with samba (https://www.linuxquestions.org/questions/linux-software-2/file-locking-problem-with-samba-258847/)

mpriddy 11-24-2004 12:31 PM

file locking problem with samba
 
Hi,

I running a Gentoo linux server in a charter high school running Windows 2000 desktops. We have a software for tracking grades, attendance, etc and the database is stored on the server. The software is only allowing one person in at a time because it is locking the database file whenever someone starts the application on their desktop. The server shows a deny_all on the *.ldb database file whenever a user starts the application, which makes it so that no one else can access the software. The software allows multiple users to connect if we store the database file on a windows machine, but when we stick the file on the linux server, it will only allow one person to access it. I tried tweaking the smb.conf file and changing the file locks, but I cant seem to figure it out. The 'teachers' share is where the database resides. Here is my smb.conf as it stands now. Please help.

[global]
oplocks = no
locking = no
veto oplock files = *.ldb *.mdb *.lhd *.bak

[homes]
writeable = yes
path = /home


[scripts]
path = /halima/scripts


[teachers]
oplocks = no
valid users = @teachers,@management,@office
path = /halima/teachers
write list = @teachers,@management,@office

[management]
valid users = @management
path = /halima/management
write list = @management
deny hosts = office teachers

[hr]
comment = Human Resources
valid users = @management
path = /halima/hr
write list = @management

[office]
valid users = @office,@management,@daycare
write list = @office,@management,@daycare
path = /halima/office

[temp]
comment = Temporary storage
writeable = yes
path = /halima/temp
write list = @sysadmins

[web]
writeable = yes
valid users = micah,root,@apache,@sysadmins
path = /var/www/localhost/htdocs
write list = micah,root,@apache,@sysadmins

mpriddy 11-24-2004 03:46 PM

Anyone?

madluther 11-24-2004 06:24 PM

We have a share at work which hosts several MS-Access databases without problems, ...

[shared]
path = /usrdata/shared
nt acl support = No
oplocks = No
level2 oplocks = No


HTH
Mad

mpriddy 11-29-2004 03:25 PM

Thanks for the suggestion. I tried it and I'm still having the same problem. Can anyone offer any other suggestions?

mpriddy 11-29-2004 04:00 PM

I just changed the 'teachers' share with this as a last ditch effort and I still cannot connect more than one person at a time to the database.

[teachers]
oplocks = no
blocking locks = no
level2 oplocks = no
strict locking = no
locking = no
valid users = @teachers,@management,@office
path = /halima/teachers
write list = @teachers,@management,@office

I restarted the samba server on my Gentoo box and I still cant connect more than one person at a time to the database. Is there a setting somewhere else in the server that could be affecting this?


All times are GMT -5. The time now is 01:24 AM.