Tuesday, May 21, 2024
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 11706  / 2 Years ago, wed, march 9, 2022, 7:11:31

What is the difference between



adduser user_name group_name 


and



usermod -G -a user_name group_name 


At first glance they seems to do the same thing : add a user to a group.


More From » command-line

 Answers
7

adduser and usermod are two different utilities which have in common the fact that both can add a user to a group.



According to man adduser




adduser is friendlier front ends to the low level tools like
useradd, groupadd and usermod programs.




More info:





  • man adduser : adduser, addgroup - add a user or group to the system

  • man usermod : usermod - modify a user account



[#8924] Friday, March 11, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eaderitable

Total Points: 368
Total Questions: 117
Total Answers: 111

Location: Tuvalu
Member since Sat, Feb 11, 2023
1 Year ago
;