This is the mail archive of the 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]

Re: problem with chown

> Hi,all
> I installed cygwin under win2k operation system.
> Now I have some problem with using command "chown" to change the ownship
> a directory.
> lufang at kaguya ~
> $ 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)?

> lufang at kaguya ~
> $ 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
> lufang at kaguya ~
> $ 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,
> it displyed that the owner is still "lufang".
> And I find that if I login to the cygwin as another user "user1", the
> 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.


Elfyn McBratney
elfyn at exposure dot org dot uk

Unsubscribe info:
Bug reporting:

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