X-Spam-Check-By: sourceware.org From: "Matthew Pittman" To: Subject: RE: chmod not working with ntsec set Date: Thu, 12 Jan 2006 14:33:29 +1100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_001A_01C61785.27B79630" In-Reply-To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Note-from-DJ: This may be spam ------=_NextPart_000_001A_01C61785.27B79630 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Thanks very much Igor, Attached is the output of cygcheck -s -v -r > cygcheck.out I have also established that both C: and X: are NTFS partitions but X: is a network share. chmod works on C: but not on X:. There are no local accounts named matt but I note that creating a file under my login account on c: results in the following undefined group: 420 -rwx------+ 1 matt ???????? 616236 Jan 12 11:48 cygwin-ug-net.pdf I'm guessing that this has something to do with cygwin's need to create the mkgroup-l-d group and that it can't work out what group the user matt is in? But this is a WAG too. Any ideas where I go from here? Regards, Matt. -----Original Message----- From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf Of Igor Peshansky Sent: Thursday, 12 January 2006 12:54 PM To: Matthew Pittman Cc: cygwin AT cygwin DOT com Subject: Re: chmod not working with ntsec set On Thu, 12 Jan 2006, Matthew Pittman wrote: > I know this is a dumb question but I have made genuine efforts to > understand what I'm doing wrong and I'm still missing the point. Sorry > for wasting your time. > > I've installed cygwin under WXP in a domain. When I first started bash > I got a warning about groups but it said that I could safely ignore it > so I did. Of course now I can't remember exactly what it was but I > think it was something about creating mkgroup-l-d because it couldn't > create the correct group. > > I pressed on regardless but I found I couldn't get chmod to work so I > searched the documentation, web and mailing list archives and found that > I should set the CYGWIN environment variable to "ntsec". I also noted > that this should now be the default anyway but I set it anyway and it > hasn't solved the problem. > > $ echo $CYGWIN > ntsec > > $ chmod -v u+x .bashrc > mode of `.bashrc' changed to 0744 (rwxr--r--) > > $ ls -l .bashrc > -rw-r--r-- 1 matt mkgroup-l-d 316 Jan 11 13:39 .bashrc > > I also note that I have write permission to the folder. > drwxr-xr-x 1 matt mkgroup-l-d 4096 Jan 11 17:12 . > Can anyone put me out of my misery? Thanks in advance, This is not a dumb question, this is an (incomplete) problem report. It would be very helpful if you read and followed the Cygwin problem reporting guidelines at -- particularly the part about attaching (as an uncompressed text *attachment*) the output of "cygcheck -svr" on your machine. In the absence of that information, all I can do is venture a couple of WAGs: 1) you probably have two users named "matt" on your machine -- one local, and one domain. The file is owned by the domain user, while you're logged in as a local one, or vice versa. Thus, chmod just doesn't have the access rights to change permissions. 2) your file is on a FAT/FAT32 partition. Please read the description of the "ntea" option at . This information also used to be in the NTSEC part of the User's Guide at (and, in fact, the "ntea" description has a link to it), but it doesn't seem to be there anymore. In short, file permissions don't work on FAT (without special setup) and FAT32 partitions (at all). 3) building on 2) above, your file could be on a network share that a) doesn't support permissions, or b) is a Samba share but you don't have "smbntsec" turned on (I forget whether it's on by default, and am too lazy to look at the code at the moment). Note that these are WAGs, due to lack of exact information. HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte." "But no -- you are no fool; you call yourself a fool, there's proof enough in that!" -- Rostand, "Cyrano de Bergerac" -- 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/ ------=_NextPart_000_001A_01C61785.27B79630 Content-Type: application/octet-stream; name="cygcheck.out" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cygcheck.out" Cygwin Configuration Diagnostics Current System Time: Thu Jan 12 14:16:10 2006 Windows XP Professional Ver 5.1 Build 2600 Service Pack 2 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem c:\programs\ant\bin c:\Program Files\Microsoft Visual Studio\VSS\win32 c:\jdk1.5\bin c:\Program Files\InstallShield\InstallShield 5.5 Professional Edition\Prog= ram c:\Program Files\Common Files\Roxio Shared\DLLShared c:\Program Files\Ulead Systems\Ulead DVD MovieFactory 3.5 Suite Deluxe c:\Program Files\Common Files\Ulead Systems\MPEG c:\Program Files\QuickTime\QTSystem\ Output from C:\cygwin\bin\id.exe (nontsec) UID: 11152(matt) GID: 10545(mkgroup-l-d) 0(root) 544(Administrators) 545(Users) 10545(mkgroup-l-d) Output from C:\cygwin\bin\id.exe (ntsec) UID: 11152(matt) GID: 10545(mkgroup-l-d) 0(root) 544(Administrators) 545(Users) 10545(mkgroup-l-d) SysDir: C:\WINDOWS\system32 WinDir: C:\WINDOWS USER =3D `matt' PWD =3D `/cygdrive/x' CYGWIN =3D `ntsec' HOME =3D `/cygdrive/x' MAKE_MODE =3D `unix' HOMEPATH =3D `\' MANPATH =3D `/usr/local/man:/usr/share/man:/usr/man:' APPDATA =3D `C:\Documents and Settings\Matt\Application Data' HOSTNAME =3D `ANT' TERM =3D `cygwin' PROCESSOR_IDENTIFIER =3D `x86 Family 15 Model 3 Stepping 4, GenuineIntel' WINDIR =3D `C:\WINDOWS' !X: =3D `X:\' OLDPWD =3D `/etc' USERDOMAIN =3D `PKS' OS =3D `Windows_NT' ALLUSERSPROFILE =3D `C:\Documents and Settings\All Users' ANT_HOME =3D `c:\programs\ant' ANT_OPTS =3D `-Xmx512M -ea' !:: =3D `::\' TEMP =3D `/cygdrive/c/DOCUME~1/Matt/LOCALS~1/Temp' COMMONPROGRAMFILES =3D `C:\Program Files\Common Files' QTJAVA =3D `C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip' USERNAME =3D `matt' PROCESSOR_LEVEL =3D `15' FP_NO_HOST_CHECK =3D `NO' SYSTEMDRIVE =3D `C:' JAVA_HOME =3D `C:\jdk1.5' USERPROFILE =3D `C:\Documents and Settings\Matt' CLIENTNAME =3D `Console' PS1 =3D `\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' LOGONSERVER =3D `\\MOTHER' PROCESSOR_ARCHITECTURE =3D `x86' !C: =3D `C:\cygwin\bin' SHLVL =3D `1' USERDNSDOMAIN =3D `PKS.PKS.COM.AU' PATHEXT =3D `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' HOMEDRIVE =3D `X:' PROMPT =3D `$P$G' COMSPEC =3D `C:\WINDOWS\system32\cmd.exe' TMP =3D `/cygdrive/c/DOCUME~1/Matt/LOCALS~1/Temp' SYSTEMROOT =3D `C:\WINDOWS' PRINTER =3D `HP LaserJet 2200 Series PCL 6' CVS_RSH =3D `/bin/ssh' PROCESSOR_REVISION =3D `0304' CLASSPATH =3D `C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip' INFOPATH =3D `/usr/local/info:/usr/share/info:/usr/info:' PROGRAMFILES =3D `C:\Program Files' HOMESHARE =3D `\\mother\backedUp\Users\Matt' NUMBER_OF_PROCESSORS =3D `2' SESSIONNAME =3D `Console' COMPUTERNAME =3D `ANT' _ =3D `/usr/bin/cygcheck' POSIXLY_CORRECT =3D `1' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) =3D `/cygdrive' cygdrive flags =3D 0x00000022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) =3D `C:\cygwin' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) =3D `C:\cygwin/bin' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) =3D `C:\cygwin/lib' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/A N/A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 c: hd NTFS 76308Mb 34% CP CS UN PA FC=20=20=20=20=20 d: cd N/A N/A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 e: cd N/A N/A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 x: net NTFS 26505Mb 93% CP CS UN PA FC=20=20=20=20=20 z: net NTFS 26505Mb 93% CP CS UN PA FC=20=20=20=20=20 C:\cygwin / system binmode C:\cygwin/bin /usr/bin system binmode C:\cygwin/lib /usr/lib system binmode . /cygdrive system binmode,cygdrive Found: C:\cygwin\bin\awk.exe Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cp.exe Not Found: cpp (good!) Found: C:\cygwin\bin\find.exe Not Found: gcc Not Found: gdb Found: C:\cygwin\bin\grep.exe Not Found: ld Found: C:\cygwin\bin\ls.exe Not Found: make Found: C:\cygwin\bin\mv.exe Found: C:\cygwin\bin\rm.exe Found: C:\cygwin\bin\sed.exe Found: C:\cygwin\bin\sh.exe Found: C:\cygwin\bin\tar.exe 56k 2005/07/09 C:\cygwin\bin\cygbz2-1.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygbz2-1.dll" v0.0 ts=3D2005/7/9 15:09 7k 2005/11/20 C:\cygwin\bin\cygcharset-1.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygcharset-1.dll" v0.0 ts=3D2005/11/20 13:24 40k 2005/09/29 C:\cygwin\bin\cygform-8.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygform-8.dll" v0.0 ts=3D2005/9/29 12:15 45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygform5.dll" v0.0 ts=3D2001/4/25 15:28 35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygform6.dll" v0.0 ts=3D2002/1/9 17:03 48k 2003/08/09 C:\cygwin\bin\cygform7.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygform7.dll" v0.0 ts=3D2003/8/9 19:25 28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cyggdbm-3.dll" v0.0 ts=3D2003/7/20 17:58 30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cyggdbm-4.dll" v0.0 ts=3D2003/8/11 12:12 19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cyggdbm.dll" v0.0 ts=3D2002/2/20 14:05 15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll - os=3D4.0 img=3D1.0 s= ys=3D4.0 "cyggdbm_compat-3.dll" v0.0 ts=3D2003/7/20 18:00 15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll - os=3D4.0 img=3D1.0 s= ys=3D4.0 "cyggdbm_compat-4.dll" v0.0 ts=3D2003/8/11 12:13 17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=3D4.0 img=3D1.0 sys=3D= 4.0 "cyghistory4.dll" v0.0 ts=3D2001/1/7 15:34 29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll - os=3D4.0 img=3D1.0 sys=3D= 4.0 "cyghistory5.dll" v0.0 ts=3D2003/8/11 9:16 24k 2005/07/29 C:\cygwin\bin\cyghistory6.dll - os=3D4.0 img=3D1.0 sys=3D= 4.0 "cyghistory6.dll" v0.0 ts=3D2005/7/29 13:57 947k 2005/11/20 C:\cygwin\bin\cygiconv-2.dll - os=3D4.0 img=3D1.0 sys=3D4= .0 "cygiconv-2.dll" v0.0 ts=3D2005/11/20 13:24 22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygintl-1.dll" v0.0 ts=3D2001/12/13 20:28 37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygintl-2.dll" v0.0 ts=3D2003/8/11 7:50 31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygintl-3.dll" v0.0 ts=3D2005/11/20 13:04 21k 2001/06/20 C:\cygwin\bin\cygintl.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygintl.dll" v0.0 ts=3D2001/6/21 3:09 21k 2005/09/29 C:\cygwin\bin\cygmenu-8.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygmenu-8.dll" v0.0 ts=3D2005/9/29 12:15 26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygmenu5.dll" v0.0 ts=3D2001/4/25 15:27 20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygmenu6.dll" v0.0 ts=3D2002/1/9 17:03 29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygmenu7.dll" v0.0 ts=3D2003/8/9 19:25 67k 2005/09/29 C:\cygwin\bin\cygncurses++-8.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygncurses++-8.dll" v0.0 ts=3D2005/9/29 12:16 156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygncurses++5.dll" v0.0 ts=3D2001/4/25 15:29 175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygncurses++6.dll" v0.0 ts=3D2002/1/9 17:03 226k 2005/09/29 C:\cygwin\bin\cygncurses-8.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygncurses-8.dll" v0.0 ts=3D2005/9/29 12:02 226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=3D4.0 img=3D1.0 sys=3D= 4.0 "cygncurses5.dll" v0.0 ts=3D2001/4/25 15:17 202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=3D4.0 img=3D1.0 sys=3D= 4.0 "cygncurses6.dll" v0.0 ts=3D2002/1/9 17:03 224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll - os=3D4.0 img=3D1.0 sys=3D= 4.0 "cygncurses7.dll" v0.0 ts=3D2003/8/9 19:24 11k 2005/09/29 C:\cygwin\bin\cygpanel-8.dll - os=3D4.0 img=3D1.0 sys=3D4= .0 "cygpanel-8.dll" v0.0 ts=3D2005/9/29 12:15 15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygpanel5.dll" v0.0 ts=3D2001/4/25 15:27 12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygpanel6.dll" v0.0 ts=3D2002/1/9 17:03 19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygpanel7.dll" v0.0 ts=3D2003/8/9 19:24 176k 2005/09/06 C:\cygwin\bin\cygpcre-0.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygpcre-0.dll" v0.0 ts=3D2005/9/7 6:49 299k 2005/09/06 C:\cygwin\bin\cygpcrecpp-0.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygpcrecpp-0.dll" v0.0 ts=3D2005/9/7 7:26 6k 2005/09/06 C:\cygwin\bin\cygpcreposix-0.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygpcreposix-0.dll" v0.0 ts=3D2005/9/7 7:26 22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygpopt-0.dll" v0.0 ts=3D2002/6/9 15:45 108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygreadline4.dll" v0.0 ts=3D2001/1/7 15:34 148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygreadline5.dll" v0.0 ts=3D2003/8/11 9:16 144k 2005/07/29 C:\cygwin\bin\cygreadline6.dll - os=3D4.0 img=3D1.0 sys= =3D4.0 "cygreadline6.dll" v0.0 ts=3D2005/7/29 13:57 65k 2005/08/23 C:\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygz.dll" v0.0 ts=3D2005/8/23 12:03 1265k 2005/07/03 C:\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygwin1.dll" v0.0 ts=3D2005/7/3 10:30 Cygwin DLL version info: DLL version: 1.5.18 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 132 Shared data: 4 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix:=20 Build date: Sat Jul 2 20:30:04 EDT 2005 Shared id: cygwin1S4 Can't find the cygrunsrv utility, skipping services check. Cygwin Package Information Last downloaded files to: C:\downloads\Cygwin Last downloaded files from: http://mirror.pacific.net.au/linux/cygwin Package Version _update-info-dir 00342-1 alternatives 1.3.20a-2 ash 20040127-3 base-files 3.6-1 base-passwd 2.2-1 bash 3.0-14 bzip2 1.0.3-1 coreutils 5.3.0-9 cygutils 1.2.9-1 cygwin 1.5.18-1 cygwin-doc 1.4-3 diffutils 2.8.7-1 editrights 1.01-1 findutils 4.2.25-2 gawk 3.1.5-2 gdbm 1.8.3-7 grep 2.5.1a-2 groff 1.18.1-2 gzip 1.3.5-1 less 381-1 libbz2_1 1.0.3-1 libcharset1 1.9.2-2 libgdbm 1.8.0-5 libgdbm-devel 1.8.3-7 libgdbm3 1.8.3-3 libgdbm4 1.8.3-7 libiconv 1.9.2-2 libiconv2 1.9.2-2 libintl 0.10.38-3 libintl1 0.10.40-1 libintl2 0.12.1-3 libintl3 0.14.5-1 libncurses5 5.2-1 libncurses6 5.2-8 libncurses7 5.3-4 libncurses8 5.4-4 libpcre0 6.3-1 libpopt0 1.6.4-4 libreadline4 4.1-2 libreadline5 4.3-5 libreadline6 5.0-4 login 1.9-7 man 1.5p-1 mktemp 1.5-3 ncurses 5.4-4 run 1.1.6-1 sed 4.1.4-1 tar 1.15.1-3 termcap 20050421-1 terminfo 5.4_20041009-1 texinfo 4.8-1 which 1.7-1 zlib 1.2.3-1 Use -h to see help about each section ------=_NextPart_000_001A_01C61785.27B79630 Content-Type: text/plain; charset=us-ascii -- 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/ ------=_NextPart_000_001A_01C61785.27B79630--