Re: [Bacula-users] issue with setuid/gid on restored files

2014-07-23 Thread Kern Sibbald
Different Linux OSes have very different behaviors, which OS are you running (distribution and version)? On 07/23/2014 12:10 AM, Stephen Thompson wrote: I'm running 7.0.4. Here's an example... (before backup) # ls -ld /bin dr-xr-xr-x 2 root root 4096 Jul 22 09:56 /bin # ls -l /bin/ping

Re: [Bacula-users] issue with setuid/gid on restored files

2014-07-23 Thread Stephen Thompson
Redhat 6.5 x86_64 On 7/23/14 12:50 AM, Kern Sibbald wrote: Different Linux OSes have very different behaviors, which OS are you running (distribution and version)? On 07/23/2014 12:10 AM, Stephen Thompson wrote: I'm running 7.0.4. Here's an example... (before backup) # ls -ld /bin

Re: [Bacula-users] issue with setuid/gid on restored files

2014-07-23 Thread Kern Sibbald
On 07/23/2014 04:04 PM, Stephen Thompson wrote: Redhat 6.5 x86_64 OK, that is a particularly tricky system as they have added additional system security which does not permit certain sequences of API calls even as root which other Linux OSes permit :-( I.e. we test on the latest debian/ubuntu

Re: [Bacula-users] issue with setuid/gid on restored files

2014-07-23 Thread Simone Caronni
On 23 July 2014 16:18, Kern Sibbald k...@sibbald.com wrote: On 07/23/2014 04:04 PM, Stephen Thompson wrote: Redhat 6.5 x86_64 OK, that is a particularly tricky system as they have added additional system security which does not permit certain sequences of API calls even as root which other

Re: [Bacula-users] issue with setuid/gid on restored files

2014-07-23 Thread Stephen Thompson
compiled from scratch. On 7/23/14 8:02 AM, Simone Caronni wrote: On 23 July 2014 16:18, Kern Sibbald k...@sibbald.com mailto:k...@sibbald.com wrote: On 07/23/2014 04:04 PM, Stephen Thompson wrote: Redhat 6.5 x86_64 OK, that is a particularly tricky system as they have

[Bacula-users] issue with setuid/gid on restored files

2014-07-22 Thread Stephen Thompson
Sorry if I have not researched this enough before bringing it to the list, but what I'm seeing is very odd. Someone else must have run into this before me. If I restore a setuid or setgid file, the file is restored without the setuid/setgid bit set. However, the directory containing the

Re: [Bacula-users] issue with setuid/gid on restored files

2014-07-22 Thread Stephen Thompson
I'm running 7.0.4. Here's an example... (before backup) # ls -ld /bin dr-xr-xr-x 2 root root 4096 Jul 22 09:56 /bin # ls -l /bin/ping -rwsr-xr-x 1 root root 40760 Sep 17 2013 /bin/ping (after restore selecting file /bin/ping) # ls -ld /bin drwsr-xr-x 2 root root 4096 Jul 22 14:38 bin # ls