I am running into an issue where when I type in sudo chown, I am recieving an invalid user error.
I created a user called clusterUser using the GUI. In the root directory of the computer (/), I created a folder called clusterFiles. I would like to change the home directory of clusterUser to be clusterFiles. I am using this set of commands to change the home directory:
sudo chown clusterUser /clusterFiles sudo usermod -d /clusterFiles clusterUser
However, when I run the command
sudo chown clusterUser /clusterFiles, I get the error invalid user clusterUser.
I know that I have created it becuase I logged into it. Is there something wrong with how I formatted the command?
The output of
getent passwd | grep 'cluster' yeilds: