[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

btw, if dot in username, need colon in chown command

a little fyi on using dot in usernames....
it does work on openbsd, but have to use colon
with chown commands

I was trying names with a period on current and
ran into a difficulty using chown

chown  somename.lastname file.txt

FAils.... lastname invalid group name

however this works

chown   somename.lastname:  file.txt

and this also works

chown  somename.lastname:somename.lastname  file.txt

According to man page -

     Previous versions of the chown utility used the dot (`.') character 
to distinguish the group name.  This has been changed to be a colon (`:')
character so that user and group names may contain the dot character.