-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 22-01-2008 16:39, Wendell Almeida wrote: > Saudações. > > Tenho um servidor Samba com o seguinte compartilhamento: > [16:23] [EMAIL PROTECTED] [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] [EMAIL PROTECTED] [root]$ mount.smbfs //pitta/administrativo /mnt/tmp/ > -o username=wendell > > [16:33] [EMAIL PROTECTED] [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] [EMAIL PROTECTED] [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?
Crie os grupos ou use algo como NIS ou LDAP. Ou, use ACLs para dar permisão para o wendell e não para os grupos. Ou, use NFS para montar sistemas de arquivos remotos que estão em máquinas unix-like. Abraço, - -- Felipe Augusto van de Wiel (faw) "Debian. Freedom to code. Code to freedom!" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHlsE+CjAO0JDlykYRApqdAJ4ridKdq5/XO4feLN0gMzUlgbqsygCgtwEW Y5ATjGbY8CwFpcPEFPQxztM= =VSz7 -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]