LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 11-11-2004, 11:20 AM   #1
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Rep: Reputation: 15
Samba with multiple connections from single XP machine


Hi,
I'm having this problem with Samba. Previously, when I used redhat 9, I could connect to multiple shares on my linux machine from XP. But after upgrading to fedora 3, this is no longer possible. I can connect to a single user, say, "storage". After this, if i try to mount another user, say "webpage", it doesn't work. It shows me the login box with username and password, but after i enter the correct username and password, the box just pops up again, and it doesn't let me connect.

If I were to unmount and disconnect from the storage user, I could mount the webpage user, but then storage would be unaccessible. Here is my testparm output:

Code:
# Global parameters
[global]
        workgroup = LINUXGROUP
        server string = Samba Server
        passwd program = /usr/bin/passwd %u
        passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
        unix password sync = Yes
        log file = /var/log/samba/%m.log
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = /etc/printcap
        dns proxy = No
        remote announce = 10.10.10.255 192.168.1.255 192.168.2.44
        hosts allow = 10.10.10., 127.
        cups options = raw

[homes]
        comment = Home Directories
        valid users = %S
        read only = No
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No
The samba version is 3.0.8pre1-0.pre1.3.
Thanks

Last edited by jqcaducifer; 11-11-2004 at 11:23 AM.
 
Old 11-11-2004, 05:14 PM   #2
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
when you say you "mount another user" do you mean you are using a different user name to map a drive or are you meaning you are trying to map to a different shared folder?
 
Old 11-14-2004, 02:25 PM   #3
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Original Poster
Rep: Reputation: 15
I mean that I am trying to map two different linux folders. I am using a single Windows user to try and map the folders of two linux users.
 
Old 11-14-2004, 07:49 PM   #4
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
well the smb.conf file you posted doesn't have 2 folders shared
 
Old 11-15-2004, 03:56 PM   #5
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Original Poster
Rep: Reputation: 15
Well, doesn't

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

share all home directories of all the users, as long as I do a "smbpasswd -a" for the user? or am I missing something?
 
Old 11-15-2004, 05:47 PM   #6
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
well technically yes, if you have 2 samba users and both the folders are existing that will create 2 shares.

but if you are logged into windows as user A you will only see homeA, homeB will not be visible.

The other issue you have is userA will not have access to userB unless you specifically set that by either having both users in the same group and giving group access, or just setting the permissions wide open.

EDIT:
and if you are trying to map userA to homeA AND userB to homeB from the same windows machine you can't do that. you are not allowed to use more than one username and password to map to another computer in windows.

Last edited by Finlay; 11-15-2004 at 05:49 PM.
 
Old 11-15-2004, 08:40 PM   #7
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Original Poster
Rep: Reputation: 15
O ok, its that last part I was wondering about. So it isn't possible to map two different users on one windows computer? Somehow I got it working before, on my redhat 9 system, but oh well.

Thanks for clearing things up
 
Old 11-15-2004, 10:40 PM   #8
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
i just tried to do exactly what you are doing and it didn't work.
maybe on older versions of samba it did.
 
Old 11-16-2004, 09:01 PM   #9
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Original Poster
Rep: Reputation: 15
Hmm I guess I can live with it now. Thanks for your help.
 
Old 11-17-2004, 12:05 AM   #10
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
the way to do this is to map both shares as the same user and put a mode on the files like this.

[share]
comment = test share
writable = yes
create mode = 774
path = /home/brian
directory mode = 774



then do a
/home/chmod 774 brian
AND
/home/brian/chmod -R 774

Last edited by Finlay; 11-17-2004 at 12:07 AM.
 
Old 11-17-2004, 12:50 PM   #11
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Original Poster
Rep: Reputation: 15
I'm trying to view two user directories on a single computer. How does that work?
 
Old 11-17-2004, 02:53 PM   #12
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
basically you give access to userA on/in/for userB's folder then map it using userA's credentials
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Multiple RADIUS servers on a single machine skiros Linux - Software 3 11-02-2005 06:48 AM
working SAMBA PDC and DHCP on single machine?? hasnain Linux - Networking 1 01-05-2005 04:25 AM
Can I use a single Samba server for multiple domains? help321 Linux - Software 0 08-11-2004 05:20 AM
Multiple Cablenet Connections, single eth1 vinayras Linux - Networking 0 08-01-2003 11:22 AM
One Machine, Multiple NICs, and a single Newbie CozyMel Linux - Networking 2 10-09-2002 12:53 AM


All times are GMT -5. The time now is 05:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration