[Samba] samba home folder share
ndk.clanbo at gmail.com
Mon May 28 07:40:45 MDT 2012
Il 28/05/2012 14:15, NdK ha scritto:
> Another question: how can I set access permissions so that the webserver
> (running on another machine) can have RO access, if I can't give it a
> "standard" account? Can I use machine accounts? And how can I make
> Apache automatically access user's home/public_html?
> Maybe I'm just confused and I'll realize just after sending...
Well... nearly. But stuck again.
I defined another share:
comment = Exported to webserver
browseable = no
read only = yes
path = /srv/shared
valid users = STR00160-WEB$
ACL already only allows '--x' to str00160-web$ .
If I use
smbclient -P '\\str00160-samba\for_web'
I can navigate the share. But How do I 'emulate' that '-P' with
mount.cifs? I tried sec=krb5 but mount fails:
root at str00160-web:~# mount.cifs '\\str00160-samba\for_web' /mnt/ -o
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
If I omit '-o' it asks for a password...
I'm sure I'm missing something... Any hint? I tried reading man page
multiple times, but w/o results... :(
More information about the samba