Re: [gentoo-user] Re: Update to /etc/sudoers disables wheel users!!!

2022-10-27 Thread Ramon Fischer

How about "gvim"?:

   https://github.com/vim/vim-win32-installer/releases

-Ramon

On 27/10/2022 09:55, Ramon Fischer wrote:

You just invented a new torture method. :D

Write down the house rules with standard vim with as less key strokes 
as possible. Every mistake gives you an electric shock.


-Ramon

On 27/10/2022 05:01, Dale wrote:

Ramon Fischer wrote:

Do you also use "vim" from time to time?

Because it is also able to compare two (or more?) files, similiar to
"sdiff":

    $ vi -d file1 file2

or:

    $ vi file1
    :diffthis
    :vsplit
    CTRL+w + right arrow key
    :e file2
    :diffthis

-Ramon

On 27/10/2022 00:44, Dale wrote:

   I'd like a GUI tool where I can
click the one I want to keep with my rodent and then save.

I'd only use vi stuff if I had a gun pointed at me.  Even then, I'd make
a mess of it.  lol

Dale

:-)  :-)





--
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF



OpenPGP_0x155BE26413E699BF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Update to /etc/sudoers disables wheel users!!!

2022-10-27 Thread Ramon Fischer

You just invented a new torture method. :D

Write down the house rules with standard vim with as less key strokes as 
possible. Every mistake gives you an electric shock.


-Ramon

On 27/10/2022 05:01, Dale wrote:

Ramon Fischer wrote:

Do you also use "vim" from time to time?

Because it is also able to compare two (or more?) files, similiar to
"sdiff":

    $ vi -d file1 file2

or:

    $ vi file1
    :diffthis
    :vsplit
    CTRL+w + right arrow key
    :e file2
    :diffthis

-Ramon

On 27/10/2022 00:44, Dale wrote:

   I'd like a GUI tool where I can
click the one I want to keep with my rodent and then save.

I'd only use vi stuff if I had a gun pointed at me.  Even then, I'd make
a mess of it.  lol

Dale

:-)  :-)



--
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF



OpenPGP_0x155BE26413E699BF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Update to /etc/sudoers disables wheel users!!!

2022-10-26 Thread Dale
Ramon Fischer wrote:
> Do you also use "vim" from time to time?
>
> Because it is also able to compare two (or more?) files, similiar to
> "sdiff":
>
>    $ vi -d file1 file2
>
> or:
>
>    $ vi file1
>    :diffthis
>    :vsplit
>    CTRL+w + right arrow key
>    :e file2
>    :diffthis
>
> -Ramon
>
> On 27/10/2022 00:44, Dale wrote:
>>   I'd like a GUI tool where I can
>> click the one I want to keep with my rodent and then save.
>

I'd only use vi stuff if I had a gun pointed at me.  Even then, I'd make
a mess of it.  lol

Dale

:-)  :-)



Re: [gentoo-user] Re: Update to /etc/sudoers disables wheel users!!!

2022-10-26 Thread Ramon Fischer

Do you also use "vim" from time to time?

Because it is also able to compare two (or more?) files, similiar to 
"sdiff":


   $ vi -d file1 file2

or:

   $ vi file1
   :diffthis
   :vsplit
   CTRL+w + right arrow key
   :e file2
   :diffthis

-Ramon

On 27/10/2022 00:44, Dale wrote:

  I'd like a GUI tool where I can
click the one I want to keep with my rodent and then save.


--
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF



OpenPGP_0x155BE26413E699BF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Update to /etc/sudoers disables wheel users!!!

2022-10-26 Thread Rich Freeman
On Wed, Oct 26, 2022 at 5:26 PM Grant Edwards  wrote:
>
> On 2022-10-26, Dale  wrote:
> > Rich Freeman wrote:
> >> If you use an x11-based merge tool then it will also refuse to attempt
> >> an automatic
> >> merge if X11 isn't available.  (Obviously you can't actually run the
> >> manual merge if the tool uses X11 and that isn't available.)
> >>
> >>
> >
> > I'd like to try a GUI based tool.  Is that what you talking about?  If
> > so, name or what package has it?
>
> At one point, I had one of my systems configured to use "meld" when I
> picked "interactive merge" in the etc-update menu, but I've since gone
> back to just picking "show differences" in the etc-update menu, then
> manually running merge on the two filenames shown. With the
> interactive merge option, I was always a bit confused about which file
> was the destination and what happened after I exited meld.
>

