I noticed that the directory produced by the Drupal 5.1 tarball has the permissions:

drwxr-sr-x 9 27743 27744 4096 Jan 29 19:20 drupal-5.1

I'm wondering if the "s" rather than "x" is intentional?

These permissions are propagated down through many directories.

Comments

SamL-1’s picture

I just hit this as well... According to the man page for "tar", there's a flag:

--no-same-owner
      extract files with owner set to current user  (the  default  for non-root users)

So, if you are installing as root, you probably want to specify this flag. Someone with more linux knowledge will need to say if there's something different that should be done on the packaging side. According to:
http://www.arcknowledge.com/gmane.comp.gnu.utils.bugs/2002-06/msg00045.html
the package could be created with "--owner root --group root". (Which would be ignored for non-root-users, but do the right thing for root).

mdupont’s picture

Status: Active » Closed (cannot reproduce)

Seems to be different now (no SGID flag anymore). Closing this old issue.