[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sources file permissions
From: |
Timshel Knoll |
Subject: |
Re: sources file permissions |
Date: |
Wed, 8 Nov 2000 14:47:47 +1100 |
User-agent: |
Mutt/1.2.5i |
On Tue, Nov 07, 2000 at 07:43:33PM +0300, Sergey Zhitomirsky wrote:
>
> > This is wrong. Put a 'umask 022' in your ~/.bashrc file ...
> > (022 means no write for group or other), or try 'umask 027' if you want
> > directories mode 750 and files mode 640.
>
> It doesn't change anything with regard to unpacked by tar archives, it seems
> RedHat compiled tar , so that it assumes option -p , by default.
>
> You can do like you want, but anyway I think you should do
> chown -R root.root parted-1.2.12
> chmod -R o-w parted-1.2.12
> before packing a release of parted.
>
> With best regards,
> Sergey.
[please keep the discussion on address@hidden, since I don't have anything
to do with building the release tarballs ...]
Wierd ... this is actually the wrong behavior for tar. I've never seen any
version of tar do this ...
You don't have an 'alias tar="tar -p"' around in any of your config files
do you? Try 'type tar' (it should give you 'tar is /bin/tar' or
'tar is hashed (/bin/tar)' or similar).
If it gives you the same problem, then I would talk to redhat. Anyway,
'tar tzvf parted-1.2.12.tar.gz' gives me this:
drwxrwxrwx 506/506 0 2000-11-01 22:39:48 parted-1.2.12/
-rw-rw-r-- 506/506 12724 2000-11-01 22:39:14 parted-1.2.12/Makefile.in
-rw-rw-r-- 506/506 614 2000-08-11 00:31:42 parted-1.2.12/README
-rw-rw-r-- 506/506 10 2000-11-01 22:36:17 parted-1.2.12/stamp-h.in
-rw-rw-r-- 506/506 11651 2000-08-11 00:31:42 parted-1.2.12/ABOUT-NLS
-rw-rw-r-- 506/506 1626 2000-08-11 00:31:42 parted-1.2.12/AUTHORS
-rw-rw-r-- 506/506 17982 2000-08-11 00:31:42 parted-1.2.12/COPYING
-rw-rw-r-- 506/506 27076 2000-11-01 22:34:16 parted-1.2.12/ChangeLog
-rw-rw-r-- 506/506 7831 2000-08-11 00:31:42 parted-1.2.12/INSTALL
-rw-rw-r-- 506/506 278 2000-08-19 20:49:48 parted-1.2.12/Makefile.am
-rw-rw-r-- 506/506 0 2000-08-11 00:31:42 parted-1.2.12/NEWS
-rw-rw-r-- 506/506 1083 2000-08-11 00:31:42 parted-1.2.12/THANKS
-rw-rw-r-- 506/506 5141 2000-10-30 22:53:41 parted-1.2.12/TODO
-rw-rw-r-- 506/506 929 2000-08-11 00:31:42 parted-1.2.12/acconfig.h
-rw-rw-r-- 506/506 30683 2000-11-01 22:35:37 parted-1.2.12/aclocal.m4
-rw-rw-r-- 506/506 31326 2000-08-11 00:31:42 parted-1.2.12/config.guess
-rw-rw-r-- 506/506 4542 2000-08-19 00:40:41 parted-1.2.12/config.h.in
-rwxrwxr-x 506/506 24212 2000-08-11 00:31:42 parted-1.2.12/config.sub
-rwxrwxr-x 506/506 148997 2000-11-01 22:35:42 parted-1.2.12/configure
-rw-rw-r-- 506/506 6548 2000-11-01 22:34:40 parted-1.2.12/configure.in
-rwxrwxr-x 506/506 5598 2000-08-11 00:31:42 parted-1.2.12/install-sh
-rwxrwxr-x 506/506 94197 2000-08-11 00:31:42 parted-1.2.12/ltconfig
-rwxrwxr-x 506/506 109395 2000-08-11 00:31:42 parted-1.2.12/ltmain.sh
-rwxrwxr-x 506/506 6283 2000-08-11 00:31:42 parted-1.2.12/missing
-rwxrwxr-x 506/506 722 2000-08-11 00:31:42 parted-1.2.12/mkinstalldirs
-rw-rw-r-- 506/506 1794 2000-08-19 21:17:31 parted-1.2.12/parted.spec.in
-rw-rw-r-- 506/506 762 2000-08-11 00:31:42 parted-1.2.12/BUGS
-rw-rw-r-- 506/506 2612 2000-09-03 07:26:43 parted-1.2.12/parted.m4
drwxrwxrwx 506/506 0 2000-11-01 22:39:15 parted-1.2.12/intl/
-rw-rw-r-- 506/506 35212 2000-08-11 00:31:42 parted-1.2.12/intl/ChangeLog
-rw-rw-r-- 506/506 6455 2000-08-11 00:31:42 parted-1.2.12/intl/Makefile.i
n
-rw-rw-r-- 506/506 2693 2000-08-11 00:31:42 parted-1.2.12/intl/linux-msg.
...
etc. etc.
As you can see, directories are mode 777, but files are 664 (not 666) and
executabes are 775. Tar should _always_ extract files as the person who
extracts the archive (ie. it shouldn't be possible to create files owned by
_any_ other user for a normal user). The only exception is of course if you
extract as root ...
Thanks,
Timshel
--
Timshel Knoll <address@hidden> for Debian email: <address@hidden>
Second year Computer Science, RMIT | CS108 Tutor (Semester 2, 2000)
Debian GNU/Linux developer, see http://www.debian.org/~timshel/
For GnuPG public key: finger address@hidden or address@hidden
pgpYkfNMHsUeC.pgp
Description: PGP signature