getfacl doesn't show setuid/setgid/sticky bits (fwd)

Nathan Scott <[email protected]> Mon, 6 Sep 2004 11:19:07 +1000
Newsgroups gmane.linux.file-systems.acl.devel
Message-ID <20040906011907.GB966@frodo>
FYI - forwarding some issues raised by Andras Korn on the
Debian lists...

----- Forwarded message from Andras Korn <[email protected]> -----

Date: Sun, 5 Sep 2004 15:08:23 +0200
To: Debian Bug Tracking System <[email protected]>
Organization: Technical University of Budapest, Department of Calculus
User-Agent: Mutt/1.5.6+20040818i
Reply-To: Andras Korn <[email protected]>,
   [email protected]
From: Andras Korn <[email protected]>
Subject: Bug#270099: getfacl doesn't show setuid/setgid/sticky bits

Package: acl
Version: 2.2.23-1
Severity: important

Hi,

based on the documentation one is led to believe that something like

getfacl -R / | ssh otherhost setfacl --restore=-

can be used to duplicate all file permissions, including ACLs, from one host
to another.

This however is not the case at all, because getfacl seems to ignore the
first octal permission digit of all entries it processes, causing the above
command to apparently succeed but lose important information in the process.

Neither getfacl(1) nor setfacl(1) appear to contain BIG FAT WARNINGs about
this issue; if the bug can't be fixed, such warnings should be added at the
very least.

In particular the sentence "If getfacl is used on a file system that does
not support ACLs, getfacl displays the access permissions defined by the
traditional file mode permission bits" is misleading in that only the lower
three octal digits are actually displayed.

Best regards,

Andras

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-chardonnay
Locale: LANG=C, LC_CTYPE=hu_HU

Versions of packages acl depends on:
ii  libacl1                     2.2.23-1     Access control list shared library
ii  libattr1                    2.4.16-1     Extended attribute shared library
ii  libc6                       2.3.2.ds1-16 GNU C Library: Shared libraries an

-- no debconf information

-- 
                 Andras Korn <korn at chardonnay.math.bme.hu>
                 <http://chardonnay.math.bme.hu/~korn/>	QOTD:
           Math and Alcohol don't mix. Please don't drink & derive.


----- End forwarded message -----

-- 
Nathan

_______________________________________________
acl-devel mailing list
[email protected]
http://acl.bestbits.at/mailman/listinfo/acl-devel