I created a group using the following command:
sudo groupadd myGroup
Then I tried to run gedit
and set its primary group to myGroup
:
sg myGroup gedit
But sg
is asking me for what I assume is the group password.
Does a group created using groupadd
have a default password?
Edit:
When I make myGroup
part of my user's groups, then sg
no longer asks me for the group password. But I do not want to make myGroup
part of my user's groups.
myGroup
. I am not seeing that part in the question.