My Ubuntu16.04.4 server has username: graycodes
THE ERROR OUTPUT:
chown: invalid user: 'vagrant:vagrant'
I'm setting file permissions for OpenSSH. What I'd like is to keep my username as graycodes and define the permisions using this username in place of the username vagrant.
chown -R vagrant:vagrant .ssh
I understand it reads as:
chown -R username:group file name
I've also tried firstly:
chown -R graycodes:vagrant .ssh
but it's not working. Do I have no choice but to make my server username as vagrant?
I believe this may work to add 'graycodes' to the group 'vagrant'.
$ groups $ sudo usermod -a -G vagrant $USER $ exec su -l $USER $ groups