[Tecnica] Montare NFS

Szymon Tomasz Stefanek pragma a siena.linux.it
Lun 11 Feb 2013 13:24:42 GMT


On 02/11/2013 10:41 AM, Michele Pinassi wrote:

> root a proxy-voip01:~# ls /var/spool/asterisk/voicemail/voip.unisi.it/ -l
> totale 8
> drwxrwx--- 5 sshd bind 4096  7 feb 13.15 5001
> drwxrwx--- 6 sshd bind 4096  7 feb 12.42 5008
>
> 'sshd' e 'bind' sono uid e gid del rispettivo owner sulla macchina
> [server] (asterisk:asterisk).
 >
 > Ora io devo fare in modo di poter accedere a queste directory e
 > rispettivi files dal server web della macchina [client], che gira come
 > www-data:www-data.

Questi uid:gid sono fissi? Se si, allora forse puoi aggiungere l'utente
www-data al gruppo bind sulla macchina client?

Perņ il fatto che un cd da root ti dia permission denied mi fa pensare
che lato server l'uid 0 sia mappato a qualcosa altro. Forse hai attivo
il root squashing. Prova l'opzione no_root_squash nel mount.

http://www.troubleshooters.com/linux/nfs.htm#_Configure_the_NFS_Server
(guarda la sezione User ID Mapping Options)

-- 

Szymon Tomasz Stefanek

------------------------------------------------------------------------------
-
- I degaussed my girlfriend and I'm just not attracted to her anymore.
-
------------------------------------------------------------------------------


Maggiori informazioni sulla lista Tecnica