I am trying to change ownership on a file but am having trouble, before it used to work, now I think I am using the wrong syntax,
chown -R Person:User **
or is it users? I tried both and none work, what am I doing wrong? Also I am logged as root.
I am trying to change ownership on a file but am having trouble, before it used to work, now I think I am using the wrong syntax,
chown -R Person:User **
or is it users? I tried both and none work, what am I doing wrong? Also I am logged as root.
It's actually "owner:group", meaning that you have to provide a username for the first and a groupname for the second argument. Giving a username as the second argument should lead to an error if there is no group of the same name.
Mrokii is correct; in addition,if you are trying to change ownership on a single file you don't need the -R (recursive option) as one has to be very careful when recursively changing ownership of files. Also, logging in as root is not usually done in Ubuntu desktop unless you do it via the ctrl-alt-fn virtual terminals just for the duration of that session then return to the graphical desktop.
chown -R me:users **
Worked, I was capitalizing on the first letter, apparently that is a no no.