learning linux 3
User and Group Management in Linux Managing Local Users: Commands : adduser / useradd : Create new users. usermod : Modify existing user accounts. userdel : Delete users. Managing Local Groups: Primary and Supplementary Groups : Each user has a primary group and can belong to multiple supplementary groups. Commands : groupadd : Create new groups. groupmod : Modify existing groups. groupdel : Delete groups. Querying User Accounts: Commands : whoami : Displays the current logged-in user's name. who : Lists users currently logged in and their login details. w : Shows what users are currently doing. pinky : A lightweight version of finger , provides user information. last : Shows a history of user logins. id username : Displays user identity information. Managing Group Password Files: Password File : Located in /etc/shadow , requires root access to edit. Commands : sudo vipw / sudo vipw -s : Safely edit the password file. vigr : Edit group file. User & Group Quotas: Quota Manag...