Sharing files between Ubuntu and Vista

G

Gordon

I am trying to be able to share files and folders between two machines -
one running Vista Home Premium SP1 and the other running Ubuntu 8.04
Both machines can see each other but I can't seem to get the sharing
right either way!
Both machines have the same User set up with the same password.
The Vista machine has the built-in Vista firewall only, the Ubuntu has
no firewall set as AFAIK.
I've added the directory I want to share on Ubuntu to Samba, and I've
added the User to the Public folder in Vista but no joy.
Any suggestions on what I should do next?
 
M

Malke

Gordon said:
I am trying to be able to share files and folders between two machines -
one running Vista Home Premium SP1 and the other running Ubuntu 8.04
Both machines can see each other but I can't seem to get the sharing
right either way!
Both machines have the same User set up with the same password.
The Vista machine has the built-in Vista firewall only, the Ubuntu has
no firewall set as AFAIK.
I've added the directory I want to share on Ubuntu to Samba, and I've
added the User to the Public folder in Vista but no joy.
Any suggestions on what I should do next?
Part 1 - Samba setup:

1. On Windows boxen, make sure all accounts are properly named (no damned
spaces) and there are no null passwords. Configure any firewalls to allow
lan traffic.

2. On Linux, create identical user account/passwords with your distro's
configuration method.

3. Make sure you've installed Samba server/client with your distro's
configuration method.

4. Configure run levels so that the nmb and smb daemons start at bootup.

5. Now add your users to Samba. Make these match the ones on Windows. I
think the easiest way is from the console, so open one, su to root, and
type:
smbpasswd -a username [enter]
(enter password)
(enter password again)

(IIRC, Ubuntu uses sudo and your user password instead of grownup Linux
handling of root. You'll need to check.)

6. Go to your distro's configuration method and set your Samba server and
client Identity to match your Windows Workgroup name.

7. I use KDE, so if you use Gnome or another window manager you'll need to
figure this next bit out yourself. Open up the Control Center and go to
Internet/Network and then Samba. Click on the Administrator Mode (enter
root password). I use User security level. Check to make sure Shares (these
are for the Linux box of course) are the way you want them. Apply and close
that part.

8. Click on File Sharing and enable Administrator Mode. Check "Enable local
network file sharing". I have mine set on "Advanced sharing". Check the box
for "Use Samba" rather than NFS.

Part 2 - Fix Vista to work with Samba:

Vista Business/Ultimate only -
Start Orb>Search box>type: secpol.msc
When secpol.msc appears in Results above, right-click it and "run as
administrator".

Click on "Local Policies" --> "Security Options"

Navigate to the policy "Network Security: LAN Manager authentication level"
and double-click it to get its Properties. By default Windows Vista sets
the policy to "NTVLM2 responses only". Use the drop-down arrow to change
this to "LM and NTLM ? use NTLMV2 session security if negotiated".

In Vista Home Premium, you won't have this tool so per MVP Steve Winograd,
do:

Start Orb>Search box>type: regedit
When regedit appears in the Results above, right-click it and "run as
administrator"

Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa

1. If it doesn't already exist, create a DWORD value named
LmCompatibilityLevel
2. Set the value to 1 and reboot.

Malke
 
M

Moog

Gordon illuminated alt.os.linux.ubuntu by typing:
I am trying to be able to share files and folders between two machines -
one running Vista Home Premium SP1 and the other running Ubuntu 8.04
Both machines can see each other but I can't seem to get the sharing
right either way!
Both machines have the same User set up with the same password.
The Vista machine has the built-in Vista firewall only, the Ubuntu has
no firewall set as AFAIK.
I've added the directory I want to share on Ubuntu to Samba, and I've
added the User to the Public folder in Vista but no joy.
Any suggestions on what I should do next?

Easy setup

1) Install samba and smbtools
2) Edit the configuration file from a terminal using the command
$ gksudo gedit /etc/samba/smb.conf
3) Look for the lines
# Change this to the workgroup/NT-domain name your Samba server will
# part of
workgroup = WORKGROUP

Replace "Workgroup" with the domain of the windows machine (This is
usually MS_HOME, but check on your windows box by right clicking the
"My computer" Icon and selecting properties)
4) Save the file
5) Restart samba by issueing the following command in a terminal
$ sudo /etc/init.d/samba restart (NOTE: You may need to restart linux
- this will depend on your configuration)

That's it.

You should then be able to share folders from Ubuntu by right clicking
the folder and selecting "sharing options" and setting your required
options.

You should be able to view all you windows shares from
Places -> Network -> Windows Networks -> "YOUR DOMAIN")

If you need anything more complex due to not having a firewalled
Router then please ask.
 
B

Bill Bonde { No matter what happens, it's caused b

Moog said:
Gordon illuminated alt.os.linux.ubuntu by typing:

Easy setup

1) Install samba and smbtools
2) Edit the configuration file from a terminal using the command
$ gksudo gedit /etc/samba/smb.conf
3) Look for the lines
# Change this to the workgroup/NT-domain name your Samba server will
# part of
workgroup = WORKGROUP

Replace "Workgroup" with the domain of the windows machine (This is
usually MS_HOME, but check on your windows box by right clicking the
"My computer" Icon and selecting properties)
4) Save the file
5) Restart samba by issueing the following command in a terminal
$ sudo /etc/init.d/samba restart (NOTE: You may need to restart linux
- this will depend on your configuration)

That's it.
That's it and you will see your XP shares in your Ubuntu?


You should then be able to share folders from Ubuntu by right clicking
the folder and selecting "sharing options" and setting your required
options.

You should be able to view all you windows shares from
Places -> Network -> Windows Networks -> "YOUR DOMAIN")

If you need anything more complex due to not having a firewalled
Router then please ask.

--
He and Evie soon fell into a conversation of the "No, I didn't;
yes, you did" type--conversation which, though fascinating to those
who are engaged in it, neither desires nor deserves the attention
of others.
-+E.M. Forster, "Howards End"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top