useradd -m -G admin user2
useradd -m -G admin user3
verify
lid user2
lid user3
Now passwd
passwd user2
passwd user3
Verify
su user2 > should allow access
su user3 > should allow access
This is correct when you modifying existing user and adding more supplementary groups but if you creating new user you can use just -G for supplementary/additional group.
upvoted 1 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
RedQuasar
Highly Voted 4 years, 1 month agogunwantk
Highly Voted 3 years, 3 months agoLazylinux
Most Recent 6 months, 2 weeks agosugisho
3 years, 5 months agosugisho
3 years, 6 months agoionix
3 years, 9 months agojuliansaccount
4 years, 3 months agocytron
4 years, 2 months ago