On Mon, Jul 20, 2020 at 11:11:17PM +0200, Patrick Dupre wrote:
> Sorry for the disturbance:
> usermod -a -G vboxusers pdupre
> works fine
I have a habit of using gpasswd, instead:
gpasswd -a pdupre vboxusers
because it's easy to forget the -a to usermod. (Or, less likely now, but it
used to be
On 07/20/2020 03:09 PM, Patrick Dupre wrote:
Hello,
I want to add the user pdupre to the group vboxusers
groups vboxusers
groups: ‘vboxusers’: no such user
What else did you expect? That command is used to list the groups a
user is a member of. As vboxusers isn't a user, it can't belong to
Sorry for the disturbance:
usermod -a -G vboxusers pdupre
works fine
> Sent: Monday, July 20, 2020 at 11:09 PM
> From: "Patrick Dupre"
> To: "fedora"
> Subject: adduser to group
>
> Hello,
>
> I want to add the user pdupre to the group vboxusers
Hello,
I want to add the user pdupre to the group vboxusers
groups vboxusers
groups: ‘vboxusers’: no such user
but
useradd -m pdupre -G vboxusers
useradd: user 'pdupre' already exists
===
Patrick DUPRÉ