Networking Forums

Networking Forums > Computer Networking > Linux Networking > Linux to Linux Fileshare Problem

Reply
Thread Tools Display Modes

Linux to Linux Fileshare Problem

 
 
Geoff Lane
Guest
Posts: n/a

 
      07-13-2008, 04:00 PM
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
 
Reply With Quote
 
 
 
 
Bryce
Guest
Posts: n/a

 
      07-13-2008, 06:44 PM
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?
 
Reply With Quote
 
Mark Hobley
Guest
Posts: n/a

 
      07-13-2008, 10:40 PM
Bryce <(E-Mail Removed)> 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.
 
Reply With Quote
 
Geoff Lane
Guest
Posts: n/a

 
      07-14-2008, 05:16 PM
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

 
Reply With Quote
 
Bryce
Guest
Posts: n/a

 
      07-15-2008, 09:48 PM
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.
 
Reply With Quote
 
Geoff Lane
Guest
Posts: n/a

 
      07-16-2008, 08:58 PM
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If I replace my existing Linksys box with Linux Router, how can I know what kind of Routing to be enabled on my Linux Box? santa19992000@yahoo.com Linux Networking 3 01-06-2005 01:18 PM
Trouble Installing Linux/Cisco VPN Client Has anyone had trouble compiling the linux cisco vpn client? Here is the output of the install script: # uname -rviosm Linux 2.4.22-1.2188.nptl #1 Wed Apr 21 20:19:18 EDT 2004 x86_64 x86_64 GNU/Linux JSH Linux Networking 4 07-02-2004 12:48 PM
Red Hot Linux v9.0 [2 DVDs]. Red Hot Linux v9.0 [3 CDs]. Redhat Enterprise Linux ES v3.0 REPACK [4 CDs]. Mandrake Linux 9.2 [3 CDs] -new ! TEL Linux Networking 0 12-01-2003 12:06 PM
Red Hot Linux v9.0 [2 DVDs]. Red Hot Linux v9.0 [3 CDs]. Redhat Enterprise Linux ES v3.0 REPACK [4 CDs]. Mandrake Linux 9.2 [3 CDs] - new ! TEL Linux Networking 0 11-29-2003 11:27 AM
Linux Router/Firewall - Linux Client problem Fry Linux Networking 6 09-06-2003 02:25 AM



1 2 3 4 5 6 7 8 9 10 11