LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Samba and permissions (https://www.linuxquestions.org/questions/linux-software-2/samba-and-permissions-109690/)

ezra143 10-28-2003 07:31 PM

Samba and permissions
 
ok, have samba serving a few access databases. the issue is that whenever the first user logs on access creates a lock file and gives them the only write permission, thus preventing other users from writing to the lock file and denying them acess. How can i have this file writeable by all users every day. I have been chmoding them every morning when the first user logs on, roughly 9:00 and am getting tired of doing this. TIA

killjoy 10-28-2003 07:39 PM

I have been using Samba for a couple of years and have not experienced this.
What version are you running?

ezra143 10-28-2003 09:20 PM

whatever is in RH9, 2.4 maybe?

killjoy 10-28-2003 11:26 PM

are all your users in the same linux group?
what did you set the file permissions for?

ezra143 10-29-2003 08:34 AM

even when i set the directory permissions for 777 ( bad, I know) the new file is not writable by others ( which it absolutely has to be). No, they are not in the same group, as this particular server needs to have the highest standard of security for PHI (protected health information). Just another thing to point out in our audits....... so i cant really do that.... looking for another workaround.

tefal 10-29-2003 09:39 AM

This is an MS Access issue.

These databases are designed to be single users only. The best way to allow multiple people to access one database is to go for something like MySQL, PostgreSQL etc.

The lock-file is there to make sure only one person accesses the file at a and can't be changed.

ezra143 10-29-2003 09:49 AM

um, no

actually, MS ACCESS can handle quite a few users. The lock files are there to ensure that any given record is being edited by a single user at one time just as in MYSQL, and PostgreSQL. Thanks for the effort, but no.

demarchi 11-05-2003 05:29 PM

Try editing your /etc/samba/smb.conf and add the following line:
force create mode=0777

This will only create (or modify) files giving them the 777 permission.

ezra143 11-05-2003 05:39 PM

thanks demarchi.

I ended up doing exactly that for the one particular share in question and have not had any issues since. That is exactly the solution i was looking for.


All times are GMT -5. The time now is 03:23 AM.