Don't have write permissions anywhere on samba server

خرید بک لینک

I set up a Raspberry Pi with an exteal hard drive, and we messed something up at first so it was using the SD as storage. I have since moved the directories to the exteal hard drive, and update smb.conf to update the permissions, and now I do not have permission to write anywhere, however I can still read.

# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin

[Shared]
  path = /media/pi/NAS/storage/Shared
  read only = no
  browsable = yes
  writeable = yes
  guest ok = yes
  create mask = 0777
  directory mask = 0777

[user1]
  path = media/pi/NAS/storage/Users/user1
  read only = no
  browsable = yes
  writeable = yes
  guest ok = no
  valid users = user1 pi

[user2]
  path = media/pi/NAS/storage/Users/user2
  read only = no
  browsable = yes
  writeable = yes
  guest ok = no
  valid users = user2 pi

[Oliver]
  path = /media/pi/NAS/storage/Users/Oliver
  read only = no
  browsable = yes
  writeable = yes
  guest ok = no
  valid users = pi

[user3]
  path = media/pi/NAS/storage/Users/user3
  read only = no
  browsable = yes
  writeable = yes
  guest ok = no
  valid users = user3 pi

As I said before, the user pi can see all of these folders and their contents, but cannot write.

df -h retus this:

Filesystem      Size  Used Avail Use% Mounted on
/dev/root        15G  4.7G  8.9G  35% /
devtmpfs        459M     0  459M   0% /dev
tmpfs           463M     0  463M   0% /dev/shm
tmpfs           463M  6.6M  457M   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           463M     0  463M   0% /sys/fs/cgroup
/dev/mmcblk0p1   63M   21M   43M  33% /boot
tmpfs            93M     0   93M   0% /run/user/1000
/dev/sda5       874G  1.2G  826G   1% /media/pi/NAS

I am new to this, so don't expect me to understand much!

Any help is very much appreciated. Thank you!

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 179 تاريخ: پنجشنبه 6 خرداد 1395 ساعت: 6:35

صفحه بندی