I have a Win7 Ultimate x64 and Suse 11.2 x64 system.
I’m trying to connect to linux shares from windows, but the credentials are not accepted. I notice in the login window it says
Access Denied before I even enter a username.
All the samba shares are enabled and visible from windows.
In win7 I set send unencrypted psswd to 3rd party smb servers and send LM NTLM and use NTLMv2 if negotiated.
if i understand this correctly, i need to create a new user and then use smbpasswd to create a password? i thought i could just use existing linux user accounts?
When you create a user in Linux, most info is stored in /etc/passwd, except the passwords which are stored in /etc/shadow
Samba uses these users but cannot use these passwords, so you have to create them separately using smbpasswd.
If your users only have to use the server as a samba user, there is no need to have 2 seperate password backends, in that case you only create the passwords using smbpasswd.
If both are needed you are (if you have more than a handfull of users) better of storing user and password info in ldap. This is where SUSE shines IMHO because YaST has some pretty need tooling to make this happen.
>
> if i understand this correctly, i need to create a new user and then use
> smbpasswd to create a password? i thought i could just use existing
> linux user accounts?
>
>
klandafu;
You do not need to create any special users. All valid Linux users can be
Samba Users. However, as joostvanrooij as noted, you need to create a Samba
password. In a terminal window enter:
su
smbpasswd -a <username>
In the above <username> must be a valid Linux user, the password you assign
with smbpasswd need not be the same as their login password ( but can be if
you want).
By default Windows will pass the username/password of the Windows user to the
server first. These means that it’s a bit easier if the Windows
username/password pair matches the Samba username/password pair.
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
>
> smbpasswd works fine, and I can login as expected.
> However, I cannot get ldap to work.
>
> I’ve tried with and without tls.
> The gui seems straight forward, so I’m at a loss.
>
>
klandafu;
Linux and Windows use different encryption for their passwords and your ldap
needs to contain both a linux password and a windows password. They can be
the same but they are saved separately with different encryption.