LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba with multiple connections from single XP machine (https://www.linuxquestions.org/questions/linux-networking-3/samba-with-multiple-connections-from-single-xp-machine-253654/)

jqcaducifer 11-11-2004 11:20 AM

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

Finlay 11-11-2004 05:14 PM

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?

jqcaducifer 11-14-2004 02:25 PM

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.

Finlay 11-14-2004 07:49 PM

well the smb.conf file you posted doesn't have 2 folders shared

jqcaducifer 11-15-2004 03:56 PM

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?

Finlay 11-15-2004 05:47 PM

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.

jqcaducifer 11-15-2004 08:40 PM

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 :)

Finlay 11-15-2004 10:40 PM

i just tried to do exactly what you are doing and it didn't work.
maybe on older versions of samba it did.

jqcaducifer 11-16-2004 09:01 PM

Hmm I guess I can live with it now. Thanks for your help.

Finlay 11-17-2004 12:05 AM

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

jqcaducifer 11-17-2004 12:50 PM

I'm trying to view two user directories on a single computer. How does that work?

Finlay 11-17-2004 02:53 PM

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


All times are GMT -5. The time now is 02:19 PM.