scdbackup@gmx.net wrote:
What I was looking for is the setgid bit on a directory in /home/thomas/usr/bin changing the group ownership.Hi,Bill Davidsen wrote: Does "ls -ld" show the same thing on both directories? No setuid on the directory itself, or anything like that?I am firing up the old machine. (667 MHz and needs a few minutes of pre-warming before boot)Beep (is a good sign). Green SuSE jungle. I hate Firlefanz at startup.# alias ls=ls # ls -ld /usr/bin drwxr-xr-x 2 root root 32768 2006-11-30 12:23 /usr/bin # ls -ld /home/thomas/usr/bin drwxr-xr-x 2 root root 4096 2006-11-30 11:55 /home/thomas/usr/bin Hm ... something is weird with the cp command. The cdrecord binary in /home/thomas/usr/bin is a copy of the one in /usr/bin. Copy made by the superuser. The original is shown as owner=root, group=root. The copy is user=root but group=users !
This is the nightmare of an admin.
Copied with cp -p of course? To preserve ownership and permissions?
# lsattr /usr/bin/cdrecord-2.01.01a21-hz100 \Nothing different with lsattr?> /home/thomas/usr/bin/cdrecord-2.01.01a21-hz100 ------------- /usr/bin/cdrecord-2.01.01a21-hz100 ------------- /home/thomas/usr/bin/cdrecord-2.01.01a21-hz100 # getfattr /usr/bin/cdrecord-2.01.01a21-hz100 \ > /home/thomas/usr/bin/cdrecord-2.01.01a21-hz100 # getfacl /usr/bin/cdrecord-2.01.01a21-hz100 \ > /home/thomas/usr/bin/cdrecord-2.01.01a21-hz100 getfacl: Removing leading '/' from absolute path names # file: usr/bin/cdrecord-2.01.01a21-hz100 # owner: root # group: users user::rwx group::r-x other::r-x # file: home/thomas/usr/bin/cdrecord-2.01.01a21-hz100 # owner: root # group: root user::rwx group::r-x other::r-x No s-bits listed. On both. Oh my ... I will further explore ownership and group changes on copying by the superuser. For this evening i am fed up with weirdness and buzzing disks. I shall celebrate that this is not a production system. Have a nice day :) Thomas
-- bill davidsen <davidsen@tmr.com> CTO TMR Associates, Inc Doing interesting things with small computers since 1979