You are not logged in.

#1 2008-10-23 08:18:45

sylvain77
Member
Registered: 2007-09-25
Posts: 20

pyNeighborhood can't retrieve IP addresses

I am unable to mount CIFS filesystem using PyNeighborhood.

The mode for mount.cifs and umount.cifs have been set to setuid root to allow non-root users to mount and unmount shares.

Using the command line, it is straightforward:

mount.cifs //198.172.1.375/Shared /home/user/Shared/ -o guest

Unfortunately, PyNeighborhood can't mount this share folder.
It can unmount it however...

I suppose that I do not specify correctly the option "guest" (don't prompt for a password) with PyNeighborhood.


I need help to setup PyNeighborhood, or at least to point me in the right direction.

Thanking you in advance.

Last edited by sylvain77 (2008-10-24 00:59:47)

Offline

#2 2008-10-23 11:17:39

sylvain77
Member
Registered: 2007-09-25
Posts: 20

Re: pyNeighborhood can't retrieve IP addresses

It is not a permission problem because I have the same issue as root...

Last edited by sylvain77 (2008-10-24 00:05:32)

Offline

#3 2008-10-24 00:03:25

sylvain77
Member
Registered: 2007-09-25
Posts: 20

Re: pyNeighborhood can't retrieve IP addresses

Using the --debug option, I have discovered that pyNeighborhood does not mount shares because it can't retrieve IP addresses.
If I specify the IP address, it can mount CIFS file-systems...

pyNeighborhood uses nmblookup to retrieve IP addresses.

nmblookup -T "hostname"

Unfortunately, this command does not give results.


FYI; the following command provides the IP address.

nmblookup "hostname"

I have this problem since the latest update of smbclient.

Last edited by sylvain77 (2008-10-24 00:12:58)

Offline

#4 2008-10-24 00:31:27

sylvain77
Member
Registered: 2007-09-25
Posts: 20

Re: pyNeighborhood can't retrieve IP addresses

I have just solved the problem.

In pyNeiborhood preferences, I give the following lookup command: nmlookup -B
The actual command performed by pyNeiborhood is:

nmlookup -B -T "hostname"

I am not sure it is the best solution but it works.:D

Offline

#5 2008-10-24 00:52:42

sylvain77
Member
Registered: 2007-09-25
Posts: 20

Re: pyNeighborhood can't retrieve IP addresses

CORRECTION: I have not solved the problem.:(
Sorry, for the previous post.

Yes, nmlookup -B allows me to retrieve IP addresses.
Unfortunately, pyNeighborhood can't scan groups with this option.

Is nmlookup defective?
Is it possible to prevent pyNeighborhood to use the option T?

Last edited by sylvain77 (2008-10-24 00:56:05)

Offline

#6 2008-11-04 14:39:08

FEN
Member
From: Dolgoprudny, Russia
Registered: 2008-10-14
Posts: 6
Website

Re: pyNeighborhood can't retrieve IP addresses

I have the same problem and found, that problem was in slashes "//" in Network name.
You should set fields in "Add machine" dialog something like that:

Network name: Natalie
IP address: 194.85.80.27
Display in a list as: Natalie

Offline

#7 2008-11-07 08:26:36

sylvain77
Member
Registered: 2007-09-25
Posts: 20

Re: pyNeighborhood can't retrieve IP addresses

Thanks for the tip.

Hopefully, pyNeighborhood 0.5.0 will solve the problem...

Offline

Board footer

Powered by FluxBB