3 added 129 characters in body
source | link

An alternative, if you want to save the permissions away, to restore them later on, or on a different file is to use setfacl/getfacl, and it will also restore (POSIX-draft) ACLs as a bonus.

getfacl some-file > saved-perms
setfacl -M saved-perms some-other-file

(on Solaris, use -f instead of -M).

However, though they are available on some BSDs, they are not on Apple OS/X where the ACLs are manipulated with chmod only.

An alternative, if you want to save the permissions away, to restore them later on, or on a different file is to use setfacl/getfacl, and it will also restore (POSIX-draft) ACLs as a bonus.

getfacl some-file > saved-perms
setfacl -M saved-perms some-other-file

(on Solaris, use -f instead of -M).

An alternative, if you want to save the permissions away, to restore them later on, or on a different file is to use setfacl/getfacl, and it will also restore (POSIX-draft) ACLs as a bonus.

getfacl some-file > saved-perms
setfacl -M saved-perms some-other-file

(on Solaris, use -f instead of -M).

However, though they are available on some BSDs, they are not on Apple OS/X where the ACLs are manipulated with chmod only.

2 added 57 characters in body
source | link

An alternative, if you want to save the permissions away, to restore them later on, or on a different file is to use setfacl/getfacl, and it will also restore (POSIX-draft) ACLs as a bonus.

getfacl some-file > saved-perms
setfacl -M saved-perms some-other-file

(on Solaris, use -f instead of -M).

An alternative, if you want to save the permissions away, to restore them later on, or on a different file is to use setfacl/getfacl, and it will also restore ACLs as a bonus.

getfacl some-file > saved-perms
setfacl -M saved-perms some-other-file

An alternative, if you want to save the permissions away, to restore them later on, or on a different file is to use setfacl/getfacl, and it will also restore (POSIX-draft) ACLs as a bonus.

getfacl some-file > saved-perms
setfacl -M saved-perms some-other-file

(on Solaris, use -f instead of -M).

1
source | link

An alternative, if you want to save the permissions away, to restore them later on, or on a different file is to use setfacl/getfacl, and it will also restore ACLs as a bonus.

getfacl some-file > saved-perms
setfacl -M saved-perms some-other-file