NullZer0 Registered User
#1

Ok, I beg you dont flame me! - I know I have posted problems on this before.

I just felt that I might get a better response if I post a more detailed description.

Here goes!


I am trying to share files between my Ubuntu Linux and Mac OS X.

Ubuntu is running on VMWARE - (Virtual Machine).

I have installed Samba -

Created a samba password using:


sudo smbpasswd -a <username> 


The username I used was Shane. So I typed:

sudo smbpasswd -a shane


I then added this user to the smbusers file:

sudo vi /etc/samba/smbusers


This is the format I entered it in:

administrator = "shane"


I assume the above maps the ubuntu user "administrator" to the samba user Shane?

For testing purposes I am using the password "support"

I have configured the shared home directories as expected.

On the mac:

Finder -> GO -> Connect to server
I enter the details in the image below.



Then there is a pause when connecting like so:



I am then presented with this window:



I change the fields (using the password "support") like so:



I click connect and this is what I get :




If anyone has any suggestions I would appreciate hearing them.
If anyone has spotted that I have done something wrong it would be a great help to point it out.


I think I should add that I am using Ubuntu Server with no GUI (Command Line Only).

Rambo Registered User
#2

check that you can ping the mac computer from Ubuntu computer
check iptables (firewall) is off while testing on the ubuntu computer

We need to see the smb.conf file

in the smb.conf most people forget to but in the netbios name
of the computer
Example:
netbios name = <computername>


you will need to setup a share point on the ubuntu box
here a simple one to share out my Linux Docs
example:

[LinuxDocs]
comment = Redhat Linux Docs
path = /home/Linux/Doc
read only = yes
browseable = yes


to access this share I would type smb://computername/LinuxDocs

niallb Registered User
#3

Excellent description of what you're seeing.

Run the command 'testparm' on the ubuntu server.
It'll dump out some details on your samba setup,
and also tell you if there's any errors.
Posting the output up here would help again.
It'll be a lot shorter than your smb.conf, and will contain
all of your active configuration.

You shouldn't need the line administrator = shane in smbusers.
It may be the source of your woes!
What it means is that if a connection is made by someone called 'shane',
they should be given the shares visible to a user called 'administrator'.
Do you have an ubuntu user called 'administrator' and do they have a home
directory you want to connect to?

Check is MSHOME actually the workgroup name of the samba server (testparm will tell you under [global]).

Make sure as Rambo says your firewall is off until you have it working.
iptables-save is a good command to show what's active in an iptables setup.

Red Alert Hosted Moderator
#4

In Ubuntu you need the admin set. The catch is that admin then writes the files as root. So you can't delete them from your own home dir. The solution is to make an account like smbadmin to do things like adding machines to the domain (if you use that feature).

NullZer0 Registered User
#5

Hey everyone,

Thanks for the replies.

I'm at work at the moment so I'm going to check it out when I get home and post any more relative information that I can get.


I have posted this on the Mac forum also as I am connecting from Mac.

However, the problem is more than likely my configuration on the Ubuntu side.

Want to share your thoughts?

Login here to discuss!