LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-15-2006, 07:39 PM   #1
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
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: Reputation: 45
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 then have in my /etc/fstab the following:

//192.168.0.3/accounting /mnt/accounting smbfs username=john,password=XXXXXX uid=500,gid=512 0 0
//192.168.0.3/accounting /mnt/accounting smbfs username=jane,password=XXXXXX uid=501,gid=512 0 0

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.

Thanks
 
Old 06-15-2006, 09:05 PM   #2
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
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::

Last edited by BrianK; 06-15-2006 at 09:07 PM.
 
Old 06-15-2006, 10:05 PM   #3
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
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: Reputation: 45
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
 
Old 06-15-2006, 10:37 PM   #4
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
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: Reputation: 45
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing Windows users on win 2k+ network? jollyjoice Debian 1 10-07-2004 09:34 AM
Samba and Windows Primary Group saylestock Linux - Networking 3 05-04-2004 12:44 PM
Samba + Winbind + Domain Users group wheeliemonster Linux - Networking 0 01-27-2004 09:56 AM
group-office support samba users ? whynotjason Linux - Networking 2 07-14-2003 04:11 AM
samba 2.2.8a + windows XP - master group problem topche Linux - Networking 3 05-08-2003 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration