Answers for "add user to group"

17

add user to group

usermod -a -G examplegroup exampleusername
Posted by: Guest on March-29-2020
2

linux add user to group

# add user to additional group

usermod -G groupname username
Posted by: Guest on November-18-2020
0

Adding users to groups

sudo usermod -a -G <groupname> <username>
e.g.
sudo usermod -a -G wonderland alice
Posted by: Guest on April-26-2021
0

add user to group linux

sudo usermod -aG <groups> <username>
Posted by: Guest on October-02-2021
0

add user to group

usermod -a -G <group> <user>
$ usermod -a -G developer tom
Posted by: Guest on July-16-2021
0

how to set default user group in django

from django.contrib.auth.models import User, Group
from django.db.models.signals import post_save
from django.dispatch import receiver

@receiver(post_save, sender=User)
def create_user_profile(sender, instance, created, **kwargs):
    if created:
        instance.groups.add(Group.objects.get(name='group_name'))
Posted by: Guest on November-17-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language