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

Re: Directory permissions.



On Apr 29, Nathan E Norman wrote
> 
> On Tue, 29 Apr 1997, David Wright wrote:
> 
> > On Tue, 29 Apr 1997, Rick Jones wrote:
> > 
> > > [ description of problem ]
> > > 
> > > I did this to avoid a full install when I repartitioned since I have no
> > > backup system and have installed from ftp.  Somebody out there must have a
> > > good way to reset my ownerships.
> > 
> > Well, the /easiest/ way might just be to copy the files in one of the
> > correct manners, overwriting both them and their ownerships. For example,
> > tar to stdout and pipe it to stdin of another tar with --save-permissions 
> > and --save-owners (done as root).
> 
> Using the correct tools is important.  David gives you one such tool - I
> personally type the following command in the directory I wish to copy:
> "find . -print | cpio -p /target".  This is of course a simplification;
> find and cpio have a lot of powerful options, and people will argue the 
> merits of tar vs. cpio all day.  It works for me.  At any rate, mc is not
> up to the task.

Or, since Debian has GNU cp, I simply use "cp -a". It preserves
everything. (The 'a' stands for archive.)

You might want this as a bug report against mc, though. If it said
'preserve' in the menu, IMHO it should preserve both files and
directories's permissions.

  Christian

Attachment: pgpwxgarcj4RO.pgp
Description: PGP signature


Reply to: