This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

chown with not existing user/group


Hi,

I wonder why on cygwin we can't use chown with numeric id that don't exist in
/etc/passwd, /etc/group [1] ?

On linux this works perfectly [2]

Matthieu

[1]
$ touch /tmp/toto
$ chown 12345:12346 /tmp/toto
chown: changing ownership of `/tmp/toto': Invalid argument

[2]
$ touch /tmp/toto
$ sudo chown 12345:12346 /tmp/toto
$ ls -l /tmp/toto     
-rw-r--r-- 1 12345 12346 0 fÃv 28 14:56 /tmp/toto


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]