[Samba] samba home folder share

NdK 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:
[for_web]
    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
ro,sec=krb5
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... :(

BYtE,
 Diego.



More information about the samba mailing list