On 31-12-2014 21:03, William Unruh wrote:
> On 2014-12-31, M. Strobel <sorry_no_...@nowhere.dee> wrote:
>> By default cp does not copy extended attributes - test with:
>>
>> $F=yourfile.ext
>
> What shell? Usually it is F=yourfile.ext
>
>> setfattr -n
user.info -v "in principle usable" $F
>
> Never hear of setfattr. Have heard of chattr. Also, never heard of
> either the name nor the value of that you apply.
>
*man setfattr*
SETFATTR(1) File Utilities
SETFATTR(1)
NAME
setfattr - set extended attributes of filesystem objects
SYNOPSIS
setfattr [-h] -n name [-v value] pathname...
setfattr [-h] -x name pathname...
setfattr [-h] --restore=file
DESCRIPTION
The setfattr command associates a new value with an extended
attribute name for each specified file.
......
*man chattr*
CHATTR(1) General Commands
Manual CHATTR(1)
NAME
chattr - change file attributes on a Linux file system
SYNOPSIS
chattr [ -RVf ] [ -v version ] [ mode ] files...
DESCRIPTION
chattr changes the file attributes on a Linux file system.
The format of a symbolic mode is +-=[acdeijstuACDST].
The operator `+' causes the selected attributes to be added to
the existing attributes of the files; `-' causes them to
be removed; and `=' causes them to be the only attributes that
the files have.
The letters `acdeijstuACDST' select the new attributes for the
files: append only (a), compressed (c), no dump (d),
extent format (e), immutable (i), data journalling (j),
secure deletion (s), no tail-merging (t), undeletable (u), no
atime updates (A), no copy on write (C), synchronous directory
updates (D), synchronous updates (S), and top of directory
hierarchy (T).
The following attributes are read-only, and may be listed by
lsattr(1) but not modified by chattr: huge file (h), com-
pression error (E), indexed directory (I), compression raw
access (X), and compressed dirty file (Z).
.....