On Tue, Nov 30, 2010 at 16:10, Rich Shepard <[email protected]> wrote:
>   I'm drawing a complete blank on this and need a reminder.
>
>   When I untar a tarball every file has the execute bit set for owner,
> group, and others. I must have the wrong mode set and would like to change
> it to what it should be. Please remind me of the command/setting I need for
> this.

how permissions on newly created files (including untarred files) are
set depends on your shell and your version & invocation of tar, but
assuming the tar file was not made with those permissions in it (check
with tar tvf file.tar), you can get them back out with the same
permissions with gnu tar's "p" flag (ie tar xpf file.tar).

assuming you want to ignore the permissions in the tarfile instead, do
some googling on 'umask'.  in bash, i'd use 'umask 002' to make any
created files (by tar or others) mode rwxrwxr-x, or umask '111' to
make them all nonexecutable by everyone.  this is probably not what
you want, really, since directories need to be executable to be
usable, tho.

luck++;
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to