bug-gnu-utils
[Top][All Lists]
Advanced

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

install(1) preserve original permissions


From: Dan Jacobson
Subject: install(1) preserve original permissions
Date: 14 Mar 2002 17:59:24 +0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

[note, this Dan message _does_ contain an actual bug, at the very bottom of
this message.]

Well gosh, can't the install(1) command have an option to preserve the
original permissions if one is so inclined? cp(1) can do it.

`-m MODE'
`--mode=MODE'
     Set the permissions for the installed file or directory to MODE,
     which can be either an octal number, or a symbolic mode as in
     `chmod', with 0 as the point of departure (*note File
     permissions::).  The default mode is `u=rwx,go=rx'--read, write,
     and execute for the owner, and read and execute for group and
     other.

[yes, one could follow with a chmod --reference=RFILE, but then I
wouldn't have anything to post about.]

and hey, what about an option to preserve the original owner?  [OK, no biggie.]

`--owner=OWNER'
     If `install' has appropriate privileges (is run as root), set the
     ownership of installed files or directories to OWNER. The default
     is `root'.  OWNER may be either a user name or a numeric user ID.

Group too. [true, one could use chown --reference=RFILE, however, I
have already typed this message up to here, and not posting it would
waste my golden keystrokes.]

I mean, like geez, it does such a nice job in preserving things here:

`-p'
`--preserve-timestamps'
     Set the time of last access and the time of last modification of
     each installed file to match those of each corresponding original
     file.  When a file is installed without this option, its last
     access and last modification times are both set to the time of
     installation.  This option is useful if you want to use the last
     modification times of installed files to keep track of when they
     were last built as opposed to when they were last installed.

hmm, perhaps mention "sorry, you can't change the [ls -tcl] time
though, because...".

Say, why don't all the GNU utils have a --test like rpm(1)?

Oh, and I found a real bug.  The install man page mentions -D and Info
doesn't.
-- 
http://www.geocities.com/jidanni/ Taiwan(04)25854780



reply via email to

[Prev in Thread] Current Thread [Next in Thread]