Using groups with shadow utils: usermod, usermod, groupadd, groupdel, groupmod, groups, gpasswd

Introduction

Introduction

usermod to add user to group

users have primary group associated with just them, usually same name. can change using usermod.

groupadd, groupdel, groupmod, 777 etc. what happens to file when group deleted? command groups shows what groups a user is in

cont groups gpasswd to set passwords for groups. /etc/groups, /etc/gshadow