Re: [opensuse] Re: Update of aaa_base removes permissions to /dev/null
On Tue, Mar 10, 2009 at 12:27:28AM +0100, Ruediger Oertel wrote:
On Mon, 9 Mar 2009, Josef Wolf wrote:
On Mon, Mar 09, 2009 at 05:02:03PM +0100, Michael Schroeder wrote:
Thanks. The strace indeed reveals what's going on: the aaa_base postinstall scriptlet contains: touch root/.bash_history chmod 600 root/.bash_history
On your system, /root/.bash_history is a symlink pointing to /dev/null, thus 'chmod 600 root/.bash_history' changes the mode of /dev/null.
Ah, that explains why the attributes were changed. I have set this symlink by intent, BTW.
Thanks! I hope we agree that symlinking .bash_history to /dev/null should not be forbidden ;-) absolutely ;) I never really thought about that one, could really help in some cases. Fix for aaa_base already submitted to FACTORY.
Thanks! BTW: I wonder how the fix looks like, since I have the feeling that this is hard (impossible?) to fix without a race condition. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Josef Wolf escribió:
BTW: I wonder how the fix looks like, since I have the feeling that this is hard (impossible?) to fix without a race condition.
for this particular situation, it is "good enough" to "touch & chmod" only if it the file doesnt exists. -- "If this is the best God can do, I am not impressed" -George Carlin (1937-2008) Cristian Rodríguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
participants (2)
-
Cristian Rodríguez
-
Josef Wolf