Nov 5, 2017

Sửa lỗi không thể Write trong Samba Linux



Nếu bạn đã cấu hình file /etc/samba/smb.conf cho phép user write vào thư mục mà vẫn không write được.
Example:
 [Share] 
 comment = momment here 
 path = /u01/share 
 browseable = yes 
 guest ok = yes 
 guest account = nobody 
 writeable = yes 

Lỗi ở đây do linux chưa cho phép samba write. Khắc phục bằng cách set lại thông số setsebool samba_export_all_rw = 1.
setsebool -P samba_export_all_rw=1

Tham khảo: 

https://www.centos.org/forums/viewtopic.php?t=5234
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Managing_Confined_Services/sect-Managing_Confined_Services-Samba-Booleans.html

No comments:

Post a Comment