[parisc-linux] smbfs \\kahuna: Not enough '\' characters in service mirage-01:/mnt# smbclient \\\\kahuna\\ added interface ip=192.168.0.86 bcast=192.168.0.255 nmask=255.255.255.0 Got a positive name query response from 192.168.0.57 ( 192.168.0.57 192.168.0.62 ) Password: session setup failed: NT_STATUS_LOGON_FAILURE mirage-01:/mnt# smbclient \\\\kahuna\\ -U igor added interface ip=192.168.0.86 bcast=192.168.0.255 nmask=255.255.255.0 Got a positive name query response from 192.168.0.57 ( 192.168.0.57 192.168.0.62 ) Password: Domain=[SVOS] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] tree connect failed: NT_STATUS_BAD_NETWORK_NAME mirage-01:/mnt# smbclient \\\\kahuna\\igor added interface ip=192.168.0.86 bcast=192.168.0.255 nmask=255.255.255.0 Got a positive name query response from 192.168.0.57 ( 192.168.0.57 192.168.0.62 ) Password: Anonymous login successful Domain=[SVOS] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] tree connect failed: NT_STATUS_ACCESS_DENIED mirage-01:/mnt# smbclient \\\\kahuna\\igor -U igor added interface ip=192.168.0.86 bcast=192.168.0.255 nmask=255.255.255.0 Got a positive name query response from 192.168.0.57 ( 192.168.0.57 192.168.0.62 ) Password: Domain=[SVOS] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] smb: \> ls . D 0 Tue Dec 3 20:09:15 2002 .. D 0 Tue Dec 3 20:09:15 2002 Boom.txt A 20942 Thu Apr 19 13:04:42 2001 Borovik.txt A 31 Thu Apr 11 13:16:32 2002 CPLD_PDF D 0 Tue Dec 3 20:05:45 2002 distr D 0 Tue Dec 3 19:46:43 2002 ferite.txt A 8684 Thu Apr 19 13:05:32 2001 MC5 D 0 Tue Dec 3 19:47:02 2002 Mon.txt A 15 Tue Aug 12 13:27:04 2003 Plat D 0 Tue Dec 3 19:47:32 2002 Program Files D 0 Tue Dec 3 19:55:48 2002 Recycled DHS 0 Tue Dec 3 20:01:31 2002 REGCLEAN.EXE AR 837632 Sun Nov 9 07:10:56 1980 Shushera.txt A 57 Fri Nov 30 16:49:48 2001 Soft D 0 Tue Dec 3 20:02:57 2002 _ DR 0 Tue Dec 3 20:09:15 2002 _ D 0 Tue Dec 3 20:03:20 2002 56525 blocks of size 1048576. 51072 blocks available smb: \> quit mirage-01:/mnt# smbmount \\\\kahuna\\igor /mnt/igor Password: Anonymous login successful 9019: tree connect failed: ERRDOS - ERRnoaccess (Access denied.) SMB connection failed mirage-01:/mnt# smbmount \\\\kahuna\\igor /mnt/igor -o username=igor Password: ERROR: smbfs filesystem not supported by the kernel Please refer to the smbmnt(8) manual page smbmnt failed: 255 mirage-01:/mnt# man smbmnt(8) bash: syntax error near unexpected token `smbmnt(8' mirage-01:/mnt# man smbmnt 8 Reformatting smbmnt(8), please wait... SMBMNT(8) SMBMNT(8) NAME smbmnt - helper utility for mounting SMB filesystems SYNOPSIS smbmnt mount-point [ -s <share> ] [ -r ] [ -u <uid> ] [ -g <gid> ] [ -f <mask> ] [ -d <mask> ] [ -o <options> ] DESCRIPTION smbmnt is a helper application used by the smbmount program to do the actual mounting of SMB shares. smbmnt can be installed setuid root if you want normal users to be able to mount their SMB shares. A setuid smbmnt will only allow mounts on directories owned by the user, and that the user has write permission on. The smbmnt program is normally invoked by smb mount(8) smbmount searches the normal PATH for smbmnt. You must ensure that the smbmnt version in your path matches the smbmount used. OPTIONS -r mount the filesystem read-only -u uid specify the uid that the files will be owned by -g gid specify the gid that the files will be owned by -f mask specify the octal file mask applied -d mask specify the octal directory mask applied -o options list of options that are passed as-is to smbfs, if this com? mand is run on a 2.4 or higher Linux kernel. AUTHOR Volker Lendecke, Andrew Tridgell, Michael H. Warfield and others. The current maintainer of smbfs and the userspace tools smbmount, smbumount, and smbmnt is Urban Widmark <URL:mailto:urban@teststa? tion.com>. The SAMBA Mailing list <URL:mailto:samba@samba.org> is the preferred pl ace to ask questions regarding these programs. The conversion of this manpage for Samba 2.2 was performed by Gerald Carter 06 December 2001 SMBMNT(8) No manual entry for 8 mirage-01:/mnt# ls /proc 1 196 211 5030 8689 dma iomem misc stat 10574 199 27399 6 8691 driver ioports modules swaps 160 2 3 8 9 execdomains kcore mounts sys 1622 203 30577 8176 9039 fb kmsg net sysvipc 163 206 31292 8177 98 filesystems ksyms partitions tty 168 207 31293 8178 bus fs loadavg pdc uptime 175 208 31294 8179 cmdline gsc locks scsi version 185 209 4 8180 cpuinfo ide mdstat self 193 210 5 8425 devices interrupts meminfo slabinfo mirage-01:/mnt# ls /proc/sys abi debug dev fs kernel net proc sunrpc vm mirage-01:/mnt# ls /proc/sys/kernel cad_pid hostname msgmni panic rtsig-nr shmmni cap-bound hotplug osrelease printk sem sysrq core_uses_pid modprobe ostype random sg-big-buff tainted ctrl-alt-del msgmax overflowgid real-root-dev shmall threads-max domainname msgmnb overflowuid rtsig-max shmmax version mirage-01:/mnt# ls /mnt/igor mirage-01:/mnt# umount /mnt/igor umount: /mnt/igor: not mounted mirage-01:/mnt# cat /proc/filesystems nodev rootfs nodev bdev nodev proc nodev sockfs nodev tmpfs nodev pipefs ext3 ext2 iso9660 nodev nfs nodev devpts mirage-01:/mnt# find / -name "smbfs*" -print /usr/share/doc/smbfs /usr/doc/smbfs /var/lib/dpkg/info/smbfs.postinst /var/lib/dpkg/info/smbfs.list /var/lib/dpkg/info/smbfs.prerm /var/lib/dpkg/info/smbfs.md5sums mirage-01:/mnt# modprob bash: modprob: co mmand not found mirage-01:/mnt# modprobe modprobe: Nothing to load ??? Specify at least a module or a wildcard like \* mirage-01:/mnt# modprobe * modprobe: Can't locate module igor mirage-01:/mnt# modprobe smbfs modprobe: Can't locate module smbfs mirage-01:/mnt# apt-get install smbfs Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: samba samba-common smbclient swat 5 packages upgraded, 0 newly installed, 0 to remove and 17 not upgraded. Need to get 6442kB of archives. After unpacking 8192B will be used. Do you want to continue? [Y/n] y Get:1 http://security.debian.org stable/updates/main swat 2.2.3a-12 [589kB] Get:2 http://security.debian.org stable/updates/main smbfs 2.2.3a-12 [900kB] Get:3 http://security.debian.org stable/updates/main smbclient 2.2.3a-12 [1084kB] Get:4 http://security.debian.org stable/updates/main samba 2.2.3a-12 [2789kB] Get:5 http://security.debian.org stable/updates/ main samba-common 2.2.3a-12 [1080kB] Fetched 6442kB in 12s (519kB/s) Preconfiguring packages ... (Reading database ... 18808 files and directories currently installed.) Preparing to replace swat 2.2.3a-6 (using .../swat_2.2.3a-12_hppa.deb) ... Unpacking replacement swat ... Preparing to replace smbfs 2.2.3a-6 (using .../smbfs_2.2.3a-12_hppa.deb) ... Unpacking replacement smbfs ... Preparing to replace smbclient 2.2.3a-6 (using .../smbclient_2.2.3a-12_hppa.deb) ... Unpacking replacement smbclient ... Preparing to replace samba 2.2.3a-6 (using .../samba_2.2.3a-12_hppa.deb) ... Stopping Samba daemons: nmbd smbd. Unpacking replacement samba ... Preparing to replace samba-common 2.2.3a-6 (using .../samba-common_2.2.3a-12_hppa.deb) ... Unpacking replacement samba-common ... Setting up samba-common (2.2.3a-12) ... Setting up samba (2.2.3a-12) ... Starting Samba daemons: nmbd smbd. Setting up swat (2.2.3a-12) ... Setting up smbfs (2.2.3a-12) ... Setting u p smbclient (2.2.3a-12) ... mirage-01:/mnt# cat /proc/filesystems nodev rootfs nodev bdev nodev proc nodev sockfs nodev tmpfs nodev pipefs ext3 ext2 iso9660 nodev nfs nodev devpts mirage-01:/mnt# modprobe smbfs modprobe: Can't locate module smbfs mirage-01:/mnt# find / -name "smbfs*" -print /usr/share/doc/smbfs /usr/doc/smbfs /var/lib/dpkg/info/smbfs.postinst /var/lib/dpkg/info/smbfs.list /var/lib/dpkg/info/smbfs.prerm /var/lib/dpkg/info/smbfs.md5sums /var/cache/apt/archives/smbfs_2.2.3a-12_hppa.deb mirage-01:/mnt# apt-get install smbfs Reading Package Lists... Done Building Dependency Tree... Done Sorry, smbfs is already the newest version. 0 packages upgraded, 0 newly installed, 0 to remove and 17 not upgraded. mirage-01:/mnt# find / -name "*smbfs*" -print /usr/share/doc/smbfs /usr/share/man/man8/mount.smbfs.8.gz /usr/doc/smbfs /sbin/mount.smbfs /var/lib/dpkg/info/smbfs.postinst /var/lib/dpkg/info /smbfs.list /var/lib/dpkg/info/smbfs.prerm /var/lib/dpkg/info/smbfs.md5sums /var/cache/apt/archives/smbfs_2.2.3a-12_hppa.deb mirage-01:/mnt# cat /proc/filesystems nodev rootfs nodev bdev nodev proc nodev sockfs nodev tmpfs nodev pipefs ext3 ext2 iso9660 nodev nfs nodev devpts mirage-01:/mnt# smbmount \\\\kahuna\\igor /mnt/igor -o username=igor Password: ERROR: smbfs filesystem not supported by the kernel Please refer to the smbmnt(8) manual page smbmnt failed: 255 \\kahuna: Not enough '\' characters in service mirage-01:/mnt# smbclient \\\\kahuna\\ added interface ip=192.168.0.86 bcast=192.168.0.255 nmask=255.255.255.0 Got a positive name query response from 192.168.0.57 ( 192.168.0.57 192.168.0.62 ) Password: session setup failed: NT_STATUS_LOGON_FAILURE mirage-01:/mnt# smbclient \\\\kahuna\\ -U igor added interface ip=192.168.0.86 bcast=192.168.0.255 nmask=255.255.255.0 Got a positive name query respo nse from 192.168.0.57 ( 192.168.0.57 192.168.0.62 ) Password: Domain=[SVOS] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] tree connect failed: NT_STATUS_BAD_NETWORK_NAME mirage-01:/mnt# smbclient \\\\kahuna\\igor added interface ip=192.168.0.86 bcast=192.168.0.255 nmask=255.255.255.0 Got a positive name query response from 192.168.0.57 ( 192.168.0.57 192.168.0.62 ) Password: Anonymous login successful Domain=[SVOS] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] tree connect failed: NT_STATUS_ACCESS_DENIED mirage-01:/mnt# smbclient \\\\kahuna\\igor -U igor added interface ip=192.168.0.86 bcast=192.168.0.255 nmask=255.255.255.0 Got a positive name query response from 192.168.0.57 ( 192.168.0.57 192.168.0.62 ) Password: Domain=[SVOS] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] smb: \> ls . D 0 Tue Dec 3 20:09:15 2002 .. D 0 Tue Dec 3 20:09:15 2002 Boom.t xt A 20942 Thu Apr 19 13:04:42 2001 Borovik.txt A 31 Thu Apr 11 13:16:32 2002 CPLD_PDF D 0 Tue Dec 3 20:05:45 2002 distr D 0 Tue Dec 3 19:46:43 2002 ferite.txt A 8684 Thu Apr 19 13:05:32 2001 MC5 D 0 Tue Dec 3 19:47:02 2002 Mon.txt A 15 Tue Aug 12 13:27:04 2003 Plat D 0 Tue Dec 3 19:47:32 2002 Program Files D 0 Tue Dec 3 19:55:48 2002 Recycled DHS 0 Tue Dec 3 20:01:31 2002 REGCLEAN.EXE AR 837632 Sun Nov 9 07:10:56 1980 Shushera.txt A 57 Fri Nov 30 16:49:48 2001 Soft D 0 Tue Dec 3 20:02:57 2002 _ DR 0 Tue Dec 3 20:09:15 2002 _ D 0 Tue Dec 3 20:03:20 2002 56525 blocks of size 1048576. 51072 blocks available smb: \> quit mirage-01:/mnt# smbmount \\\\kahuna\\igor /mnt/igor Password: Anonymous login successful 9019: tree connect failed: ERRDOS - ERRnoaccess (Access denied.) SMB connection failed mirage-01:/mnt# smbmount \\\\kahuna\\igor /mnt/igor -o username=igor Password: ERROR: smbfs filesystem not supported by the kernel Please refer to the smbmnt(8) manual page smbmnt failed: 255 mirage-01:/mnt# man smbmnt(8) bash: syntax error near unexpected token `smbmnt(8' mirage-01:/mnt# man smbmnt 8 Reformatting smbmnt(8), please wait... SMBMNT(8) SMBMNT(8) NAME smbmnt - helper utility for mounting SMB filesystems SYNOPSIS smbmnt mount-point [ -s <share> ] [ -r ] [ -u <uid> ] [ -g <gid> ] [ -f <mask> ] [ -d <mask> ] [ -o <options> ] DESCRIPTION smbmnt is a helper application used by the smbmount program to do the actual mounting of SMB shares. smbmnt can be installed setuid root if you want normal users to be able to mount their SMB shares. A setuid smbmnt will only allow mounts on directories owned by the user, and that the user has write permission on. The smbmnt program is normally invoked by smbmount(8) smbmount searches the normal PATH for smbmnt. You must ensure that the smbmnt version in your path matches the smbmount used. OPTIONS -r mount the filesystem read-only -u uid specify the uid that the files will be owned by -g gid specify the gid that the files will be owned by -f mask specify the octal file mask applied -d mask specify the octal directory mask applied -o options list of options that are passed as-is to smbfs, if this com? mand is run on a 2.4 or higher Linux kernel. AUTHOR Volker Lendecke, Andrew Tridgell, Michael H. Warfield and others. The current maintainer of smbfs and the userspace tools smbmount, smbumount, and smbmnt is Urban Widmark <URL:mailto:urban@teststa? tion.com>. The SAMBA Mailing list <URL:mailto:samba@samba.org> is the preferred place to ask questions regarding these programs. The conversion of this manpage for Samba 2.2 was performed by Gerald Carter 06 December 2001 SMBMNT(8) No manual entry for 8 mirage-01:/mnt# ls /proc 1 196 211 5030 8689 dma iomem misc stat 10574 199 27399 6 8691 driver ioports modules swaps 160 2 3 8 9 execdomains kcore mounts sys 1622 203 30577 8176 9039 fb kmsg net sysvipc 163 206 31292 8177 98 filesystems ksyms partitions tty 168 207 31293 8178 bus fs loadavg pdc uptime 175 208 31294 8179 cmdline gsc locks scsi version 185 209 4 8180 cpuinfo ide mdstat self 193 210 5 8425 devices interrupts meminfo slabinfo mirage-01:/mnt# ls /proc/sys abi debug dev fs kernel net proc sunrpc vm mirage-01:/mnt# ls /proc/sys/kernel cad_pid hostname msgmni panic rtsig-nr shmmni cap-bound hotplug osrelease printk sem sysrq core_uses_pid modprobe ostype random sg-big-buff tainted ctrl-alt-del msgmax overflowgid real-root-dev shmall threads-max domainname msgmnb overflowuid rtsig-max shmmax version mirage-01:/mnt# ls /mnt/igor mirage-01:/mnt# umount /mnt/igo r umount: /mnt/igor: not mounted mirage-01:/mnt# cat /proc/filesystems nodev rootfs nodev bdev nodev proc nodev sockfs nodev tmpfs nodev pipefs ext3 ext2 iso9660 nodev nfs nodev devpts mirage-01:/mnt# find / -name "smbfs*" -print /usr/share/doc/smbfs /usr/doc/smbfs /var/lib/dpkg/info/smbfs.postinst /var/lib/dpkg/info/smbfs.list /var/lib/dpkg/info/smbfs.prerm /var/lib/dpkg/info/smbfs.md5sums mirage-01:/mnt# modprob bash: modprob: command not found mirage-01:/mnt# modprobe modprobe: Nothing to load ??? Specify at least a module or a wildcard like \* mirage-01:/mnt# modprobe * modprobe: Can't locate module igor mirage-01:/mnt# modprobe smbfs modprobe: Can't locate module smbfs mirage-01:/mnt# apt-get install smbfs Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: samba samba-common smbclient swat 5 packages upgraded, 0 newly installed, 0 to r emove and 17 not upgraded. Need to get 6442kB of archives. After unpacking 8192B will be used. Do you want to continue? [Y/n] y Get:1 http://security.debian.org stable/updates/main swat 2.2.3a-12 [589kB] Get:2 http://security.debian.org stable/updates/main smbfs 2.2.3a-12 [900kB] Get:3 http://security.debian.org stable/updates/main smbclient 2.2.3a-12 [1084kB] Get:4 http://security.debian.org stable/updates/main samba 2.2.3a-12 [2789kB] Get:5 http://security.debian.org stable/updates/main samba-common 2.2.3a-12 [1080kB] Fetched 6442kB in 12s (519kB/s) Preconfiguring packages ... (Reading database ... 18808 files and directories currently installed.) Preparing to replace swat 2.2.3a-6 (using .../swat_2.2.3a-12_hppa.deb) ... Unpacking replacement swat ... Preparing to replace smbfs 2.2.3a-6 (using .../smbfs_2.2.3a-12_hppa.deb) ... Unpacking replacement smbfs ... Preparing to replace smbclient 2.2.3a-6 (using .../smbclient_2.2.3a-12_hppa.deb) ... Unpacking repl acement smbclient ... Preparing to replace samba 2.2.3a-6 (using .../samba_2.2.3a-12_hppa.deb) ... Stopping Samba daemons: nmbd smbd. Unpacking replacement samba ... Preparing to replace samba-common 2.2.3a-6 (using .../samba-common_2.2.3a-12_hppa.deb) ... Unpacking replacement samba-common ... Setting up samba-common (2.2.3a-12) ... Setting up samba (2.2.3a-12) ... Starting Samba daemons: nmbd smbd. Setting up swat (2.2.3a-12) ... Setting up smbfs (2.2.3a-12) ... Setting up smbclient (2.2.3a-12) ... mirage-01:/mnt# cat /proc/filesystems nodev rootfs nodev bdev nodev proc nodev sockfs nodev tmpfs nodev pipefs ext3 ext2 iso9660 nodev nfs nodev devpts mirage-01:/mnt# modprobe smbfs modprobe: Can't locate module smbfs mirage-01:/mnt# find / -name "smbfs*" -print /usr/share/doc/smbfs /usr/doc/smbfs /var/lib/dpkg/info/smbfs.postinst /var/lib/dpkg/info/smbfs.list /var/lib/dpkg/info/smbfs.prerm /var/l ib/dpkg/info/smbfs.md5sums /var/cache/apt/archives/smbfs_2.2.3a-12_hppa.deb mirage-01:/mnt# apt-get install smbfs Reading Package Lists... Done Building Dependency Tree... Done Sorry, smbfs is already the newest version. 0 packages upgraded, 0 newly installed, 0 to remove and 17 not upgraded. mirage-01:/mnt# find / -name "*smbfs*" -print /usr/share/doc/smbfs /usr/share/man/man8/mount.smbfs.8.gz /usr/doc/smbfs /sbin/mount.smbfs /var/lib/dpkg/info/smbfs.postinst /var/lib/dpkg/info/smbfs.list /var/lib/dpkg/info/smbfs.prerm /var/lib/dpkg/info/smbfs.md5sums /var/cache/apt/archives/smbfs_2.2.3a-12_hppa.deb mirage-01:/mnt# cat /proc/filesystems nodev rootfs nodev bdev nodev proc nodev sockfs nodev tmpfs nodev pipefs ext3 ext2 iso9660 nodev nfs nodev devpts mirage-01:/mnt# smbmount \\\\kahuna\\igor /mnt/igor -o username=igor Password: ERROR: smbfs filesystem not supported by the kernel Please refer to the smbmn t(8) manual page smbmnt failed: 255 mirage-01:/mnt# smbfs filesystem not supported by the kernel

Thibaut VARENE varenet@esiee.fr
Thu, 6 Feb 2003 14:27:06 +0100


On jeudi, f=E9v 6, 2003, at 14:17 Europe/Paris, Nikolay Semenov wrote:
> Hi there,
>
> Can somebody tell me why I cannot mount smbfs on kernel 2.4.17-32?

With a little less output, everything seems clearer...
> 	ERROR: smbfs filesystem not supported by the kernel
>

(In other words, you have to rebuild your kernel to enable smbfs=20
support.)


Thibaut VARENE
The PA/Linux ESIEE Team
http://pateam.esiee.fr/