The important thing to grasp here is that Windows uses encrypted passwords.
I assume that you already have samba installed and running on your system. First, create a
smb.conffile. On my system, it lives in the
/etc/sambadirectory. In my case, the username is
[global] workgroup = SIMPLE security = user encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd [admin] comment = %U home directory writeable = yes valid users = admin path = %H
Next, create the
adminuser on the server using whatever means you ordinarily use to create new users. This is so the home directory,
Then you have to ensure that samba knows that the user "
admin" exists and what its password is. Samba's username/password database is stored in the file
smbpasswd. Run the
smbpasswdcommand with the
-aparameter to add
adminas a user to samba's user database:
# smbpasswd -a admin New SMB password:
Type in, and retype, the same password that you used when you created
adminas a Unix user.
Then restart the samba server. On openSUSE, I do:
# rcsmb restart Shutting down Samba SMB daemon done Starting Samba SMB daemon done
Next, try browsing to
smb://samba-server/adminon Unix or
\\samba-server\adminon Windows. It should ask for the username/password and then give you read/write access to
admin's home directory on the server.