只有Samba上传文件。 查看,编辑或删除禁止

就像在标题中一样,我想在我的samba服务器上获得文件夹,这允许任何人(guest,用户nevermind)上传文件。 除了主机以外,文件应该是不可见的。 最好的select是禁止用户和客人编辑,查看或删除文件,但不一定。 我尝试了一些方法。 首先,就像有人写过我曾经这样做的地方,使用掩码和文件权限,这是行不通的,任何人都可以对服务器上的文件做任何事情。 当然,我们对“Wgrane”文件夹感兴趣:P。

[global] netbios name = serwer server string = Samba file and print server workgroup = Workgroup security = user hosts allow = 127. 192.168.0. interfaces = 127.0.0.1/8 192.168.0.0/24 bind interfaces only = yes remote announce = 192.168.0.255 remote browse sync = 192.168.0.255 printcap name = cups load printers = yes cups options = raw printing = cups guest account = smbguest map to guest = Bad Password obey pam restrictions = yes log file = /var/log/samba/samba.log max log size = 1000 null passwords = yes username level = 0 password level = 0 encrypt passwords = yes unix password sync = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 local master = no domain master = no preferred master = no domain logons = no os level = 33 logon drive = m: logon home = \\%L\homes\%u logon path = \\%L\profiles\%u logon script = %G.bat time server = no name resolve order = wins lmhosts bcast wins support = no wins proxy = no dns proxy = no preserve case = no client use spnego = no client signing = no client schannel = no server signing = no server schannel = no nt pipe support = yes nt status support = yes allow trusted domains = no obey pam restrictions = yes enable spoolss = yes client plaintext auth = no disable netbios = no follow symlinks = no update encrypted = yes pam password change = no passwd chat timeout = 120 hostname lookups = no username map = /etc/samba/smbusers passdb backend = tdbsam passwd program = /usr/bin/passwd '%u' passwd chat = *New*password* %n\n *ReType*new*password* %n\n *passwd*changed*\n add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null '%u' add user to group script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null -g '%g' '%u' add group script = /usr/sbin/groupadd '%g' delete user script = /usr/sbin/userdel '%u' delete user from group script = /usr/sbin/userdel '%u' '%g' delete group script = /usr/sbin/groupdel '%g' add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c 'Samba Machine Account' -s /dev/null -M '%u' machine password timeout = 120 idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 template shell = /dev/null winbind use default domain = yes winbind separator = @ winbind cache time = 360 winbind trusted domains only = yes winbind nested groups = no winbind nss info = no winbind refresh tickets = no winbind offline logon = no host msdfss = no usershare allow guests = yes [krzysztofonly] path = /home/krzysztof/Publiczny/Serwer comment = Serwer tylko dla usera krzysztof. valid users = krzysztof write list = krzysztof read only = no available = yes browseable = yes writable = yes guest ok = no public = yes printable = no locking = no strict locking = no [Do pobrania] path = /home/krzysztof/Publiczny/Do pobrania comment = Lokalizacja tylko do pobierania plików z serwera. read only = yes available = yes browseable = yes writable = no guest ok = yes public = yes printable = no locking = yes strict locking = yes [Wgrane] path = /home/krzysztof/Publiczny/Wgrane comment = Lokalizacja do wgrywania plików na serwer. Nie mogą one być później edytowane. force directory mode = 2770 create mask = 660 read only = no available = yes browsable = yes guest ok = yes public = yes valid users = @U smbguest force user = krzysztof 

我曾经尝试的第二种方式是这样的。

 [Wgrane] path = /home/krzysztof/Publiczny/Wgrane comment = Lokalizacja do wgrywania plików na serwer. Nie mogą one być później edytowane. read only = no available = yes browsable = yes guest ok = yes public = yes veto files = /*/ delete veto files = no 

只是否决应该隐藏所有文件,一切都应该罚款。 或者,也许我对这个归因有不好的理解? 正确 – 文件是隐藏的,但没有办法上传文件。 有一个错误: http : //i.imgur.com/vWKlloO.png

标准的Windows错误。 “无法find这个项目,这不再位于…”,但该文件是完全可访问的,但不能被丢弃到服务器。

有人能告诉我如何解决第二种方式的错误,或告诉我为什么第一个不工作?

@edit我学习更多,现在我明白如何否决文件的作品。 我需要做出否决权,但是允许上传。 这甚至有可能吗?