Samba server - folder access

Hi, I am trying to set up Samba server to share data.

I use oS 12.2 and setting via Yast.

I set shared folder for “users” /home/Martin
Also checked that all users can share their home folders, group is set to users in Identity card is Primary (PDC). The rest is default.

“Martin” is assigned to group “users”.

And now via Dolphin I can see the folders but if I want to open there I am asked for log and pass but I am not able to enter via root, not even Martin.

What is wrong? What password should be set and where?

Thank you,

Martin

Hi atilius,

I think this thread should be in Network/Internet. May an admin move it there please? :slight_smile:

Samba authentication is managed separately from your system. You can add a Samba user called Martin using:


# smbpasswd -a Martin

You will have to set a password. This is the password which will give you access to /home/Martin.

smbpasswd -a Martin

You will have to set a password. This is the password which will give you access to /home/Martin.

Hi, thank you for your help. When I have an access to the PC, I test it. Anyway, is there any way how to set the password via Yast? Seems to me strange I can set Samba in Yast but such important thing only via cmd line. I can do it, no problem, but it is strange workflow (at least for me :slight_smile: ).

Thank you,

Martin

This thread will be moved to Network/Internet.

CLOSED for the moment.

Moved from Applications and open again.

You are welcome ;).

…]

Anyway, is there any way how to set the password via Yast? Seems to me strange I can set Samba in Yast but such important thing only via cmd line. I can do it, no problem, but it is strange workflow (at least for me :slight_smile: ).

Thank you,

Martin

I’m not sure about this, but I think you can easily manage Samba users with a LDAP backend from YaST “User and Group Management” in the “Security and Users” section. I have a Samba PDC with a tdbsam backend and I have no YaST module for Samba user management.

There is a case for implementing smbpasswd in Yast. But tell me, did using smbpasswd solve the problem for you?