Bug#456992: smbfs: mount.cifs fails with mount error: could not find target server. TCP name ... not found

2007-12-20 Thread Steve Langasek
On Wed, Dec 19, 2007 at 05:05:40PM +, Julian Gilbey wrote:
   I'll check and let you know.  But something has clearly changed
   between version 3.0.27a-1 and this version, as it did work until now.
   And if it is a DNS issue, then how on earth am I meant to specify the
   partition to mount.cifs?!

  Well, are you sure that something in your DNS didn't change since the point
  when you were using 3.0.27a?  I really don't know of any other way this
  would've worked for you with the given commandline.

 I've reinstalled 3.0.27a-1, and my /etc/fstab entry works (line broken
 for readability):

 //WGS-SVR-002/Shared\040Documents   /mnt/wggs/shared smbfs
 user,noauto,credentials=/etc/wggs.credentials,uid=jdg,gid=jdg   0   0

 but you are correct: the command line with -t cifs does not work.
 However, with 3.0.27a, the command line:

 mount -t smbfs //WGS-SVR-001/RMStaff /mnt/wggs/rmstaff -o \
 credentials=/etc/wggs.credentials,uid=jdg,gid=jdg

 does work, whereas with 3.0.28-1~lenny1, this same command line gives
 the TCP name not found error.

 So clearly *something* has changed.

Right, as you seem to have figured out based on your other bug report,
what's changed is that mount.smbfs is now a wrapper around mount.cifs.  You
didn't mention in your original report that you were previously using smbfs.
:)

smbfs has a userspace process linked with the standard samba client code
which handles all of the connection setup, so name resolution works just
like smbclient.  cifs, OTOH, uses a stand-alone program that does a straight
gethostbyname() and passes the IP to the kernel for the connection setup.

I do consider this a bug and a regression (having to do either of
hard-coding IPs or using nss_wins is IMHO a hack), but I'm not sure it'll
get fixed anytime soon.

