On 29/09/20 12:40 am, rhkra...@gmail.com wrote:
> On Monday, September 28, 2020 01:28:01 AM Richard Hector wrote:
>> On 26/09/20 2:47 pm, David Wright wrote:
>> > If you make yourself a member of the adm group, you can read your logs
>> > as a normal user. You'd need to type into any terminal
>> > 
>> > $ sudo addgroup myloginname adm
>> > 
>> > replacing myloginname as appropriate, but you will need to login again
>> > before the addgroup command will have any effect.
>> 
>> I think you mean adduser rather than addgroup there:
>> 
>> $ sudo adduser myloginname adm
>> 
>> You're adding the user to the group, rather than the group to the user :-)
> 
> I think either will work:
> 
> from man adduser <one of five ways to invoke adduser>:
> 
>    Add an existing user to an existing group
>        If  called  with  two non-option arguments, adduser will add an 
> existing user to an existing group.
> 
> 
> from man addgroup <one of five ways to invoke addgroup>:
> 
>    Add an existing user to an existing group
>        If  called  with  two non-option arguments, adduser will add an 
> existing user to an existing group.

Those are both the same manpage (adduser(8)), which describes both
commands. Both instances of that quote refer to adduser :-)

addgroup is just a symlink to adduser, but behaves differently when
called with that name.

Richard

Reply via email to