Invalid user error using chown
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 clusterUserHowever, 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?
Edit:
The output of getent passwd | grep 'cluster' yeilds:
rgcluster2blade1:x:1000:1000:RGcluster2Blade1,,,:/home/rgcluster2blade1:/bin/bash
clusteruser:x:1002:1002:clusterUser,,,:/home/clusteruser:/bin/bash 4 1 Answer
According to your passwd file, the username is clusteruser with a real name of clusterUser (clusteruser:...:clusterUser...). chown cares only about the username, which has no capital letters.
Use chown clusteruser.
More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"