Subject: RE: CHMOD not changing mode
From: [email-masked] (Brian Smith)

11 Dec 1998 05:01:14 -0800
Message-ID: <003d01be2476$bb7cc610$9af72299.cygnus.gnu-win32@fred>
References: <[email-masked]>
Reply-To: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
To: <[email-masked]>, <[email-masked]>

I received this private response to my posting, but seeing that others can
benefit, here it is:

And also, the "-v" option of chmod will tell you what it is doing (or thinks
it is doing!).

Brian

> -----Original Message-----
> From: [email-masked] [mailto:[email-masked]]On
> Behalf Of Bernard DAUTREVAUX
> Sent: Wednesday, December 09, 1998 10:15 AM
> To: GnuWin32 Mailing list (Adresse de messagerie)
> Subject: FW: CHMOD not changing mode
>
>
> > -----Original Message-----
> > From:	Michael Hirmke [SMTP:[email-masked]]
> > Sent:	Tuesday, December 08, 1998 21:31
> > To:	[email-masked]
> > Subject:	Re: CHMOD not changing mode
> >
> > Hi Brian,
> >
> > [...]
> > >I am trying to change the mode of a file to 777 using "chmod -v 777
> > >output.dat"
> > >Chmod reports:
> > >"mode of output.dat changed to 0777 (rwxrwxrwx)"
> > >But the file mode does not change, as evidenced by an ls -l.
> > >
> > >Any tricks or simple solutions?
> >
> > Sure you are using the Cygnus chmod ?
> > This one normally doesn't tell you that it has changed mode.
> >
> > >
> > >Thanks,
> > >
> > >Brian
> >
> > Bye.
> > Michael.
>
> Effectively, cygwin chmod does not print anything, but does not
> DO anything
> either:
>
> bash-2.02$ ls -l mccR.c
> -rw-r--r--   1 544      IngTnieu      432 Dec  9 11:24 mccR.c
> bash-2.02$ chmod a+rwx mccR.c
> bash-2.02$ ls -l mccR.c
> -rw-r--r--   1 544      IngTnieu      432 Dec  9 11:24 mccR.c
> bash-2.02$ uname -a
> CYGWIN_NT-4.0 PC35 20.1 (0.3/1/1) 1998-12-3 20:39:18 i586 unknown
> bash-2.02$ type chmod
> chmod is hashed (/Cygnus/Cygwin-B20/H-i586-cygwin32/bin/chmod)
> bash-2.02$ cygcheck /Cygnus/Cygwin-B20/H-i586-cygwin32/bin/chmod.exe
> /Cygnus/Cygwin-B20/H-i586-cygwin32/bin/chmod.exe
>   /Cygnus/Cygwin-B20/H-i586-cygwin32/bin\cygwin1.dll
>     C:\WINNT\System32\advapi32.dll
>       C:\WINNT\System32\ntdll.dll
>       C:\WINNT\System32\KERNEL32.dll
>       C:\WINNT\System32\USER32.dll
>         C:\WINNT\System32\GDI32.dll
>       C:\WINNT\System32\RPCRT4.dll
>
> Any idea someone?
>
> Regards,
>
> 	Bernard,
> ------------------------------------------------------------------
> ------------
> Bernard Dautrevaux
> Microprocess Ingéniérie
> 97 bis, rue de Colombes
> 92400 COURBEVOIE
> FRANCE
> Tel: +33 (0) 1 47 68 80 80
> Fax: +33 (0) 1 47 88 97 85
> e-mail: b. [email-masked]
> ------------------------------------------------------------------
> ------------
>
> -
> For help on using this list (especially unsubscribing), send a message to
> "[email-masked]" with one line of text: "help".
>

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".