I've lost sudo access and I don't really understand why

Tom H tomh0665 at gmail.com
Thu Mar 19 15:12:33 UTC 2020


On Thu, Mar 19, 2020 at 9:50 AM Chris Green <cl at isbd.net> wrote:
> On Thu, Mar 19, 2020 at 12:26:03AM +0100, Tom H wrote:
>> On Wed, Mar 18, 2020 at 11:19 PM Karl Auer <kauer at biplane.com.au> wrote:
>>> On Wed, 2020-03-18 at 21:28 +0000, Chris Green wrote:
>>>>
>>>> So (unless using the -a option) usermod removes group membership
>>>> that isn't specifically stated. Surely there's an easier way to
>>>> add oneself to an extra group.
>>>
>>> Personally I almost always modify /etc/groups directly (i.e., with
>>> a text editor) unless the operation is scripted. It has never failed
>>> me in well over 30 years of Unixing.
>>
>> I hope that you use "vigr" (and "vipw" for "/etc/passwd").
>>
> Only necessary on a multi-user system to prevent simultaneous edits of
> the files, if there's just me/you then a straight edit is fine.

Good habits are reinforced by repetition. Football players don't kick
penalties from the 6-yard line during practice and from the 12-yard
spot during a match.




More information about the ubuntu-users mailing list