Article 57A8G Samba only works for sudo's

Samba only works for sudo's

by
riddertommie
from LinuxQuestions.org on (#57A8G)
I'm banging by head on the table ant can not find it.

I'm using ubuntu 20 and a have the following samba.conf

[global]
unix charset = UTF-8
workgroup = WORKGROUP
security = user
interfaces = 127.0.0.0/8 192.168.2.0/24 enp2s0
host allow = 192.168.2.0/24
host deny = ALL
acl allow execute always = Yes
allow insecure wide links = yes
veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/._*/
delete veto files = yes

[raid0]
path = /mnt/raid0
valid users = user1
comment = Raid5
browseable = yes
writeable = no
printable = no
guest ok = no
read only = no
create mask = 777

[user2]
path = /mnt/raid0/Users/user2
valid users = user2
comment = Homedir user2
browseable = yes
writeable = yes
printable = no
guest ok = no
read only = no
create mask = 777

User1 who has sudo rights and can acces everything but user2 cant acces anything.

/mnt/raid0/Users/user2 > drwxrwx--- 2 1002 1002 4096 May 13 15:55 user2

I don't think its a problem with the directory rights but with the rights of the drive or the mount, but i cant find what it is

/etc/fstabs > /dev/md0 /mnt/raid0 ext4 defaults 0 0

Any tips? hints?

Thanks!latest?d=yIl2AUoC8zA latest?i=JCmnmxD44uY:Mz2baqUuiLQ:F7zBnMy latest?i=JCmnmxD44uY:Mz2baqUuiLQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=JCmnmxD44uY:Mz2baqUuiLQ:gIN9vFwJCmnmxD44uY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments