Re: file /etc/sudoers from install of sudo-config-20110520-1.noarch conflicts with file from package sudo-1.7.2p1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20 May 2011 09:54, Athmane Madjoudj <athmanem@xxxxxxxxx> wrote:
> Also you might find the following presentation useful:
>
> http://www.redhat.com/promo/summit/2010/presentations/summit/opensource-for-it-leaders/thurs/pwaterma-2-rpm/RPM-ifying-System-Configurations.pdf

That's a very nice solution - it will probably work for lots of the
configs needed.
Unfortunately, sudo doesn't like symlinks

[root@uktest-lnx02 etc]# ls -l /etc/sudoers*
lrwxrwxrwx 1 root root   12 May 20 09:05 /etc/sudoers -> sudoers.company
-r--r----- 1 root root  337 May 20 08:30 /etc/sudoers.company
[root@uktest-lnx02 etc]# sudo -l
sudo: /etc/sudoers is not a regular file
sudo: no valid sudoers sources found, quitting
[root@uktest-lnx02 etc]#


To my mind the ideal solution would be:

%files
%config(forcereplace) %attr(440, root, root) /etc/sudoers

But as the presentation points out, both sudo and sudo-config would
then "own" /etc/sudoers.
What is the problem with that, exactly btw? When a new version of sudo
was installed, it would overwrite the modified one, presumably.

%config(stealfilefromotherpackage) maybe...? :)

Calum
--
packaging mailing list
packaging@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/packaging


[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux