> Hi,all > I installed cygwin under win2k operation system. > Now I have some problem with using command "chown" to change the ownship of > a directory. > > [EMAIL PROTECTED] ~ > $ chown -R cvsuser1:cvsgroup1 /home/lufang/repo
Are these real users? Or just "aliases" in /etc/{passwd,group} with the same UID/GID as your user (lufang)? > [EMAIL PROTECTED] ~ > $ ls -lg /home/lufang > total 16 > dr-xr-xr-x 7 lufang None 0 Mar 1 19:42 repo > -r--r--r-- 1 lufang None 3733 Feb 27 21:50 rh_opt.gdt > -r--r--r-- 1 lufang None 11507 Feb 27 21:50 rh_opt.gpr > lrwxrwxrwx 1 lufang None 94 Feb 14 03:21 vi -> vim.exe > > [EMAIL PROTECTED] ~ > $ ls -lg /home/lufang/repo > total 0 > dr-xr-xr-x 3 lufang None 0 Mar 1 19:42 CVSROOT > dr-xr-xr-x 2 lufang None 0 Mar 26 21:03 operation-manual > dr-xr-xr-x 4 lufang None 0 Mar 26 20:59 paper > dr-xr-xr-x 4 lufang None 0 Mar 26 20:56 source-code > dr-xr-xr-x 2 lufang None 0 Mar 26 21:01 technical-report > > As you can see, I have changed the owner to cvsuser1 by "chown" command, but > it displyed that the owner is still "lufang". > > And I find that if I login to the cygwin as another user "user1", the owner > of this directory automatically changed into the "user1". Why does this > heppen? It seems that the command "chown" has nothing effect here. > > Can anyone help? Thanks alot! When you installed Cygwin did you istall for "Just Me" or for "All Users"? If the prior, then you need to return to setup, select "Install from Local Directory" and click through until you are prompted for the Cygwin installation path. There's a radio button where you can change the setting to "All Users". Just click through and setup should say something along the lines of "Nothing to be done.". After a reboot, you should be fine. :-) Also (If the prior hasn't fixed it/you already installed for "All Users"), what is the partition type that Cygwin is installed on (FAT32 or NYFS)? If FAT32...Then that's why. FAT32 doesn't support the NT Security model in the way that NTFS does. Regards, Elfyn McBratney [EMAIL PROTECTED] www.exposure.org.uk -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/