Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have an access db that a number of people need to share. One ID can log on many times and use the db. Many ID's can't share the DB at the same time. Every ID can get to the db and write to it so long as no one else tries it. I don't think it's straight forward permissions....
mark is the owner xrw
staff is the group xrw
Should I have some one else set up as owner?
At first I thought maybe some type of share violation, now I think it may be related to mark owning the file, pam logs in and cant write to it because mark owned it first.
do not post a question more than once, i know someone told you it would be a good idea, but it's not, trust me. just choose the forum more carefully next time. thanks
This data base existed previously on a NT server and functioned well as multi user. The only major diference is now it sits on a unix file system being shared by samba.
The files are owned by mark and a group called staff and both have rwx. If another member of staff say john, attempts to use the the file he is denied. I'm wondering if it's because Mark owns it?
Another though is to create a sym link and point the users to the sym link...
Does anyone else have experience shareing databases under samba?
I am having the same issues....but think I have pinpointed the exact problem, heres an example of my scenario:
I have set up a Samba Domain where I store "records.mdb" which is stored in "/Shared".
"/Shared" and all files stored within are owned by "ntuser" and belongs to group "ntusers", the group "ntusers" have full read write access.
"User1" and "User2" both belong to group "ntusers" which gives them full access to "records.mdb".
This is fine.....now,
Lets say User1 is logged in...this in hand creates "records.ldb" where attributes change so that only the owner has full access. People belonging to the group "ntusers" ONLY have read only access so when User2 tries to log in, it too tries to add itself to "records.ldb" but because only User1 has write access the database bombs out for User2.
I have been able to get past this by going to the server and changing the permissions so that group "ntusers" has full access to "records.ldb" but this is only temporary because ldb files are static so the same problems occurs next time around.
How do you tell Samba to keep group permissions on files in a group share when created by a particular user (as I think this is the primary problem)??
You should also chmod the <path to shared folder> to 2770 and chgrp'ing it to the group that should have access to your folder. In your case staff. Doing this will allow the staff group to share files and have group read write access to the database and other files.
Oh! Also, chmod existing files to 0660 and folders to 2770
Cheers
Last edited by sidmark-2850; 08-31-2003 at 10:27 AM.
Ahhhh Cool...thanks sidmark! That worked perfectly!!
I have another question...lets say I have a samba domain and several XP clients connected. Can I automatically MAP shares (lets take /Shared as an example) to a particular drive letter so that when a valid domain user logs into the samba server it checks to see if "/Shared" is mapped to a drive letter? (presuming that the drive letter is available).
Would I have to use netlogon.bat to accomplish this or can I simply add something into my smb.conf?
oneiltj. I hope the posts answered your questions. You probably haven't implemented the change yet. I hate when people don't respond. They meek me in suspense.
shannonp, I am glad that it worked out. Since you are running a samba domain, it should be relatively painless to do what you asked.
First, you create a netlogon share. This share holds your scripts and the logon script parameter set. You probably have it set up already. JIC:
In your logon.bat file, or whatever you call it, you need to have something like:
Code:
@echo off
echo Running Windows Logon Script
echo.
if %OS%==Windows_NT goto NTMap
goto Map
:NTMap
echo You are running Windows NTx
echo .
echo Mapping Shared Drive
net use S: \\Server\Shared /persistent:no /y
goto exit
:Map
echo You are Running Windows 9x
echo .
echo Mapping Shared Drive
net use S: \\Server\Shared /persistent:no /y
goto exit
:exit
echo Executing other logon tasks
The /persistent:no parameter tells windows ntx machines not to map the drive automatically at logon. That way, if you decide remove the s or whatever drive letter you choose, nt won't try to map it even thought it is no longer in the script.
The /y parameter supresses the "S: is currently \\Server\Shared. The local device name S: is already in use" and map the drive anyway. This will NOT work if the drive letter is a local disk such as a hard drive or CDrom.
You may need to do some testing with the above script. I haven't used it in a while and I am not sure whether it works as it should on both 9x and nt. I am a bit rusty with dos.
Im having the same kinda issues.. I completed every step until the chmod part. I open the console but was lost at that point. what do the command look like.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.