Michael Marsh wrote:
On Jan 31, 2008 12:14 AM, Kent West <[EMAIL PROTECTED]> wrote:
On the machine having the 2.6.22 kernel, I can not. Here's the error:
[EMAIL PROTECTED]:~$ smbmount //faculty/web netShares/web/
Password:
mount error 2 = No such file or directory
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
This used to work on this box, until a few months (weeks?) ago (I'm just
now getting around to working on the problem).
Both boxes run Sid.
If you have a "helpful" ISP, such as Verizon, then it's going to
resolve "faculty" to its search service, which isn't what you want.
With smbfs, you could specify
name resolve order = lmhosts wins bcast
to avoid the DNS lookup. With cifs, you can't, since it doesn't yet
respect smb.conf. However, you can install winbind and edit
/etc/nsswitch.conf, setting the hosts spec to:
hosts: files wins dns
That worked like a charm for me, with thanks to Steve Langasek (vorlon).
Changing /etc/samba/smb.conf to:
; name resolve order = lmhosts host wins bcast
name resolve order = lmhosts wins bcast
and restarting /etc/init.d/samba made no difference.
"aptitude install winbind" and changing /etc/nsswitch.conf to:
hosts: files wins dns mdns4_minimal [NOTFOUND=return] mdns4
#hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
made no difference.
When trying to smbmount "faculty", it doesn't matter if I use "faculty"
or "faculty.acu.edu" or the IP address; same failure each time.
[EMAIL PROTECTED]:~$ smbclient -L faculty
Password:
Domain=[ACU-ACADEMIC] OS=[SunOS 5.9 sun4u] Server=[LAN Manager 2.1]
Sharename Type Comment
--------- ---- -------
home Disk Home Directories
shared Disk Shared Directories
dept Disk Departmental Directories
web Disk Home Directories
classes Disk Classes Directory
_acu_temp_drax$ Disk Place Holder Directory
print$ Disk print$
IPC$ IPC Remote IPC
westk Disk default attach point
Domain=[ACU-ACADEMIC] OS=[SunOS 5.9 sun4u] Server=[LAN Manager 2.1]
Server Comment
--------- -------
ACADPDC
CLASSES Classes
FACULTY Syntax LMserver
MYACU Syntax LMserver
PROFDEV Syntax LMserver
STUDENT Syntax LMserver
Workgroup Master
--------- -------
ACU PHOEBE
ACU-ACADEMIC ACADPDC
MSHOME DESAXL-P
TEST TESTDC2
WORKGROUP ACU-TESTLAB-LB1
I'm using my username (westk) which is the same on both Debian boxes and
on the ACU-ACADEMIC WindowsNT/ActiveDirectory domain. I can smbmount a
share that's on a Windows Server 2003 box:
[EMAIL PROTECTED]:~$ smbclient -L luke
Password:
Domain=[ACU] OS=[Windows Server 2003 3790 Service Pack 2]
Server=[Windows Server 2003 5.2]
Sharename Type Comment
--------- ---- -------
J$ Disk Default share
print$ Disk Printer Drivers
CIO Cabinet Disk
<etc etc etc>
[EMAIL PROTECTED]:~$ smbmount //luke/pc_apps mnt
Password:
[EMAIL PROTECTED]:~$ ls mnt
Acrobat dynamic.ini New
Folder Sophos.lnk
<etc etc etc>
--
Kent
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]