Samba user with read only

hi. How can I activated second samba user to the same access like DietPi user but only with read read permission?

You need to adjust your smb.conf to something like following

	comment = DietPi Share
	path = /mnt/dietpi_userdata
	browseable = yes
	create mask = 0664
	directory mask = 0775
	valid users = dietpi, user2
	read only = yes
	write list = dietpi
	max connections = 1

Basically got the idea from Samba share for two users, with one user as read-only - Network and Wireless Configuration - OpenWrt Forum

1 Like