Problems accessing Windows with SAMBA (group users)
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986
Rep:
Problems accessing Windows with SAMBA (group users)
I have 2 accounts on the Linux box (192.168.0.2): John and Jane. (UID=500 and UID=501, respectively)
They are part of the ACCOUNTING group (GID=512)
I also have the same accounts, John and Jane, on a Windows 2000 file sharing server (192.168.0.3) with the same password as the Linux box (just to make things easier). I am trying to share the c:\accounting folder for them. Sharing and security permissions are set appropriately to John and Jane.
On the Linux box, I create, as root, a /mnt/accounting folder.
I am then able to access the /mnt/accounting folder as a user. Problem is that Jane can read/write to it, but John cannot read/write to it. It seems that since Jane is on the bottom of the list, it cancels out the previous permission for John (UID=500).
How do I do it so BOTH of them get read and write access to the /mnt/accounting folder? If I switch John and Jane around in the /etc/fstab, then John gets read and write permission but Jane does not.
well, you can't make two mounts to the same folder... If you want to mount them separately (which is a question should should answer yourself - do they need separate logins through samba?), you'll have to either make two mounts /mnt/accountingjohn & /mnt/accountingjane (or possible /mnt/account/john & jane) or allow john & jane to mount the drive themselves.
This, of course, is all AFAIK.
You *can* run nfs on Windows so that you only have one mount & let nfs deal with uids & such. ::shrug::
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986
Original Poster
Rep:
LOL! I see what you are saying. So it's best just to have each user on their own workstation create their individual /mnt directory, like what you said?
/mnt/accountingjohn
/mnt/accountingjane
The files will still be "udpated" in real time, correct? for example, if John makes a change, Jane will also see the changes and vice versa?
Your idea sounds very simple. I feel so stupid! LOL
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986
Original Poster
Rep:
Is there any way for me to encrypt the username/password in the /etc/fstab? I don't like the idea of it being in plain text and having to ask the users for their passwords or to see their passwords when I edit the fstab
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.