Newbie question: Samba and access rights?
Posted: 2020/05/03 06:22:13
Hi!
I have what is probably a really newbie problem with sharing folders with Samba.
I am trying to share a raid on my Centos machine with the Windows clients in the house.
I (hopefully correctly?) mounted the disk like this:
I have gotten to the point where I can see the Centos machine in windows, it displays a folder named Anonymous, but I do not have the rights to access it.
I have followed the guide at:
https://www.linuxtechi.com/install-conf ... -centos-8/
My /etc/samba/smb.conf:
I have done this thing, as instructed in the guide:
Any help would be greatly appreciated!
Thanks!
I have what is probably a really newbie problem with sharing folders with Samba.
I am trying to share a raid on my Centos machine with the Windows clients in the house.
I (hopefully correctly?) mounted the disk like this:
Code: Select all
mount /dev/sdb /srv/samba/shared
I have followed the guide at:
https://www.linuxtechi.com/install-conf ... -centos-8/
My /etc/samba/smb.conf:
Code: Select all
[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = centos-8
security = user
map to guest = bad user
dns proxy = no
[Anonymous]
path = /srv/samba/shared
browsable =yes
writable = yes
guest ok = yes
read only = no
Code: Select all
$ sudo chmod -R 0755 /srv/samba/shared
$ sudo chown -R nobody:nobody /srv/samba/shared
$ sudo chcon -t samba_share_t /srv/samba/shared
Thanks!