You are not logged in.

#1 2023-07-26 12:29:56

mtubarch
Member
From: Italy
Registered: 2023-02-16
Posts: 46

sudoers file

I got this:

warning: /etc/sudoers installed as /etc/sudoers.pacnew

I handled it like this: I checked in the sudoers file which lines are uncommented, then:

sudo EDITOR=nano visudo /etc/sudoers.pacnew

where I uncommented the same lines.
Lastly:

sudo mv /etc/sudoers.pacnew /etc/sudoers

Is this the proper way to handle the warning or did I do something wrong?
Thanks in advance.

Offline

#2 2023-07-26 12:35:37

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,563
Website

Re: sudoers file

pacman's warning is no notify the user (i.e. you) that there has been installed a new default version of the respective config file, /etc/sudoers in this particular case.
There is a tool shipped with pacman-contrib called pacdiff that allows you to check those differences and take appropriate action.
In your particular case, you could just have ignored the new file or deleted it, since no relevant changes were performed with regards to the default settings in said file.
However, this depends on the file and what updates actually have been made to the upstream or package's default.
Again, pacdiff is your friend.

Last edited by schard (2023-07-26 12:36:40)


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#3 2023-07-26 13:32:57

mtubarch
Member
From: Italy
Registered: 2023-02-16
Posts: 46

Re: sudoers file

schard wrote:

pacman's warning is no notify the user (i.e. you) that there has been installed a new default version of the respective config file, /etc/sudoers in this particular case.
There is a tool shipped with pacman-contrib called pacdiff that allows you to check those differences and take appropriate action.
In your particular case, you could just have ignored the new file or deleted it, since no relevant changes were performed with regards to the default settings in said file.
However, this depends on the file and what updates actually have been made to the upstream or package's default.
Again, pacdiff is your friend.

Thank you. In this case I didn't use pacdiff because there was only one uncommented line in the "old" sudoers file.
However, what I would like to understand better (apart from pacdiff for a moment) is whether the procedure I followed is correct or not, or whether it is preferable to proceed in a different way in order to update the sudoers file. Thanks again!

Last edited by mtubarch (2023-07-26 13:33:55)

Offline

Board footer

Powered by FluxBB