On Fri, Jan 21, 2005 at 06:27:41PM -0300, Luís Gustavo wrote: > acredito que só por meio de um script! >
Com a opção "-p" é possível. 'man cp': -p Cause cp to preserve the following attributes of each source file in the copy: modification time, access time, file flags, file mode, user ID, and group ID, as allowed by permissions. If the user ID and group ID cannot be preserved, no error message is displayed and the exit value is not altered. If the source file has its set-user-ID bit on and the user ID can- not be preserved, the set-user-ID bit is not preserved in the copy's permissions. If the source file has its set-group-ID bit on and the group ID cannot be preserved, the set-group-ID bit is not preserved in the copy's permissions. If the source file has both its set-user-ID and set-group-ID bits on, and either the user ID or group ID cannot be preserved, neither the set-user-ID nor set- group-ID bits are preserved in the copy's permissions. > > estando logado como root, é possível, ao copiar um > > arquivo para o > > /home de um usuário, fazer com que o mesmo já fique > > com as permissões > > desse usuário automaticamente? -- Ricardo Campos Passanezi _______________________________________________________________ Para enviar um novo email para a lista: freebsd@fug.com.br Sair da Lista: http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br Historico: http://www4.fugspbr.org/lista/html/FUG-BR/