Samba and Windows

Looks like I have most everything in Suse working for Windows Shares. When I go to a Windows network I can see the share. Problem is that it is asking for a user name and password. From the Windows side, I have tried typing in the share with a backslash and my user name then my password that I normally get into Suse with.

Unfortunately Windows reutrns the fact I am unable to log on. Exactly where do I set up the users which can sign on to the Samba Share?

You have first to create the users in the Linux system then you must run as root this command for each user

smbpasswd -a user1
smbpasswd -a user2
etc…

in the samba share add the following

valid users = user1 user2

this is for security you can also set the users to read only

read list = user1 user2

if you have problem with right the easy way to solve that is adding

force user = user1

where user1 is the owner of the folder.

Linux HOWTOs and Tutorials: Suse Linux 10.0, 10.1 openSUSE 10.2, 10.3, 11.0, 11.1

bookmark this site, it is very usefull to understand how this works and there are several examples for different scenarios.

welcome to the forum

Easgs …

Tnx, it’s hard teaching an old dog new tricks. I’ve sat up and begged Windows for a long time. Now I need to learn to Bark for Suse.

"in the samba share add the following

valid users = user1 user2"

Do you mean in the Yast2 Samba Config, Shares Tab? If so, which available share line do I edit?

Just for additional background for us to better advise you, could you post the contents of the samba config file smb.conf (located at /etc/samba/smb.conf).

you have two options do it directly in the smb.conf file which is located at /etc/samba and edited, what I do is open a file manager as root browse to the file and open it with kwrite, once the file is open search the share you want to edit and add the lines.

In yast open samba server shares tab select the share and edit it you will have to add the valid users and add the users in the text box.

The secret here is to know what each option do in the samba file

Basic.

valid users: list of permited users in the specific share

write list: list of users that have read and write rights in the share

read list: list of users that have only read acces to the share

force user: once connected the user will act as if he is this user.

guest ok = no: no guest allowed

this is an example of how the share may looks like in the smb.conf file.

[sharedfilesname]

path=/home/easgs/sharedfolder
read list =a, b, c
write list =d, e, f
force user=e
guest ok = no
valid users= a, b, c, d, e, f