Ricardo, Fazendo um backup do /home inteiro com tar, como � que fa�o pra restaura-lo com as mesmas permiss�es originais (dono,grupo,permiss�es)?
Celso On Mon, 24 Jan 2005 09:18:51 -0200, Ricardo Campos Passanezi <[EMAIL PROTECTED]> wrote: > 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: [email protected] > Sair da Lista: http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br > Historico: http://www4.fugspbr.org/lista/html/FUG-BR/ > _______________________________________________________________ Para enviar um novo email para a lista: [email protected] Sair da Lista: http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br Historico: http://www4.fugspbr.org/lista/html/FUG-BR/

