Bacula-users

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

2014-07-22 18:19:20
Subject: [Bacula-users] issue with setuid/gid on restored files
From: Stephen Thompson <stephen AT seismo.berkeley DOT edu>
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Tue, 22 Jul 2014 14:58:50 -0700

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 file 
(which did not have it's setuid/setgid bit set during the backup) winds 
up with the setuid/setgid bit being set.

If I restore both the directory and the file, the directory ends up with 
the proper "non-setuid/setgid" attributes, but the file once again ends 
up without the setuid/setgid bit set.  I'm assuming the directory has 
the bit set during an interim stage of the restore, but is then properly 
set when it's attributes are set during the restore (which must happen 
after the files that it contains).

I can't say authoritatively, but I don't believe this is the way bacula 
used to behave for me.  And to say the least, this is far from 
acceptable.  I discovered this during a bare metal restore, and have 
loads of issues from no setuid or setgid bits being set on the restored 
system.

thanks,
Stephen
-- 
Stephen Thompson               Berkeley Seismological Laboratory
stephen AT seismo.berkeley DOT edu    215 McCone Hall # 4760
510.214.6506 (phone)           University of California, Berkeley
510.643.5811 (fax)             Berkeley, CA 94720-4760

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users