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

Francis Grizzly Smit grizzly at smit.id.au
Thu Mar 19 00:56:39 UTC 2020


On 19/03/2020 09:18, Karl Auer 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.
> It's not that tricky - the -G option sets the list of groups the user
> should belong to. If you want to APPEND that list to the list of groups
> the user ALREADY belongs to, specify -a as well.
>
> Which is more dangerous - to permit a person with sudo access to lose
> it by mistake, or to permit a person who should not have access to
> certain groups to retain them by mistake? usermod says it's the former,
> and thus makes "don't append" the default.
>
> 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.
>
> If it really worries you, set up an alias that does a group append for
> you.
>
> Regards, K.
>   

Yeah I edit /etc?groups directly too much easier if you understand the 
format


-- 

    .~.     In my life God comes first....
    /V\         but Linux is pretty high after that :-D
   /( )\    Francis (Grizzly) Smit
   ^^-^^    http://www.smit.id.au/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20200319/f7756d85/attachment.html>


More information about the ubuntu-users mailing list