[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Samba - Mapeamento de Permissões



Saudações.

Tenho um servidor Samba com o seguinte compartilhamento:
[16:23] root@pitta [init.d]$ l /samba/administrativo/
total 2
drwxrwx--- 12 root comercial  584 2008-01-21 12:41 comercial
drwxrwx--- 14 root diretoria  464 2008-01-21 13:11 diretoria
drwxrwx---  8 root financeiro 368 2008-01-21 12:56 financeiro
drwxrwx---  9 root rh         592 2008-01-22 15:46 rh
drwxrwx---  9 root secretaria 472 2008-01-22 09:59 secretaria

No servidor tem um usuário chamado wendell que pertence aos grupos acima.

Quando monto esse compartilhamento em uma máquina Linux remota as permissões ficam da seguinte forma:

[16:33] root@jk04 [root]$ mount.smbfs //pitta/administrativo /mnt/tmp/ -o username=wendell

[16:33] root@jk04 [root]$ l /mnt/tmp/
total 0
drwxrwx---  1 root 1009 0 Jan 21 12:41 comercial
drwxrwx---  1 root 1007 0 Jan 21 13:11 diretoria
drwxrwx---  1 root 1006 0 Jan 21 12:56 financeiro
drwxrwx---  1 root 1008 0 Jan 22 15:46 rh
drwxrwx---  1 root 1005 0 Jan 22 09:59 secretaria

O id dos grupos acima são os mesmos do servidor samba, no entanto não tenho esses grupos localmente.
Tenho somente o usuário wendell criado.

E não consigo mudar as permissões:
[16:38] root@jk04 [root]$ chown wendell: /mnt/tmp/*
chown: changing ownership of `/mnt/tmp/comercial': Operation not permitted
chown: changing ownership of `/mnt/tmp/diretoria': Operation not permitted
chown: changing ownership of `/mnt/tmp/financeiro': Operation not permitted
chown: changing ownership of `/mnt/tmp/rh': Operation not permitted
chown: changing ownership of `/mnt/tmp/secretaria': Operation not permitted


Tem alguma forma de mudar essas permissões para que o user wendell possa acessar os arquivos?

Obrigado.
Wendell


Reply to: