1

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?

MilMike
  • 206
  • 1
  • 5

1 Answers1

6

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

chown abc-def:abc-def * -R
Ignacio Vazquez-Abrams
  • 45,019
  • 5
  • 78
  • 84