You mean unix modes, or AFS permissions? The former, cp -p is fine;
the latter, you'd want "up", as bundled with OpenAFS.

up [options] from to
options:
v is verbose
1 is one level only, don't go into child directories
r renames anything in the way to whatever.old
f causes a mode on a conflicting file to be ignored and the file
overwritten, otherwise, files that are chmod -w are not wiped.
x preserves dates on source files
m preservers mount points (otherwise they are treated as directories
and copied if they otherwise would be, e.g. one level only applies)


On Wed, Sep 1, 2010 at 7:55 AM, Claudio Prono <[email protected]> wrote:
> Hello All,
>
> I have to move some directory from a place to another, inside the same
> server. I have done a mv * /afs/newdir/. but all the permissions are
> gone (there are only present that ereditated from the root directory).
> How i can move files preserving attributes and privileges?
>
> Cheers,
>
> Claudio.
>
> --
> --------------------------------------------------------------------------------
> Claudio Prono                         OPST
> System Developer
>                                      Gsm: +39-349-54.33.258
> @PSS Srl                              Tel: +39-011-32.72.100
> Via San Bernardino, 17                Fax: +39-011-32.46.497
> 10141 Torino - ITALY                  http://atpss.net/disclaimer
> --------------------------------------------------------------------------------
> PGP Key - http://keys.atpss.net/c_prono.asc
>
>
>
>
> _______________________________________________
> OpenAFS-info mailing list
> [email protected]
> https://lists.openafs.org/mailman/listinfo/openafs-info
>



-- 
Derrick
_______________________________________________
OpenAFS-info mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-info

Reply via email to