delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/26/22:47:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <02bc01c2f413$d560ebd0$cf6d86d9@ellixia>
Reply-To: "Elfyn McBratney" <elfyn-cygwin AT exposure DOT org DOT uk>
From: "Elfyn McBratney" <elfyn-cygwin AT exposure DOT org DOT uk>
To: "cygwin" <cygwin AT cygwin DOT com>, "Lu Fang" <lufangprc AT hotmail DOT com>
References: <F82xdWGHpPnqNI4lQ5t00000542 AT hotmail DOT com>
Subject: Re: problem with chown
Date: Thu, 27 Mar 2003 03:49:13 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300

> 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.
>
> 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,
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
elfyn AT exposure DOT org DOT uk
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019