OESF Portables Forum
Everything Else => Desktop Operating Systems Issues => Zaurus General Forums => Archived Forums => Linux Issues => Topic started by: jeffbarish on March 19, 2005, 11:30:10 am
-
I would like to mount my Zaurus on my linux desktop. I use the command
mount -t smbfs //192.168.129.201/home/zaurus /mnt/zaurus
and get the message
Error connecting to 192.168.129.201 (Connection refused)
6225: Connection to 192.168.129.201 failed
SMB connection failed
I suspect that I have to modify a file on the Zaurus identifying my linux desktop so that the smb server knows to permit the mount, but I can't find such a file. I found /home/root/usr/lib/samba/smb.conf, but I don't see anything relevant in there.
-
I get this same when doing this not logged in as root.
Use SU first and see what happens
Also what ROM and interface are you using?
-
I was logged in as root.
I am using the standard Sharp ROM. I am connecting over usbnet.
I just tried
mount -t smbfs //192.168.129.201/home/zaurus /mnt/zaurus -o username=root
That command produces
Anonymous login successful
6780: tree connect failed: ERRSRV - ERRinvnetname (Invalid network name in tree connect.)
SMB connection failed
-
Can you dump your Zs SMB.CONF in the post. also your Zs /etc/inetd.conf
Might just be a line in either needs un-reming.
-
Both files are in their default state. Here is smb.conf:
[global]
# workgroup is either a domain name or a workgroup name
workgroup = WORKGROUP
log file = /dev/null
#
# encrypt passwords is required for Win98, NT and Windows 2000
#
encrypt passwords = yes
coding system = utf8
client code page = 932
force create mode = 0755
strict sync = yes
sync always = yes
interfaces = usbd0
# wins support = yes
bind interfaces only = yes
[system]
comment = System Folder
path = /root/samba
read only = no
browseable = no
guest ok = yes
force user = root
[home]
comment = for User Data
path = /home/samba
short preserve case = no
read only = no
guest ok = yes
force user = zaurus
And here is inetd.conf:
#
# inetd.conf This file describes the services that will be available
# through the INETD TCP/IP super server. To re-configure
# the running INETD process, edit this file, then send the
# INETD process a SIGHUP signal.
#
# Version: @(#)/etc/inetd.conf 3.10 05/27/93
#
# Authors: Original taken from BSD UNIX 4.3/TAHOE.
# Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
#
# Modified for Debian Linux by Ian A. Murdock <imurdock@shell.portal.com>
#
# Modified for RHS Linux by Marc Ewing <marc@redhat.com>
#
# Further modified by Olaf Kirch <okir@caldera.com> for Caldera Open Linux
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
# Echo, discard, daytime, and chargen are used primarily for testing.
#
# To re-read this file after changes, just do a 'killall -HUP inetd'
#
# Note: builtin UDP services now silently drop packets from ports < 512.
#echo stream tcp nowait root internal
#echo dgram udp wait root internal
#discard stream tcp nowait root internal
#discard dgram udp wait root internal
#daytime stream tcp nowait root internal
#daytime dgram udp wait root internal
#chargen stream tcp nowait root internal
#chargen dgram udp wait root internal
#time stream tcp nowait root internal
#time dgram udp wait root internal
#
# These are standard services.
#
### With tcpd (TCP Wrapper) ###
#ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd -l -a
#telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
### Without tcpd (TCP Wrapper) ###
#ftp stream tcp nowait root /usr/sbin/in.ftpd -l -a
#telnet stream tcp nowait root /usr/sbin/in.telnetd
#
# Mail and news
#
# Do not uncomment either unless you *really* know what you are doing.
# Both are started as standalone daemons from the /etc/rc.d scripts.
#smtp stream tcp nowait root /usr/bin/smtpd smtpd
#nntp stream tcp nowait root /usr/sbin/tcpd in.nntpd
#
# Shell, login, exec and talk are BSD protocols.
#
#shell stream tcp nowait root /usr/sbin/tcpd in.rshd
#login stream tcp nowait root /usr/sbin/tcpd in.rlogind
#exec stream tcp nowait root /usr/sbin/tcpd in.rexecd
#talk dgram udp wait nobody.tty /usr/sbin/tcpd in.talkd
#ntalk dgram udp wait nobody.tty /usr/sbin/tcpd in.ntalkd
#dtalk stream tcp wait nobody.tty /usr/sbin/tcpd in.dtalkd
#
# Pop and imap mail services et al
#
#pop2 stream tcp nowait root /usr/sbin/tcpd ipop2d
#pop3 stream tcp nowait root /usr/sbin/tcpd ipop3d
#imap stream tcp nowait root /usr/sbin/tcpd imapd
#
# The Internet UUCP service.
#
#uucp stream tcp nowait uucp /usr/sbin/tcpd /usr/sbin/uucico -l
#
# Tftp service is provided primarily for booting. Most sites
# run this only on machines acting as "boot servers." Do not uncomment
# this unless you *need* it.
#
#tftp dgram udp wait root /usr/sbin/tcpd in.tftpd
#bootps dgram udp wait root /usr/sbin/tcpd bootpd
#
# This is for the finger service
#
#finger stream tcp nowait root /usr/sbin/tcpd in.fingerd
#
# Finger, systat and netstat give out user information which may be
# valuable to potential "system crackers." Many sites choose to disable
# some or all of these services to improve security.
#
#systat stream tcp nowait nobody /usr/sbin/tcpd /bin/ps -auwwx
#netstat stream tcp nowait nobody /usr/sbin/tcpd /bin/netstat --inet
#
# Authentication
#
#auth stream tcp nowait root /usr/sbin/tcpd in.identd
#
# End of inetd.conf
ftp stream tcp nowait root /usr/sbin/ftpd -a
-
smb.conf looks more or less the same as mine although my inetd.conf has
# samba
netbios-ssn stream tcp nowait root /usr/sbin/tcpd /usr/sbin/smbd
netbios-ns dgram udp wait root /usr/sbin/tcpd /usr/sbin/nmbd
in it which I thought was to allow windoze to connect but might also effect smb. Can you mount from the Z to you PC ?
-
Sticking those lines into my inetd.conf had no effect. I am not able to mount my desktop system on the Zaurus. In fact, I am not able even to ping the desktop system (network unreachable).
-
Do you have any firewall services running on your PC ?
-
No.
-
Can you ping your Z from the PC?
-
Yes. Also ftp and VNC.
-
Check your log files in /var/smb to see if the messages help you.
I had a problem mounting my SL6000 to my XP box at work. The error that I was getting was that the name for my Zaurus' name in my /etc/hosts file. When browsing over USB, the XP box is 192.168.129.1 and the Zaurus is 92.168.129.201 so I had to add an entry in /etc/hosts to mapped the 201 IP to my Zaurus's name.
-
smb.conf looks more or less the same as mine although my inetd.conf has
# samba
netbios-ssn stream tcp nowait root /usr/sbin/tcpd /usr/sbin/smbd
netbios-ns dgram udp wait root /usr/sbin/tcpd /usr/sbin/nmbd
in it which I thought was to allow windoze to connect but might also effect smb. Can you mount from the Z to you PC ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=71436\"][{POST_SNAPBACK}][/a][/div]
The seperation between the parameters on these lines MUST be via TAB and not whitespace.
You must then either reboot your Z or from su..
killall -HUP inetd
this causes the inetd superserver to reload the file.
If you find that inetd has completely stopped then it's probably due to a misformatting in the file. Check for TABS and not whitespace between the parameters.
PS I'm assuming that this is over a USB network. If not then you need to make sure the interface (on the Z) is listed on the interfaces line in /usr/lib/samba/smb.conf otherwise Samba will refuse the connection.
Oh yes and you can see the shares on the server prior to mounting with...
smbclient -L servername
- Andy
-
I may be confused in some cases about which platform your suggestions apply to. I checked /var/log/samba/log.smbd on the desktop system (the client) and /var/smb/log.smb on the Zaurus (the server). They are both empty. I already have an entry in /etc/hosts on the client for the Zaurus. It permits me to ping the Zaurus. I tried making an entry in /etc/hosts on the Zaurus for the client, but that change had no effect.
I tried entering the two lines about netbios-ssn and netbios-ns using tabs instead of whitespace. I then issued the killall command. I was still unable to mount the Zaurus. I tried running the smbclient command on the Zaurus (the server), but there is no smbclient command on the Zaurus. And yes, I am connecting over usbnet. I tried changing the line in smb.conf to "interfaces = usb0" (rather than usbd0), but that change had no effect. Yes, inetd is running.
The error message is back to connection refused even though I am still specifying root as the user.
I appreciate all the suggestions. I hope that there will be others as I am stymied.
-
....
I tried entering the two lines about netbios-ssn and netbios-ns using tabs instead of whitespace. I then issued the killall command. I was still unable to mount the Zaurus. I tried running the smbclient command on the Zaurus (the server), but there is no smbclient command on the Zaurus. And yes, I am connecting over usbnet. I tried changing the line in smb.conf to "interfaces = usb0" (rather than usbd0), but that change had no effect. Yes, inetd is running.
....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=71564\"][{POST_SNAPBACK}][/a][/div]
OK firstly change the usb0 back to usbd0 that wasn't a typo as is important.
ps -ef | grep inetd
Does that acually return that inetd is running or just show the ps command?
If inetd is not running then there is still a formatting problem on the inetd.conf
smbclient -L is a Linux desktop command... try using that to list the shares on the Z.
-
/usr/sbin/inetd appears in the output of ps -ef.
smbclient -L produces the following output:
added interface ip=192.168.1.102 bcast=192.168.1.255 nmask=255.255.255.0
added interface ip=192.168.129.1 bcast=192.168.129.255 nmask=255.255.255.0
Password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.0.7-ja-2.2]
Sharename Type Comment
--------- ---- -------
home Disk for User Data
IPC$ IPC IPC Service (Samba 2.0.7-ja-2.2)
Server Comment
--------- -------
ZAURUS Samba 2.0.7-ja-2.2
Workgroup Master
--------- -------
WORKGROUP
I am again getting the message "Invalid network name in tree connect" when I run the mount command.
-
Problem solved.
It is necessary to mount a share, not a directory. According to smbclient -L zaurus, home is a share, not home/zaurus (which is what I had specified in the mount command). When I specified home in the mount command, it worked:
mount -t smbfs //192.168.129.201/home /mnt/zaurus -o password=""
Note that it was not necessary to add any lines to smb.conf (nor to change it from the default in any other way).
I am still troubled that ping <client> from the Zaurus produces the error message "Network is unreachable". Any idea what that's about?
Thanks to everyone for the advice.
-
As I said if you are using wlan or other interfaces you would need to modify the interface = line as follows...
interfaces = usbd0, wlan0, eth0
(this adds wlan0 and eth0)... for usb only then the default should be find.
What exactly are you trying to ping? Can you not ping your Linux system? (on the IP address assigned to the USB interface)
-
Ah, I see what you mean. I was using the IP address assigned to eth0, which is not the interface to the Zaurus. When I use the IP address assigned to that interface (usb0), pinging the Linux box from the Zaurus works fine. Thanks again. I'm rolling now.