Servidor NFS do Snow Leopard e no_root_squash

3

Eu quero exportar um compartilhamento NFS do meu Mac para um VMware Linux, mas estou tendo um problema com a exportação.

As coisas funcionam bem quando eu exporto como:

/Users/garyrichardson/leap/nfs -rw 172.16.180.130

Macintosh-3:~ garyrichardson$ showmount -e
Exports list on localhost:
/Users/garyrichardson/leap/nfs      172.16.180.130

Mas se eu tentar usar no_root_squash , a montagem não aparecerá:

/Users/garyrichardson/leap/nfs -rw 172.16.180.130(no_root_squash)

Macintosh-3:~ garyrichardson$ showmount -e
Exports list on localhost:

Estou usando a sintaxe errada? Não há suporte do no_root_squash no snow leopard?

    
por Gary Richardson 03.03.2010 / 17:35

1 resposta

2

Encontrei minha solução em man exports no mac:

-maproot=user:group1:group2:... The colon separated list is used to specify the precise credential to be used for remote access by root. The elements of the list may be either names or numbers. Note that ''user:'' should be used to distinguish a credential containing no groups from a complete credential for that user.

que leva a:

In the absence of -maproot and -mapall options, remote accesses by root will result in using a credential of -2:-2. All other users will be mapped to their remote credential. If a -maproot option is given, remote access by root will be mapped to that credential instead of -2:-2. If a -mapall option is given, all users (including root) will be mapped to that credential in place of their own.

Então eu usei:

/Users/garyrichardson/leap/nfs -rw -maproot=501:501 172.16.180.130
    
por 03.03.2010 / 17:51