I have a custom RPM I created that needs to add entries to sudoers so I have entries added a file in my RPM /etc/sudoers.d/mypackage and put my sudo commands in there.
The files gets added and the RPM is generated. Unfortunately, when I try to install the package, it complains:
file /etc/sudoers.d from install of mypackage-1.0.0-1.x86_64 conflicts with file from sudo-1.8.6p7016.el7.x86_64
The rpm will install fine if I install it with --force such as:
rpm -Uvh --force mypackage.rpm
I probably could echo the contents of the sudoers file into /etc/sudoers.d but I would prefer the sudoers file be tracked with the rpm.
How do I add entries to sudoers from a custom RPM without sudo complaining?
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 235
تاريخ: يکشنبه
6 تير
1395 ساعت: 4:41