From 85bde58d8a203717865c8c525c032a08d22214d5 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Sun, 16 Jan 2011 22:37:25 +0000 Subject: use umask to write sudoers file (so that it gets 0440 perms as expected by sudo) --- iurt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iurt2 b/iurt2 index 3a8dc3e..c783c7f 100755 --- a/iurt2 +++ b/iurt2 @@ -1454,7 +1454,7 @@ $user ALL=(ALL) NOPASSWD:RPM close $f; plog("adding sudo for /bin/rpm, /usr/sbin/urpmi and /usr/sbin/urpme"); - my $ret = sudo($run, $config, '--cp', $tmpfile, $file); + my $ret = sudo($run, $config, '--cp', '--umask', 0337, $tmpfile, $file); unlink $tmpfile; if (!$ret) { -- cgit v1.2.1