File sharing between Ubuntu 9.10 and Mac 10.4

Asked by Kent McNaughton

I'm having trouble setting up file sharing between two (soon to be three) Ubuntu boxes and my iMac running OS X 10.4. Selecting Places -> Network and then double-clicking on Windows Network gives me an "Unable to mount location" error. Setting up sharing from the Mac's System Preferences -> Sharing window indicates sharing is on, but I can't see the Mac in the Network File Browser window. The Mac doesn't have an nfs manpage, nor an /etc/exports file nor an exportfs command--indicating no NFS capability?

A mount command using the Mac hostname as the remote system gives the error "mount.nfs: DNS resolution failed for chipita: No address associated with hostname." Though I can ping the other Ubuntu systems from any Ubuntu system and I can ping them going the other way from the Mac, I can't ping the Mac from either. Hmmm.

Are there command line fixes for these problems? I'm frustrated with the GUIs.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu yelp Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you ping between the systems using their IPs?

You can define shares using the contents of /etc/samba/smb.conf on the ubuntu boxes. You can share the folders using samba which is accessible by both OSes.

Revision history for this message
Kent McNaughton (kent-panamanow) said :
#2

I cannot ping the iMac from the Ubuntu boxes using the iMac's IP address. From the iMac, I can ping both Ubuntu boxes. How do I find out if ICMP traffic is blocked on the iMac?

The intent is to simply allow both kent and phyllis users to access their /home, /home/user/Documents and /home/user/Music directories on the iMac (HOSTNAME = chipita).

Running "testparm -s /etc/samba/smb.conf" seems to validate that the syntax is OK. I noticed there is no [homes] section. Should there be?

Following is the smb.conf file on one of the Ubuntu boxes.

# Samba config file created using SWAT
# from UNKNOWN (N)
# Date: 2010/01/19 21:52:38

[global]
 server string = %h server (Samba, Ubuntu)
 map to guest = Bad User
 obey pam restrictions = Yes
 pam password change = Yes
 passwd program = /usr/bin/passwd %u
 passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
 unix password sync = Yes
 syslog = 0
 log file = /var/log/samba/log.%m
 max log size = 1000
 dns proxy = No
 usershare allow guests = Yes
 panic action = /usr/share/samba/panic-action %d

[printers]
 comment = All Printers
 path = /var/spool/samba
 create mask = 0700
 printable = Yes
 browseable = No
 browsable = No

[print$]
 comment = Printer Drivers
 path = /var/lib/samba/printers

[//chipita]
 path = /home/kent
 read only = No
 guest ok = Yes

[phyllis]
 path = /home/phyllis
 guest ok = Yes

[Documents]
 path = /home/phyllis/Documents
 read only = No
 guest ok = Yes

[Music]
 path = /home/phyllis/Music
 read only = No
 guest ok = Yes

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#3

The thing in the brackets is the share name so unless you want a folder shared as home you dont need a [home] entry.

if you can, can you run:

smbtree

on the mac. You could also try nmap on the mac to see if the host can be found. I am not familiar with mac so am not sure how to check icmp is disabled or not. You may want to look into that. You could also try using the full path to the share name in a mapped network drive (if mac supports it)

I suggest you post this on a mac forum too as it is hard to support mac here.

Revision history for this message
Kent McNaughton (kent-panamanow) said :
#4

Thanks actionparsnip, that solved my question.

Revision history for this message
Kent McNaughton (kent-panamanow) said :
#5

Thank you actionparsnip. The problem does seem to be with the mac. Though, smbtree from the mac doesn't register one Ubuntu box, though it does the other. I downloaded nmap on all machines and ran it from the Ubuntu boxes. Seems ICMP is blocked. I'll look into this and post on one of the mac forums. Again thank you. Great tip on nmap!