I am trying to form a group with two users so that only those two users have access to a directory using
chmod g+r dir
I form a new group, www-OtagoHarbour, and try to add an existing user, OtagoHarbour, like this.
OtagoHarbour@WebServer:/var/www/executables$ sudo groupadd www-OtagoHarbour
OtagoHarbour@WebServer:/var/www/executables$ sudo useradd -G www-OtagoHarbour OtagoHarbour
useradd: user 'OtagoHarbour' already exists
OtagoHarbour@WebServer:/var/www/executables$ sudo useradd -g www-OtagoHarbour OtagoHarbour
useradd: user 'OtagoHarbour' already exists
Of course the user 'OtagoHarbour' exists but I want to add it to a group with another user.
x
perms on directories.