我遇到了麻煩,允許普通用戶訪問samba安裝。我可以以root身份訪問安裝點,但常規用戶會得到「權限被拒絕」錯誤。Samba - 安裝 - 用戶權限
- 服務器上的Android CM10.1.3運行,桑巴v3.0.20a(桑巴Fileshearing應用,打造:140525)
- 客戶端運行Fedora 20,桑巴客戶端v4.1.6
這裏是mount命令:
sudo mount -t cifs -o credentials=/home/david/.sambacredentials,sec=ntlm,uid=david,gid=david,file_mode=0775,dir_mode=0775 //192.168.1.12/sdcard Documents/
這裏是錯誤:
$ ls Documents/
ls: cannot open directory Documents/: Permission denied
這裏是安裝目錄權限:
d---rwxr-x. 14 filip filip 0 Jun 26 15:30 Documents/
編輯:smb.conf文件
[global]
interfaces = wlan0
bind interfaces only = yes
workgroup = WORKGROUP
server string = Samba on Android
netbios name = FILIPSMB
remote announce = 255.255.255.255
encrypt passwords = yes
security = USER
restrict anonymous = 1
load printers = no
printcap name = /dev/null
disable spoolss = yes
deadtime = 5
delete readonly = yes
nt acl support = no
inherit permissions = yes
socket options = SO_SNDBUF=16384 SO_RCVBUF=16384
local master = no
unix extensions = yes
[sdcard]
vfs objects = fake_perms
comment = Android /storage/sdcard0
path = /storage/sdcard0
force user = root
read only = no
writable = yes
guest ok = no
請注意,SO是用於編程的問題,還有其他的sx站點可用於管理這類問題。環顧四周。 –