A user and group contains a dash: abc-def. When I try to use chown I get an error:

chown abc-def.abc-def * -R
chown: invalid user: `abc-def.abc-def'

the user is valid and it should work... how can I use chown with user/group names containing a dash?


GNU chown uses a colon instead now to separate user and group.

chown abc-def:abc-def * -R

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.