Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-13-2008, 04:00 PM
Geoff Lane
 
Posts: n/a
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
Reply With Quote
  #2 (permalink)  
Old 07-13-2008, 06:44 PM
Bryce
 
Posts: n/a
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?
Reply With Quote
  #3 (permalink)  
Old 07-13-2008, 10:40 PM
Mark Hobley
 
Posts: n/a
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.
Reply With Quote
  #4 (permalink)  
Old 07-14-2008, 05:16 PM
Geoff Lane
 
Posts: n/a
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

Reply With Quote
  #5 (permalink)  
Old 07-15-2008, 09:48 PM
Bryce
 
Posts: n/a
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.
Reply With Quote
  #6 (permalink)  
Old 07-16-2008, 08:58 PM
Geoff Lane
 
Posts: n/a
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
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:20 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109