![]() |
|
|
|||
|
Linux to Linux Fileshare Problem
I have two old desktops both running Ubuntu Linux, I also have an XP
laptop all working behind a draytek 2600 router. Samba is set up on both Linux machines, my XP machine can access both Linux machines and both Linux machines can access the XP laptop. Problem is neither Linux machine can view the other's files. If from either Linux machine I connect to the network it shows the other Linux machine, clicking on the networked Linux machine it then lists the shared directories but if I click on the directories a window opens requesting a username, domain and password. The username shows my Linux machine username, the domain shows the WORKGROUP name and the password field is blank. I have tried numerous options but cannot open the shared directories. Geoff Lane |
|
|||
|
Re: Linux to Linux Fileshare Problem
Geoff Lane wrote:
> I have two old desktops both running Ubuntu Linux, I also have an XP > laptop all working behind a draytek 2600 router. > > Samba is set up on both Linux machines, my XP machine can access both > Linux machines and both Linux machines can access the XP laptop. > > Problem is neither Linux machine can view the other's files. If from > either Linux machine I connect to the network it shows the other Linux > machine, clicking on the networked Linux machine it then lists the > shared directories but if I click on the directories a window opens > requesting a username, domain and password. > > The username shows my Linux machine username, the domain shows the > WORKGROUP name and the password field is blank. > > I have tried numerous options but cannot open the shared directories. > > Geoff Lane I don't have either Windows or Ubuntu, but maybe this will help: Did you use smbpasswd to add Samba users and set up their passwords on both Linux machines? |
|
|||
|
Re: Linux to Linux Fileshare Problem
Bryce <invalid@invalid.invalid> wrote:
> Did you use smbpasswd to add Samba users and set up their passwords > on both Linux machines? Configure the servers as follows: http://markhobley.yi.org/linux/samba/configlinux.html Apply the registry change to Microsoft Windows XP: http://markhobley.yi.org/linux/samba/configxp.html Map your usernames: http://markhobley.yi.org/linux/samba/namemap.html Restart the samba networking services. Now hopefully your passwords will work from both Microsoft Windows and GNU/Linux based clients. Regards, Mark. -- Mark Hobley, 393 Quinton Road West, Quinton, BIRMINGHAM. B32 1QE. |
|
|||
|
Re: Linux to Linux Fileshare Problem
Bryce wrote:
>> Problem is neither Linux machine can view the other's files. If from >> either Linux machine I connect to the network it shows the other Linux >> machine, clicking on the networked Linux machine it then lists the >> shared directories but if I click on the directories a window opens >> requesting a username, domain and password. >> >> The username shows my Linux machine username, the domain shows the >> WORKGROUP name and the password field is blank. >> >> I have tried numerous options but cannot open the shared directories. >> >> Geoff Lane > I don't have either Windows or Ubuntu, but maybe this will help: > > Did you use smbpasswd to add Samba users and set up their passwords > on both Linux machines? I'm pretty sure I did as both Linux machines have the same users and passwords. I thought initially there might have been a user/pass conflict but one Linux machine merely acts as a printer and scanner server so gets switched on but not logged in. Geoff Lane |
|
|||
|
Re: Linux to Linux Fileshare Problem
Geoff Lane wrote:
> Bryce wrote: > >>> Problem is neither Linux machine can view the other's files. If from >>> either Linux machine I connect to the network it shows the other Linux >>> machine, clicking on the networked Linux machine it then lists the >>> shared directories but if I click on the directories a window opens >>> requesting a username, domain and password. >>> >>> The username shows my Linux machine username, the domain shows the >>> WORKGROUP name and the password field is blank. >>> >>> I have tried numerous options but cannot open the shared directories. >>> >>> Geoff Lane >> I don't have either Windows or Ubuntu, but maybe this will help: >> >> Did you use smbpasswd to add Samba users and set up their passwords >> on both Linux machines? > > I'm pretty sure I did as both Linux machines have the same users and > passwords. > > I thought initially there might have been a user/pass conflict but one > Linux machine merely acts as a printer and scanner server so gets > switched on but not logged in. > > Geoff Lane Your original post suggests that the shares are set up OK. Sure seems like a privilege problem. Have you tried mounting a samba share from the command line? That would eliminate any weirdness in whatever gui samba client you're using. Open an x-terminal window and try something like this: sudo mkdir /remote_mount sudo mount //remote_machine/share_name /remote_mount -o user=remote_username .... should prompt you for the samba password you preset on //remote_machine for the remote_username account. Once entered, you should have access to that share under /remote_mount with whatever read/write access you set up in /etc/samba/smb.conf on the remote box. |
|
|||
|
Re: Linux to Linux Fileshare Problem
Bryce wrote:
> Your original post suggests that the shares are set up OK. Sure seems like > a privilege problem. Have you tried mounting a samba share from the command > line? That would eliminate any weirdness in whatever gui samba client > you're using. Open an x-terminal window and try something like this: > > sudo mkdir /remote_mount > sudo mount //remote_machine/share_name /remote_mount -o user=remote_username > > ... should prompt you for the samba password you preset on //remote_machine > for the remote_username account. Once entered, you should have access to > that share under /remote_mount with whatever read/write access you set up > in /etc/samba/smb.conf on the remote box. Thanks for your suggestion, I'll give try a try and get back. Geoff Lane |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|