I use cfg-update+meld.  It can use any 3-way diff/edit tool, but there
aren't many of those.

I believe the three panels show:
Left: the current config file
Right: new new packaged config file
Center: what the packaged config file was the last time you did an update

So Left vs Center shows you what changes you've made vs upstream, and
center vs right show you what changes upstream made to their file.  So
you would look for differences on the right side to see what needs
attention in the file, and then work those changes if appropriate into
the left file.

You just edit the left file to get it the way you want it and save
that, and then cfg-update captures the changes in RCS.

-- 
Rich



Re: [gentoo-user] Re: Update to /etc/sudoers disables wheel users!!!

2022-10-26 Thread Dale
Grant Edwards wrote:
> On 2022-10-26, Dale  wrote:
>> Rich Freeman wrote:
>>> If you use an x11-based merge tool then it will also refuse to attempt
>>> an automatic
>>> merge if X11 isn't available.  (Obviously you can't actually run the
>>> manual merge if the tool uses X11 and that isn't available.)
>>>
>>>
>> I'd like to try a GUI based tool.  Is that what you talking about?  If
>> so, name or what package has it?
> At one point, I had one of my systems configured to use "meld" when I
> picked "interactive merge" in the etc-update menu, but I've since gone
> back to just picking "show differences" in the etc-update menu, then
> manually running merge on the two filenames shown. With the
> interactive merge option, I was always a bit confused about which file
> was the destination and what happened after I exited meld.
>
> --
> Grant

I've tried etc-update and dispatch-conf and I can't figure out either
one of them when it comes to merging.  I'd like a GUI tool where I can
click the one I want to keep with my rodent and then save.  Like you, I
get confused trying to select things and then have no idea if I'm about
to royally screw something up.  I end up doing a ctrl c, restarting
update tool and zapping the new file and praying that didn't break
anything either. 

I have the default settings so there may be a better way but I just
don't know what.  I sometimes wish there was a video showing different
methods of managing config files and me picking what makes sense to me. 

I might add, a good while back I started doing updates in a chroot and
then using -k on my main system.  Since then, I don't see config updates
hardly at all.  I wonder if building in a chroot affects that. 

Dale

:-)  :-) 



[gentoo-user] Re: Update to /etc/sudoers disables wheel users!!!

2022-10-26 Thread Grant Edwards
On 2022-10-26, Dale  wrote:
> Rich Freeman wrote:
>> If you use an x11-based merge tool then it will also refuse to attempt
>> an automatic
>> merge if X11 isn't available.  (Obviously you can't actually run the
>> manual merge if the tool uses X11 and that isn't available.)
>>
>>
>
> I'd like to try a GUI based tool.  Is that what you talking about?  If
> so, name or what package has it?

At one point, I had one of my systems configured to use "meld" when I
picked "interactive merge" in the etc-update menu, but I've since gone
back to just picking "show differences" in the etc-update menu, then
manually running merge on the two filenames shown. With the
interactive merge option, I was always a bit confused about which file
was the destination and what happened after I exited meld.

--
Grant






Re: [gentoo-user] Re: Update to /etc/sudoers disables wheel users!!!

2022-10-26 Thread Ramon Fischer
Of course, you are free to do so, but then blindly overwriting default 
configuration files is a Layer 8 problem.


-Ramon

On 26/10/2022 19:12, Grant Edwards wrote:

On 2022-10-26, Grant Taylor  wrote:


To the sudo developers, the /etc/sudoers file is *SUPPOSED* *TO* /be/
/edited/.

And editing that file is how I configure sudo. And when an emerge
update changes /etc/sudoers, the edited file is left as-is and there
is a message that you need to run etc-update to merge the changes.

--
Grant





--
GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF



OpenPGP_0x155BE26413E699BF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


[gentoo-user] Re: Update to /etc/sudoers disables wheel users!!!

2022-10-26 Thread Grant Edwards
On 2022-10-26, Grant Taylor  wrote:

> To the sudo developers, the /etc/sudoers file is *SUPPOSED* *TO* /be/ 
> /edited/.

And editing that file is how I configure sudo. And when an emerge
update changes /etc/sudoers, the edited file is left as-is and there
is a message that you need to run etc-update to merge the changes.

--
Grant