command to add multiple “secondary groups” for a user in Solaris
2
votes
1
answer
4281
views
I am trying to add 2 secondary groups for a user is Solaris system, but not able to do so. It only adds 1 secondary groups. I've done enough R&D, not sure what to do.
Below command I am using :
sudo usermod -g Primarygrp -G Secondarygrp1,Secondarygrp2 TJ252020
when I verify whether groups has been added or not, I use below command :-
id -Gn TJ252020
o/p I am getting- > Primarygrp Secondarygrp1
o/p I want -> Primarygrp Secondarygrp1 Secondarygrp2
Asked by tani joshi
(29 rep)
Aug 7, 2019, 07:29 AM
Last activity: Jul 16, 2021, 10:09 AM
Last activity: Jul 16, 2021, 10:09 AM