Cheers,
-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
Ubuntu Developerhttp://www.debian.org/
[EMAIL PROTECTED] [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#456992: smbfs: mount.cifs fails with mount error: could not find target server. TCP name ... not found

2007-12-19 Thread Julian Gilbey
On Tue, Dec 18, 2007 at 04:13:40PM -0800, Steve Langasek wrote:
 Hi Julian,

Hi Steve!

 On Tue, Dec 18, 2007 at 10:03:57PM +, Julian Gilbey wrote:
  Package: smbfs
  Version: 3.0.28-1~lenny1
  Severity: serious
 
  I have just upgraded from 3.0.27a-1 to this version, and now when I
  try to mount my Samba partition, I get the following error:
 
  euclid:~ # mount -t cifs //WGS-SVR-001/RMStaff /mnt/wggs/rmstaff -o 
  credentials=/etc/wggs.credentials,uid=jdg,gid=jdg
  mount error: could not find target server. TCP name WGS-SVR-001/RMStaff not 
  found
  No ip address specified and hostname not found
  euclid:~ # 
 
  Any idea why this might be the case?  I've never seen this error
  before, and I can list the partition just fine.
 
  Also: smbclient --user jgi --command=dir //WGS-SVR-001/RMStaff
  works just fine.
 
 Is this hostname resolvable via DNS (i.e., how about ping WGS-SVR-001
 instead of smbclient as a test)?  The mount.cifs program doesn't support
 WINS-based host resolution (nor mount.smbfs, IIRC).  C.f. bug #311709.

I'll check and let you know.  But something has clearly changed
between version 3.0.27a-1 and this version, as it did work until now.
And if it is a DNS issue, then how on earth am I meant to specify the
partition to mount.cifs?!

Many thanks for the swift response.

   Julian



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#456992: smbfs: mount.cifs fails with mount error: could not find target server. TCP name ... not found

2007-12-19 Thread Steve Langasek
On Wed, Dec 19, 2007 at 07:47:34AM +, Julian Gilbey wrote:
   I have just upgraded from 3.0.27a-1 to this version, and now when I
   try to mount my Samba partition, I get the following error:

   euclid:~ # mount -t cifs //WGS-SVR-001/RMStaff /mnt/wggs/rmstaff -o 
   credentials=/etc/wggs.credentials,uid=jdg,gid=jdg
   mount error: could not find target server. TCP name WGS-SVR-001/RMStaff 
   not found
   No ip address specified and hostname not found
   euclid:~ # 

   Any idea why this might be the case?  I've never seen this error
   before, and I can list the partition just fine.

   Also: smbclient --user jgi --command=dir //WGS-SVR-001/RMStaff
   works just fine.

  Is this hostname resolvable via DNS (i.e., how about ping WGS-SVR-001
  instead of smbclient as a test)?  The mount.cifs program doesn't support
  WINS-based host resolution (nor mount.smbfs, IIRC).  C.f. bug #311709.

 I'll check and let you know.  But something has clearly changed
 between version 3.0.27a-1 and this version, as it did work until now.
 And if it is a DNS issue, then how on earth am I meant to specify the
 partition to mount.cifs?!

Well, are you sure that something in your DNS didn't change since the point
when you were using 3.0.27a?  I really don't know of any other way this
would've worked for you with the given commandline.

To mount such shares without DNS support, you have three options:

- add your own entry in /etc/hosts
- add nss_wins from the winbind package to your nsswitch.conf
- use the ip= option to mount.cifs

Cheers,
-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
Ubuntu Developerhttp://www.debian.org/
[EMAIL PROTECTED] [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#456992: smbfs: mount.cifs fails with mount error: could not find target server. TCP name ... not found

2007-12-19 Thread Julian Gilbey
On Wed, Dec 19, 2007 at 01:23:30AM -0800, Steve Langasek wrote:
 On Wed, Dec 19, 2007 at 07:47:34AM +, Julian Gilbey wrote:
I have just upgraded from 3.0.27a-1 to this version, and now when I
try to mount my Samba partition, I get the following error:
 
euclid:~ # mount -t cifs //WGS-SVR-001/RMStaff /mnt/wggs/rmstaff -o 
credentials=/etc/wggs.credentials,uid=jdg,gid=jdg
mount error: could not find target server. TCP name WGS-SVR-001/RMStaff 
not found
No ip address specified and hostname not found
euclid:~ # 
 
   Is this hostname resolvable via DNS (i.e., how about ping WGS-SVR-001
   instead of smbclient as a test)?  The mount.cifs program doesn't support
   WINS-based host resolution (nor mount.smbfs, IIRC).  C.f. bug #311709.

euclid:~ $ host WGS-SVR-001
WGS-SVR-001.local does not exist (Authoritative answer)
euclid:~ $ 

  I'll check and let you know.  But something has clearly changed
  between version 3.0.27a-1 and this version, as it did work until now.
  And if it is a DNS issue, then how on earth am I meant to specify the
  partition to mount.cifs?!
 
 Well, are you sure that something in your DNS didn't change since the point
 when you were using 3.0.27a?  I really don't know of any other way this
 would've worked for you with the given commandline.

I've reinstalled 3.0.27a-1, and my /etc/fstab entry works (line broken
for readability):

//WGS-SVR-002/Shared\040Documents   /mnt/wggs/shared smbfs
user,noauto,credentials=/etc/wggs.credentials,uid=jdg,gid=jdg   0   0

but you are correct: the command line with -t cifs does not work.
However, with 3.0.27a, the command line:

mount -t smbfs //WGS-SVR-001/RMStaff /mnt/wggs/rmstaff -o \
credentials=/etc/wggs.credentials,uid=jdg,gid=jdg

does work, whereas with 3.0.28-1~lenny1, this same command line gives
the TCP name not found error.

So clearly *something* has changed.

 To mount such shares without DNS support, you have three options:
 
 - add your own entry in /etc/hosts
 - add nss_wins from the winbind package to your nsswitch.conf
 - use the ip= option to mount.cifs

Many thanks!

   Julian



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#456992: smbfs: mount.cifs fails with mount error: could not find target server. TCP name ... not found

2007-12-19 Thread Julian Gilbey
On Wed, Dec 19, 2007 at 01:23:30AM -0800, Steve Langasek wrote:
 To mount such shares without DNS support, you have three options:
 
 - add your own entry in /etc/hosts
 - add nss_wins from the winbind package to your nsswitch.conf
 - use the ip= option to mount.cifs

I used the second solution, and it worked fine.  Many thanks!

   Julian



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#456992: smbfs: mount.cifs fails with mount error: could not find target server. TCP name ... not found

2007-12-18 Thread Julian Gilbey
Package: smbfs
Version: 3.0.28-1~lenny1
Severity: serious

I have just upgraded from 3.0.27a-1 to this version, and now when I
try to mount my Samba partition, I get the following error:

euclid:~ # mount -t cifs //WGS-SVR-001/RMStaff /mnt/wggs/rmstaff -o 
credentials=/etc/wggs.credentials,uid=jdg,gid=jdg
mount error: could not find target server. TCP name WGS-SVR-001/RMStaff not 
found
No ip address specified and hostname not found
euclid:~ # 

Any idea why this might be the case?  I've never seen this error
before, and I can list the partition just fine.

Also: smbclient --user jgi --command=dir //WGS-SVR-001/RMStaff
works just fine.

   Julian



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#456992: smbfs: mount.cifs fails with mount error: could not find target server. TCP name ... not found

2007-12-18 Thread Steve Langasek
Hi Julian,

On Tue, Dec 18, 2007 at 10:03:57PM +, Julian Gilbey wrote:
 Package: smbfs
 Version: 3.0.28-1~lenny1
 Severity: serious

 I have just upgraded from 3.0.27a-1 to this version, and now when I
 try to mount my Samba partition, I get the following error:

 euclid:~ # mount -t cifs //WGS-SVR-001/RMStaff /mnt/wggs/rmstaff -o 
 credentials=/etc/wggs.credentials,uid=jdg,gid=jdg
 mount error: could not find target server. TCP name WGS-SVR-001/RMStaff not 
 found
 No ip address specified and hostname not found
 euclid:~ # 

 Any idea why this might be the case?  I've never seen this error
 before, and I can list the partition just fine.

 Also: smbclient --user jgi --command=dir //WGS-SVR-001/RMStaff
 works just fine.

Is this hostname resolvable via DNS (i.e., how about ping WGS-SVR-001
instead of smbclient as a test)?  The mount.cifs program doesn't support
WINS-based host resolution (nor mount.smbfs, IIRC).  C.f. bug #311709.

-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
Ubuntu Developerhttp://www.debian.org/
[EMAIL PROTECTED] [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]