Thursday, May 18, 2023

How to Add or Remove Linux User From Group : Linux OS

How to Add or Remove Linux User From Group ?


Add the User to a Group in Linux


[root@0.0.0.0~]# usermod -aG wheel atharv

[root@0.0.0.0~]#

[root@0.0.0.0~]#

[root@0.0.0.0~]#

[root@0.0.0.0~]#

[root@0.0.0.0~]# id atharv

uid=1002(atharv) gid=1002(dba) groups=1002(dba),10(wheel)

[root@0.0.0.0~]#



Remove the User from a Group in Linux



[root@0.0.0.0~]#

[root@0.0.0.0~]# gpasswd -d atharv wheel

Removing user atharv from group wheel

[root@0.0.0.0~]#

[root@0.0.0.0~]#

[root@0.0.0.0~]# id atharv

uid=1002(atharv) gid=1002(dba) groups=1002(dba)

[root@0.0.0.0~]#

[root@0.0.0.0~]#

No comments:

Post a Comment

Setup and design database architecture to meet SLA - 99.9 , 99.99 , 99.999

Achieving distinct Service Level Agreements (SLAs) for a database requires scaling redundancy and infrastructure complexity.  The three-nine...