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