Accessing Linux shared directories in Windows Vista
Accessing Linux shared directories in Windows Vista
A Windows Vista machine couldn’t access shared resources on the Linux box by default. WHY? Here is the reason
There are two possible reasons why a Vista user can’t connect to a Linux share:
1. Windows Vista changes the authentication method for password-protected shares. In XP and previous versions of Windows, the system by default used two password hashes, the old-style LAN Manager (LM) and the newer NTLM version 2 (NTLMv2). Older versions of the Samba server in Linux use only the LM hash, which means they have no trouble connecting to previous versions of Windows operating systems but will fail when trying to connect to a Windows Vista machine. If we log on in to a Linux box through Windows Vista, Vista will always report that the supplied user credentials are wrong, even if the right credentials are supplied !!. What might be Wrong? Is it the problem with the Linux Box or Vista ????
In order to fix this , either you need to update the version of Samba on the Linux machine to 3.0.22 or higher or downgrade Vista’s authentication to accept LM hashes, using either Local Security Policy Manager or a registry edit.
USING LOCAL SECURITY POLICY MANAGER
Now Windows Vista will be able to view network drives based on Samba servers and should fix any issues around using Samba as a Primary Domain Controller.
METHOD 2
Get Samba configured on the Linux machine. In my case, the samba-common package was installed and was at the correct revision (3.0.22–1). From a Terminal window, you need to add a Samba user and password. Windows users are accustomed to having file sharing and authentication handled using the credentials for their user account, but with a Samba server the databases are different. The syntax, is absolutely straightforward:
sudo smbpasswd -a username
In this command, username is the same as my account name. You can create an account for another user as long as they already exist in the user account database.
(Note that you have to respond to three password prompts at this point. The first is for the root password of the logged-on user, and the next two set the SMB password for the user whose account you’re adding.)
After going through these steps, you could be able to access shared folders on the Linux machine.[img][/img][img][/img]
There are two possible reasons why a Vista user can’t connect to a Linux share:
1. Windows Vista changes the authentication method for password-protected shares. In XP and previous versions of Windows, the system by default used two password hashes, the old-style LAN Manager (LM) and the newer NTLM version 2 (NTLMv2). Older versions of the Samba server in Linux use only the LM hash, which means they have no trouble connecting to previous versions of Windows operating systems but will fail when trying to connect to a Windows Vista machine. If we log on in to a Linux box through Windows Vista, Vista will always report that the supplied user credentials are wrong, even if the right credentials are supplied !!. What might be Wrong? Is it the problem with the Linux Box or Vista ????
In order to fix this , either you need to update the version of Samba on the Linux machine to 3.0.22 or higher or downgrade Vista’s authentication to accept LM hashes, using either Local Security Policy Manager or a registry edit.
USING LOCAL SECURITY POLICY MANAGER
1. Open the run command and type "secpol.msc"
2. Press "continue" when prompted
3. Click on "Local Policies" --> "Security Options"
4. Navigate to the policy "Network Security: LAN Manager authentication level" and open it.
5. By default Windows Vista sets the policy to "NTVLM2 responses only". Change this to "LM and NTLM – use NTLMV2 session security if negotiated"
2. Press "continue" when prompted
3. Click on "Local Policies" --> "Security Options"
4. Navigate to the policy "Network Security: LAN Manager authentication level" and open it.
5. By default Windows Vista sets the policy to "NTVLM2 responses only". Change this to "LM and NTLM – use NTLMV2 session security if negotiated"
Now Windows Vista will be able to view network drives based on Samba servers and should fix any issues around using Samba as a Primary Domain Controller.
METHOD 2
Get Samba configured on the Linux machine. In my case, the samba-common package was installed and was at the correct revision (3.0.22–1). From a Terminal window, you need to add a Samba user and password. Windows users are accustomed to having file sharing and authentication handled using the credentials for their user account, but with a Samba server the databases are different. The syntax, is absolutely straightforward:
sudo smbpasswd -a username
In this command, username is the same as my account name. You can create an account for another user as long as they already exist in the user account database.
(Note that you have to respond to three password prompts at this point. The first is for the root password of the logged-on user, and the next two set the SMB password for the user whose account you’re adding.)
After going through these steps, you could be able to access shared folders on the Linux machine.[img][/img][img][/img]
Venkatesh- Posts: 1
Join date: 2007-12-22
Permissions of this forum:
You cannot reply to topics in this forum



