Re: Setuid exe (chmod u+s,g+s foo.exe) not working with Cygwin...

2023-09-24 Thread Brian Inglis via Cygwin
On 2023-09-24 11:21, Martin Wege via Cygwin wrote: Hello, I tried to setuid an executable, so that it runs as user "SYSTEM", but it does not work. I tried this as an user with administrator rights: chown SYSTEM:SYSTEM foo.exe chmod u+s,g+s foo.exe But running ./foo then just runs

Setuid exe (chmod u+s,g+s foo.exe) not working with Cygwin...

2023-09-24 Thread Martin Wege via Cygwin
Hello, I tried to setuid an executable, so that it runs as user "SYSTEM", but it does not work. I tried this as an user with administrator rights: chown SYSTEM:SYSTEM foo.exe chmod u+s,g+s foo.exe But running ./foo then just runs it as the current user. What am I doing wrong? Than

Re: chmod g+ws unsuccessful, "NULL SID" icacls missing

2023-02-10 Thread Corinna Vinschen via Cygwin
On Feb 10 11:42, Norton Allen via Cygwin wrote: > On 2/9/2023 4:09 PM, Corinna Vinschen wrote: > > On Feb 9 13:25, Norton Allen via Cygwin wrote: > > > On 2/8/2023 4:05 PM, Norton Allen via Cygwin wrote: > > > > [...] > > > > The problem: > > &g

Re: chmod g+ws unsuccessful, "NULL SID" icacls missing

2023-02-10 Thread Norton Allen via Cygwin
users on one machine can share full control over a particular directory hierarchy. On Linux I have usually been able to make things work with:    $ mkdir shared_dir    $ chgrp shared_group shared_dir    $ chmod g+ws shared_dir    $ umask 2 User shells are configured with umask 2 so files they

Re: chmod g+ws unsuccessful, "NULL SID" icacls missing

2023-02-09 Thread Corinna Vinschen via Cygwin
sers on one > > machine can share full control over a particular directory hierarchy. > > > > On Linux I have usually been able to make things work with: > > > >    $ mkdir shared_dir > >    $ chgrp shared_group shared_dir > >    $ chmod g+ws shared_dir >

Re: chmod g+ws unsuccessful, "NULL SID" icacls missing

2023-02-09 Thread Norton Allen via Cygwin
usually been able to make things work with:    $ mkdir shared_dir    $ chgrp shared_group shared_dir    $ chmod g+ws shared_dir    $ umask 2 User shells are configured with umask 2 so files they create have group write. Users belong to shared_group. Files and subdirs created under shared_dir are all

chmod g+ws unsuccessful, "NULL SID" icacls missing

2023-02-08 Thread Norton Allen via Cygwin
shared_dir $ chgrp shared_group shared_dir $ chmod g+ws shared_dir $ umask 2 User shells are configured with umask 2 so files they create have group write. Users belong to shared_group. Files and subdirs created under shared_dir are all in group shared_group. Files moved in retain their

Re: chmod g+s ineffective

2022-07-11 Thread Norton Allen
On 7/10/2022 10:33 PM, Eliot Moss wrote: On 7/10/2022 10:17 PM, Chris Wagner wrote: On 6/29/2022 9:18 AM, Norton Allen wrote: On one machine I have, chmod g+s fails to set the sticky bit. The >>> command does not return any error, but ls -l continues to show the bit not set. $

Re: chmod g+s ineffective

2022-07-10 Thread Eliot Moss
On 7/10/2022 10:17 PM, Chris Wagner wrote: On 6/29/2022 9:18 AM, Norton Allen wrote: On one machine I have, chmod g+s fails to set the sticky bit. The >>> command does not return any error, but ls -l continues to show the bit not set. $ mkdir foo $ chgrp flight foo      $ c

Re: chmod g+s ineffective

2022-07-10 Thread Chris Wagner
On 6/29/2022 9:18 AM, Norton Allen wrote: On one machine I have, chmod g+s fails to set the sticky bit. The >>> command does not return any error, but ls -l continues to show the bit not set. $ mkdir foo $ chgrp flight foo      $ chmod g+ws foo $ ls -ld foo drwx

Re: chmod g+s ineffective

2022-06-30 Thread Andrey Repin
Greetings, Norton Allen! > On 6/29/2022 9:18 AM, Norton Allen wrote: >> On 6/29/2022 7:39 AM, Andrey Repin wrote: >>> Greetings, Norton Allen! >>> >>>> On one machine I have, chmod g+s fails to set the sticky bit. The >>> >>>> command

Re: chmod g+s ineffective

2022-06-29 Thread Norton Allen
On 6/29/2022 9:18 AM, Norton Allen wrote: On 6/29/2022 7:39 AM, Andrey Repin wrote: Greetings, Norton Allen! On one machine I have, chmod g+s fails to set the sticky bit. The command does not return any error, but ls -l continues to show the bit not set. $ mkdir foo $ chgrp flight

Re: chmod g+s ineffective

2022-06-29 Thread Norton Allen
On 6/29/2022 7:39 AM, Andrey Repin wrote: Greetings, Norton Allen! On one machine I have, chmod g+s fails to set the sticky bit. The command does not return any error, but ls -l continues to show the bit not set. $ mkdir foo $ chgrp flight foo $ chmod g+ws foo $ ls -ld foo

Re: chmod g+s ineffective

2022-06-29 Thread Andrey Repin
Greetings, Norton Allen! > On one machine I have, chmod g+s fails to set the sticky bit. The command > does not return any error, but ls -l continues to show the bit not set. > $ mkdir foo > $ chgrp flight foo > $ chmod g+ws foo > $ ls -ld foo > drwxrw

chmod g+s ineffective

2022-06-29 Thread Norton Allen
On one machine I have, chmod g+s fails to set the sticky bit. The command does not return any error, but ls -l continues to show the bit not set. $ mkdir foo $ chgrp flight foo $ chmod g+ws foo $ ls -ld foo drwxrwxr-x+ 1 nort flight 0 Jun 29 06:50 foo I ran strace, and it looks

Re: A problem with noacl+umask+chmod result

2021-04-18 Thread Orgad Shaneh via Cygwin
On Sat, Apr 17, 2021 at 8:11 PM Kaz Kylheku (Cygwin) <743-406-3...@kylheku.com> wrote: > > On 2021-04-08 21:34, Orgad Shaneh via Cygwin wrote: > > On Fri, Apr 9, 2021 at 4:50 AM Andrey Repin > > wrote: > >> > >> Greetings, Orgad Shaneh! > >> > >> > On Wed, Apr 7, 2021 at 11:47 PM Orgad Shaneh wro

Re: A problem with noacl+umask+chmod result

2021-04-17 Thread Brian Inglis
On 2021-04-17 11:11, Kaz Kylheku (Cygwin) via Cygwin wrote: On 2021-04-08 21:34, Orgad Shaneh via Cygwin wrote: On Fri, Apr 9, 2021 at 4:50 AM Andrey Repin wrote: Why? If I report a bug, I'm interested in this bug, and I don't want to receive dozens of emails every day about other issues. The

Re: A problem with noacl+umask+chmod result

2021-04-17 Thread Kaz Kylheku (Cygwin) via Cygwin
On 2021-04-08 21:34, Orgad Shaneh via Cygwin wrote: On Fri, Apr 9, 2021 at 4:50 AM Andrey Repin wrote: Greetings, Orgad Shaneh! > On Wed, Apr 7, 2021 at 11:47 PM Orgad Shaneh wrote: > Marco Atzeri replied to the mailing list but did not CC me, so I > didn't receive it: The expectation is th

Re: A problem with noacl+umask+chmod result

2021-04-08 Thread Orgad Shaneh via Cygwin
On Fri, Apr 9, 2021 at 4:50 AM Andrey Repin wrote: > > Greetings, Orgad Shaneh! > > > On Wed, Apr 7, 2021 at 11:47 PM Orgad Shaneh wrote: > >> > >> Hi, > >> > >> If a filesystem is mounted with noacl, calling chmod to add write > >

Re: A problem with noacl+umask+chmod result

2021-04-08 Thread Andrey Repin
Greetings, Orgad Shaneh! > On Wed, Apr 7, 2021 at 11:47 PM Orgad Shaneh wrote: >> >> Hi, >> >> If a filesystem is mounted with noacl, calling chmod to add write >> permissions after umasking this permission doesn't work. Demonstrated >> with command-li

Re: A problem with noacl+umask+chmod result

2021-04-08 Thread Orgad Shaneh via Cygwin
On Wed, Apr 7, 2021 at 11:47 PM Orgad Shaneh wrote: > > Hi, > > If a filesystem is mounted with noacl, calling chmod to add write > permissions after umasking this permission doesn't work. Demonstrated > with command-line and C++. > > Did I miss something or is this a

Re: A problem with noacl+umask+chmod result

2021-04-07 Thread Marco Atzeri via Cygwin
On 07.04.2021 22:47, Orgad Shaneh via Cygwin wrote: Hi, If a filesystem is mounted with noacl, calling chmod to add write permissions after umasking this permission doesn't work. Demonstrated with command-line and C++. Did I miss something or is this a real bug? According to umask ma

A problem with noacl+umask+chmod result

2021-04-07 Thread Orgad Shaneh via Cygwin
Hi, If a filesystem is mounted with noacl, calling chmod to add write permissions after umasking this permission doesn't work. Demonstrated with command-line and C++. Did I miss something or is this a real bug? According to umask man, it should only affect newly created files and direct

Re: chmod issue on 3.1.7.

2020-12-25 Thread Kaz Kylheku (Cygwin) via Cygwin
On 2020-12-24 14:56, Ken Brown via Cygwin wrote: Could the problem be that the owner and group are the same? You can do that on unix, but I'm not sure the Windows security model allows it. For example, what happens when you remove permissions of the owner kaz while retaining the permissions of

Re: Another chmod issue on 3.1.7, Win 10.

2020-12-24 Thread Ken Brown via Cygwin
On 12/24/2020 4:30 PM, Kaz Kylheku via Cygwin wrote: Initial conditions:   0:BLACKBOX:~/txr$ rm testfile   0:BLACKBOX:~/txr$ touch testfile   0:BLACKBOX:~/txr$ chmod = testfile   0:BLACKBOX:~/txr$ ls -l testfile   -- 1 kaz kaz 0 Dec 24 13:23 testfile Now, light up all the bits

Re: chmod issue on 3.1.7.

2020-12-24 Thread Ken Brown via Cygwin
a file is created, and permissions set as follows:   0:DESKTOP-K8055OB:~$ touch tempfile   0:DESKTOP-K8055OB:~$ chmod 03777 tempfile   0:DESKTOP-K8055OB:~$ ls -l tempfile   -rwsrwsrwt 1 kaz kaz 0 Oct 10 08:59 tempfile Then "chmod u=" is not able to clear the owner's permissions t

Another chmod issue on 3.1.7, Win 10.

2020-12-24 Thread Kaz Kylheku via Cygwin
Initial conditions: 0:BLACKBOX:~/txr$ rm testfile 0:BLACKBOX:~/txr$ touch testfile 0:BLACKBOX:~/txr$ chmod = testfile 0:BLACKBOX:~/txr$ ls -l testfile -- 1 kaz kaz 0 Dec 24 13:23 testfile Now, light up all the bits, like a Christmas tree---appropriate for December 24: 0

Re: chmod issue on 3.1.7.

2020-12-24 Thread Kaz Kylheku (Cygwin) via Cygwin
:DESKTOP-K8055OB:~$ touch tempfile 0:DESKTOP-K8055OB:~$ chmod 03777 tempfile 0:DESKTOP-K8055OB:~$ ls -l tempfile -rwsrwsrwt 1 kaz kaz 0 Oct 10 08:59 tempfile Then "chmod u=" is not able to clear the owner's permissions to nothing: 0:DESKTOP-K8055OB:~$ chmod u= tempfile 0:DESKTO

Re: chmod issue on 3.1.7.

2020-10-11 Thread Kaz Kylheku (Cygwin) via Cygwin
On 2020-10-10 14:51, Brian Inglis wrote: D/ACLs on the directory could restore/maintain the permissions: could we please see the output from ls -l, getfacl, and icacls on the directory and file? Thanks for your responses, Ken and Brian. See what you can make of this: 0:DESKTOP-K8055OB:~$ ls

Re: chmod issue on 3.1.7.

2020-10-10 Thread Brian Inglis
3.1.7(0.340/5/3) 2020-08-22 19:03 i686 >> Cygwi >> >> When a file is created, and permissions set as follows: >> >>    0:DESKTOP-K8055OB:~$ touch tempfile >>    0:DESKTOP-K8055OB:~$ chmod 03777 tempfile >>    0:DESKTOP-K8055OB:~$ ls -l tempfile >>    -rws

Re: chmod issue on 3.1.7.

2020-10-10 Thread Ken Brown via Cygwin
:DESKTOP-K8055OB:~$ touch tempfile   0:DESKTOP-K8055OB:~$ chmod 03777 tempfile   0:DESKTOP-K8055OB:~$ ls -l tempfile   -rwsrwsrwt 1 kaz kaz 0 Oct 10 08:59 tempfile Then "chmod u=" is not able to clear the owner's permissions to nothing:   0:DESKTOP-K8055OB:~$ chmod u= tempfi

chmod issue on 3.1.7.

2020-10-10 Thread Kaz Kylheku (Cygwin) via Cygwin
Hi all, Running this Cygwin on a Windows 10 system: 0:DESKTOP-K8055OB:~$ uname -a CYGWIN_NT-10.0-WOW DESKTOP-K8055OB 3.1.7(0.340/5/3) 2020-08-22 19:03 i686 Cygwi When a file is created, and permissions set as follows: 0:DESKTOP-K8055OB:~$ touch tempfile 0:DESKTOP-K8055OB:~$ chmod

Re: "test" producing unexpected results after "chmod"

2018-12-23 Thread Andrey Repin
Greetings, Steven Penny! > With Linux, these commands produce expected results: > $ cd /tmp > $ touch alpha.txt > $ test -r alpha.txt; echo "$?" > 0 > $ chmod -r alpha.txt > $ test -r alpha.txt; echo "$?" > 1 > $ chm

Re: "test" producing unexpected results after "chmod"

2018-12-22 Thread Marco Atzeri
Am 23.12.2018 um 06:59 schrieb Steven Penny: With Linux, these commands produce expected results:    $ cd /tmp    $ touch alpha.txt    $ test -r alpha.txt; echo "$?"    0    $ chmod -r alpha.txt    $ test -r alpha.txt; echo "$?"    1    $ chmod +r alpha.txt    $ tes

"test" producing unexpected results after "chmod"

2018-12-22 Thread Steven Penny
With Linux, these commands produce expected results: $ cd /tmp $ touch alpha.txt $ test -r alpha.txt; echo "$?" 0 $ chmod -r alpha.txt $ test -r alpha.txt; echo "$?" 1 $ chmod +r alpha.txt $ test -r alpha.txt; echo "$?" 0 However with

Re: Cannot use screen when Cygwin is installed on a FAT32 filesystem / chmod does not work on FAT32 directories

2018-10-01 Thread Andrew Schulman
> I'm trying to use Cygwin on a Windows machine with the latest release. > The system in question must run from a filesystem formatted with FAT32 > and therefore inherits the 'noacl' field according to the documentation. > > After a clean install and running Cygwin.bat, I am greeted with the >

Cannot use screen when Cygwin is installed on a FAT32 filesystem / chmod does not work on FAT32 directories

2018-09-30 Thread Matt D.
ocket.c of screen's source code but I'm not sure. I have read a number of comments online about these permission errors for both Cygwin and various Linux installations. All of them recommend either setting the permissions to 777 with chmod or altering the NTFS permissions, both of which has no af

Re: chmod failing on user's permissions

2016-11-30 Thread Corinna Vinschen
On Nov 30 09:23, Ben Altman wrote: > On 11/28/2016 7:00 PM, L. A. Walsh wrote: > > Ben Altman wrote: When I get a directory listing, it shows for each > > > file "Unknown+User Unknown+Group" while on the desktop the same files > > > show my user name that I logged in with and "Domain Users" as the

Re: chmod failing on user's permissions

2016-11-30 Thread Ben Altman
On 11/28/2016 7:00 PM, L. A. Walsh wrote: Ben Altman wrote: When I get a directory listing, it shows for each file "Unknown+User Unknown+Group" while on the desktop the same files show my user name that I logged in with and "Domain Users" as the group. --- Is your laptop a member of the dom

Re: chmod failing on user's permissions

2016-11-28 Thread L. A. Walsh
Ben Altman wrote: When I log in to my account at work I get access to a network location accessed as a drive dedicated to me. I log in from 2 locations - my laptop and desktop. --- Were both setup by your company's IT department, or if not, who? Are they both running the same version of

chmod failing on user's permissions

2016-11-28 Thread Ben Altman
When I log in to my account at work I get access to a network location accessed as a drive dedicated to me. I log in from 2 locations - my laptop and desktop. Directory listings and chmod work as expected on the desktop but when I try to do a chmod on the laptop, it fails for the user&#

Re: How to remove pesky persistent +x bits that chmod -x won't remove

2016-05-20 Thread Warren Young
On May 19, 2016, at 7:01 PM, Warren Young wrote: > > For what it’s worth, setfacl -bk followed by a chmod -x sometimes always > fixes this. I’ve solved this by applying that fix to the affected directory trees in bulk: $ find foo bar baz -exec setfacl -kb {} \; Heavy-hande

How to remove pesky persistent +x bits that chmod -x won't remove

2016-05-19 Thread Warren Young
I think I have an ACL inheritance problem. Here’s the scenario: $ ls -l Protocol.md ## Boo, bad permissions; shouldn’t be +x! -rwxr--r--+ 1 Warren Warren 4.3K May 19 18:41 Protocol.md* $ chmod -x Protocol.md $ ls -l Protocol.md ## Still +x! Did I stutter? -rwxr--r--+ 1 Warren

Re: git clone fails with error chmod on config.lock failed: Invalid argument

2016-04-21 Thread Corinna Vinschen
t;>>update procedure before I notified the chmod error. > >>>>A months ago, I had to migrate to the new AD account. The cygwin was > >>>>installed using my old account, which is deleted now. Is it possible that > >>>>the query to AD runs

Re: git clone fails with error chmod on config.lock failed: Invalid argument

2016-04-21 Thread Tomas Jura
On 04/20/2016 04:25 PM, Corinna Vinschen wrote: On Apr 20 15:05, Tomas Jura wrote: On 04/19/2016 03:39 PM, Corinna Vinschen wrote: BTW: My machine is Windows Server 2008, yesterday I also run the Windows update procedure before I notified the chmod error. A months ago, I had to migrate to the

Re: git clone fails with error chmod on config.lock failed: Invalid argument

2016-04-20 Thread Corinna Vinschen
On Apr 20 15:05, Tomas Jura wrote: > On 04/19/2016 03:39 PM, Corinna Vinschen wrote: > >>BTW: My machine is Windows Server 2008, yesterday I also run the Windows > >>update procedure before I notified the chmod error. > >>A months ago, I had to migrate to the

Re: git clone fails with error chmod on config.lock failed: Invalid argument

2016-04-20 Thread Tomas Jura
On 04/19/2016 03:39 PM, Corinna Vinschen wrote: BTW: My machine is Windows Server 2008, yesterday I also run the Windows update procedure before I notified the chmod error. A months ago, I had to migrate to the new AD account. The cygwin was installed using my old account, which is deleted now

Re: git clone fails with error chmod on config.lock failed: Invalid argument

2016-04-19 Thread Corinna Vinschen
-3229423371-1046061999-513:513: This is group 513 of the local SAM. This is not related. > BTW: My machine is Windows Server 2008, yesterday I also run the Windows > update procedure before I notified the chmod error. > A months ago, I had to migrate to the new AD account. The cygwin was >

Re: git clone fails with error chmod on config.lock failed: Invalid argument

2016-04-19 Thread Tomas Jura
:513: BTW: My machine is Windows Server 2008, yesterday I also run the Windows update procedure before I notified the chmod error. A months ago, I had to migrate to the new AD account. The cygwin was installed using my old account, which is deleted now. Is it possible that the query to AD run

Re: git clone fails with error chmod on config.lock failed: Invalid argument

2016-04-19 Thread Corinna Vinschen
On Apr 19 09:22, Tomas Jura wrote: > Hi > > I got error chmod on config.lock failed: Invalid argument and I was able to > catch the strace. It is attached. What I see from the strace, chmod fails to request group information: 299755 597014 [main] chmod 5840 internal_getlogin: gro

git clone fails with error chmod on config.lock failed: Invalid argument

2016-04-19 Thread Tomas Jura
Hi I got error chmod on config.lock failed: Invalid argument and I was able to catch the strace. It is attached. I had a suspicion to locales, but with the LC_ALL=C chmod 777 x Use CC: to my email address for any questions or requests for testing. I'm not in the mailing list.

Re: chmod failed: Invalid argument

2016-02-10 Thread Corinna Vinschen
On Feb 10 11:59, Rainer Blome wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On 08.02.2016 15:29, Corinna Vinschen wrote: > > On Jan 31 21:24, Rainer Blome wrote: > >> On 28.01.2016 21:40, Corinna Vinschen wrote: > > On a hunch, do you have old /etc/passwd and /etc/group >

Re: chmod failed: Invalid argument

2016-02-10 Thread Rainer Blome
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 08.02.2016 15:29, Corinna Vinschen wrote: > On Jan 31 21:24, Rainer Blome wrote: >> On 28.01.2016 21:40, Corinna Vinschen wrote: > On a hunch, do you have old /etc/passwd and /etc/group > files There is no `/etc/group`, but `/etc/pass

Re: chmod failed: Invalid argument

2016-02-08 Thread Corinna Vinschen
method. > > On my Cygwin 2.4.1, to get things to run the way I want them, I > renamed `/etc/passwd.renamed` back to `/etc/passwd`, and replaced > the old group id by the ID of group "None", 197121. > In a new terminal, things now run as expected, SSH finds its .ssh > dire

Re: chmod failed: Invalid argument

2016-01-31 Thread Rainer Blome
passwd`. Since it is small, I see no harm in using this method. On my Cygwin 2.4.1, to get things to run the way I want them, I renamed `/etc/passwd.renamed` back to `/etc/passwd`, and replaced the old group id by the ID of group "None", 197121. In a new terminal, things now run as expect

Re: chmod failed: Invalid argument

2016-01-28 Thread Corinna Vinschen
Does moving them out of /etc (don't delete them for now!), > > exiting from Cygwin and starting a new shell somehow fix things for you? > > How do the files look like? > > Define "old"! ;-) Yes, I do. There is no `/etc/group`, but > `/etc/passwd` defines the group ID

Re: chmod failed: Invalid argument

2016-01-28 Thread Rainer Blome
nce? Does moving them out of /etc (don't delete them for now!), > exiting from Cygwin and starting a new shell somehow fix things for you? > How do the files look like? Define "old"! ;-) Yes, I do. There is no `/etc/group`, but `/etc/passwd` defines the group ID of my user as 213

Re: Re: git clone fails with: error: chmod on config.lock failed: Invalid argument

2016-01-28 Thread Corinna Vinschen
On Jan 28 17:11, Rainer Blome wrote: > > Gesendet: Donnerstag, 28. Januar 2016 um 15:33 Uhr > > Von: "Corinna Vinschen" > > Also, an strace of chmod, e.g. > > > > $ strace -o chmod.strace chmod 777 x > > > > might be helpful. Please send

Re: Re: chmod failed: Invalid argument

2016-01-28 Thread Corinna Vinschen
On Jan 28 17:06, Rainer Blome wrote: > > Corinna Vinschen wrote 2016-01-28 15-44: > > On Jan 28 15:24, Rainer Blome wrote: > > > > The "In-Reply-To" is still missing in your mails, so you're invariably > > breaking threading. T'would be nice if you could make your mailer > > behave :) > > This is

Aw: Re: git clone fails with: error: chmod on config.lock failed: Invalid argument

2016-01-28 Thread Rainer Blome
> Gesendet: Donnerstag, 28. Januar 2016 um 15:33 Uhr > Von: "Corinna Vinschen" > Also, an strace of chmod, e.g. > > $ strace -o chmod.strace chmod 777 x > > might be helpful. Please send the file chmod.strace with your reply. $ strace -o chmod.strace chmod 7

Aw: Re: chmod failed: Invalid argument

2016-01-28 Thread Rainer Blome
e that I have a mail to reply to, hope the threading is preserved now. > > > Corinna Vinschen wrote: > > > On Jan 28 01:27, Christopher Cobb wrote: > > >> Or maybe chmod is broken, like it is on my machine: > > >> $ chmod 777 x > > >> chmod: ch

Re: chmod failed: Invalid argument

2016-01-28 Thread Corinna Vinschen
you could make your mailer behave :) > > Corinna Vinschen wrote: > > On Jan 28 01:27, Christopher Cobb wrote: > >> Or maybe chmod is broken, like it is on my machine: > >> $ chmod 777 x > >> chmod: changing permissions of âxâ: Invalid argument > > >

Re: git clone fails with: error: chmod on config.lock failed: Invalid argument

2016-01-28 Thread Corinna Vinschen
t; > > done. > > > > > > > > > >When I use the same command on my Cygwin 64 installation, this used > > > > >to work, but does not work any more. I can fetch and otherwise use > > > > >Git in existing repos all right (have not

Re: chmod failed: Invalid argument [was: git clone fails with: error: chmod on config.lock failed: Invalid argument]

2016-01-28 Thread Corinna Vinschen
Rainer, please make sure your mailer doesn't break threading. I tweaked the "In-Reply-To" now to return to the original thread on the mailing list. Thank you. On Jan 28 14:44, Rainer Blome wrote: > Christopher Cobb wrote on Thu, 28 Jan 2016 01:27:16 +0100: > > Or maybe

Re: chmod failed: Invalid argument

2016-01-28 Thread Rainer Blome
(Apologies for not using the reply feature, I was not subscribed when the last mail was sent. I am now subscribed.) > Corinna Vinschen wrote: > On Jan 28 01:27, Christopher Cobb wrote: >> Or maybe chmod is broken, like it is on my machine: >> $ chmod 777 x >> chmod: cha

chmod failed: Invalid argument [was: git clone fails with: error: chmod on config.lock failed: Invalid argument]

2016-01-28 Thread Rainer Blome
Christopher Cobb wrote on Thu, 28 Jan 2016 01:27:16 +0100: > Or maybe chmod is broken, like it is on my machine You nailed it, thanks! Indeed, `chmod` appears to always fail, on any file. Git tries to use it, and that fails. cd touch foo ls -l foo -rwx-- 1 myusername 213 0 Jan 28 14

Re: git clone fails with: error: chmod on config.lock failed: Invalid argument

2016-01-28 Thread Andrey Repin
Greetings, Christopher Cobb! > Or maybe chmod is broken, like it is on my machine: > $ touch x > $ chmod 777 x > chmod: changing permissions of ‘x’: Invalid argument Please provide details according to > Problem reports: http://cygwin.com/problems.html And please r

Re: git clone fails with: error: chmod on config.lock failed: Invalid argument

2016-01-28 Thread Corinna Vinschen
llation, this used > > > >to work, but does not work any more. I can fetch and otherwise use > > > >Git in existing repos all right (have not noticed anything else > > > >amiss), but the clone command fails like this: > > > > > > > > &

Re: git clone fails with: error: chmod on config.lock failed: Invalid argument

2016-01-27 Thread Christopher Cobb
Or maybe chmod is broken, like it is on my machine: $ touch x $ chmod 777 x chmod: changing permissions of ‘x’: Invalid argument > Sent: Wednesday, January 27, 2016 at 9:53 AM > From: "Corinna Vinschen" > To: cygwin@cygwin.com > Subject: Re: git clone fails with: error

Re: git clone fails with: error: chmod on config.lock failed: Invalid argument

2016-01-27 Thread Corinna Vinschen
> > >When I use the same command on my Cygwin 64 installation, this used > >to work, but does not work any more. I can fetch and otherwise use > >Git in existing repos all right (have not noticed anything else > >amiss), but the clone command fails like this: >

Re: git clone fails with: error: chmod on config.lock failed: Invalid argument

2016-01-27 Thread Ken Brown
re. I can fetch and otherwise use Git in existing repos all right (have not noticed anything else amiss), but the clone command fails like this: cd /cygdrive/c/base git clone foo bar Cloning into 'bar'... error: chmod on /cygdrive/c/base/bar/.git/config.lock failed: Invalid argument er

git clone fails with: error: chmod on config.lock failed: Invalid argument

2016-01-27 Thread Rainer Blome
ting repos all right (have not noticed anything else amiss), but the clone command fails like this: cd /cygdrive/c/base git clone foo bar Cloning into 'bar'... error: chmod on /cygdrive/c/base/bar/.git/config.lock failed: Invalid argument error: chmod on /cygdrive/c/base/bar/.git/config

file-error "doing chmod" "permission denied" issue

2015-07-12 Thread susja
Hello, I'm using cygwin 64bit on Windows 7. I'm using X-emacs under cygwin. In emacs I use eshell. When I open text file and modify it and then save I have this error: Error: (file-error "doing chmod" "permission denied" "") I followed all instructions t

RE: Possible chmod problem with a path [WARNING: SPF validation failed]

2015-03-30 Thread Phil Smith
Well well -- making that fstab change alone (and rebooting) seems to have fixed it! Release notes says: Since 1.7.34, chmod does not always affect the POSIX permission mask as returned by stat(2) or printed by ls(1), due to the improved POSIX ACL handling. However, that's still far

Re: Possible chmod problem with a path [WARNING: SPF validation failed]

2015-03-30 Thread Andrey Repin
Greetings, Phil Smith! >>Please use Cygwin paths with Cygwin tools. >>Windows paths are not guaranteed to work with every Cygwin tool. > This is scripted, and while I can hack it to use Cygwin paths, it probably > shouldn't be lying to me, saying that it worked. And it did work before, > still do

RE: Possible chmod problem with a path [WARNING: SPF validation failed]

2015-03-30 Thread Phil Smith
Thanks for the reply. Some thoughts: >Please use Cygwin paths with Cygwin tools. >Windows paths are not guaranteed to work with every Cygwin tool. This is scripted, and while I can hack it to use Cygwin paths, it probably shouldn't be lying to me, saying that it worked. And it did work before, s

Re: Possible chmod problem with a path

2015-03-30 Thread Andrey Repin
Greetings, Phil Smith! > The short description is that chmod *with a path* says it works, but > doesn't. If I cd to the directory and do it from there, it works. > This behavior *seems* to have started recently, after I installed gawk (and > in the process updated some other

Possible chmod problem with a path

2015-03-30 Thread Phil Smith
The short description is that chmod *with a path* says it works, but doesn't. If I cd to the directory and do it from there, it works. This behavior *seems* to have started recently, after I installed gawk (and in the process updated some other Cygwin bits). Our scaffolding for some

Re: chmod: creator owner victimized? ... (1.7.35-0.4)

2015-02-25 Thread Corinna Vinschen
es, as far as I can tell) > > > > Yeah, I noticed that problem myself a few hours ago and applied a fix in > > the meantime. In CVS, the chmod workaround does not touch the CREATOR > > OWNER, CREATOR GROUP and Everyone default ACEs anymore. I'll create a >

Re: chmod: creator owner victimized? ... (1.7.35-0.4)

2015-02-25 Thread Houder
;-) >> >> For a directory, the 'creator owner' should have sufficient permissions. >> That is, at least 'full control >> minus delete'; full control is good. (yes, as far as I can tell) > > Yeah, I noticed that problem myself a few hours ago and ap

Re: chmod: creator owner victimized? ... (1.7.35-0.4)

2015-02-25 Thread Corinna Vinschen
27;creator owner' should have sufficient permissions. That > is, at least 'full control > minus delete'; full control is good. (yes, as far as I can tell) Yeah, I noticed that problem myself a few hours ago and applied a fix in the meantime. In CVS, the chmod workaround d

chmod: creator owner victimized? ... (1.7.35-0.4)

2015-02-25 Thread Houder
27;full control minus delete'; full control is good. (yes, as far as I can tell) (with respect to setfacl, I made a similar remark) That has changed in 1.7.35-0.4 with respect to chmod ... As result one cannot 'touch' (create) a file in a subdirectory, that has been created using E

Re: ls not in sync with chmod (weird problems with file permissions)

2015-02-10 Thread Corinna Vinschen
; All my file permissions that were correctly reported by ls -l as > >> rw-r--r-- became all of a sudden -rw-rwxr--+ ??? The same for > >> directories where all previously 755 dirs came back as drwxrwxr-x+ > >> > >> > >> ... > >> % chmod 644 bu

Re: ls not in sync with chmod (weird problems with file permissions)

2015-02-10 Thread Corinna Vinschen
On Feb 9 22:00, diod lightbulb wrote: > However, I'd like to ask somthing else, is there a way to make newly > created files outside my home to respect my umask? I just tried touch > still buggy; ll stillbuggy reports -rw-rwxr--+ while stat -c " %a %u > %g" stillbuggy gives back " stillbuggy

Re: ls not in sync with chmod (weird problems with file permissions)

2015-02-09 Thread Andrey Repin
Greetings, diod lightbulb! > All I can do now is apparently to run all my pre-existing files thru > setfacl -b (I like to keep my files with 644 permissions) followed by > chmod. I just have to figure out how to retain the execution bit for > the few select executables that need it

Re: ls not in sync with chmod (weird problems with file permissions)

2015-02-09 Thread diod lightbulb
t; rw-r--r-- became all of a sudden -rw-rwxr--+ ??? The same for >> directories where all previously 755 dirs came back as drwxrwxr-x+ >> >> >> ... >> % chmod 644 buggy >> % stat -c " %a %u %g" buggy >> " buggy 674 1000 545 >> >>

Re: ls not in sync with chmod (weird problems with file permissions)

2015-02-09 Thread diod lightbulb
directories were created by cygwin-related apps b- After your fix, the ACLs struck back in non-cygwin generated files. Unfortunately, even if I took care chmod'ing (644) nearly all my files, the ACLs got rid of all that. All I can do now is apparently to run all my pre-existing files thru set

Re: ls not in sync with chmod (weird problems with file permissions)

2015-02-09 Thread Thomas Wolff
came back as drwxrwxr-x+ ... % chmod 644 buggy % stat -c " %a %u %g" buggy " buggy 674 1000 545 Oooch, no change??? chmod used to work before today (BTW, same behavior for pre-existing files: chmod has no effect). ... See my mail about "group permissions". This would reso

Re: ls not in sync with chmod (weird problems with file permissions)

2015-02-09 Thread Corinna Vinschen
On Feb 9 16:37, diod lightbulb wrote: > HI all, > > Maybe this is a regression. This is linked to the problem reported in > this other thread https://cygwin.com/ml/cygwin/2015-02/msg00100.html . > I took notice of > it right after I updated cygwin (setup.exe 2.867) today. Does https://cygwin.com

ls not in sync with chmod (weird problems with file permissions)

2015-02-09 Thread diod lightbulb
eb 7 20:07 buggy* % stat -c " %a %u %g" buggy " buggy 674 1000 545 What the hell? I expected 644. % chmod 644 buggy % stat -c " %a %u %g" buggy " buggy 674 1000 545 Oooch, no change??? chmod used to work before today (BTW, same behavior for pre-existing files: c

local admin `chmod 400` still can write

2014-07-30 Thread Ilya Basin
Hi. From cygwin shell I'm able to read and write files even though my Windows user has no permission for it. I tried `chmod` and to deny everything for Everyone in the Windows dialog, but it didn't help. How is it possible? $ id uid=48466(basin) gid=545(Users) groups=545(Use

Re: chmod Not Working

2013-12-30 Thread Max Polk
On 12/30/2013 2:23 PM, Nellis, Kenneth wrote: From: bartels On 12/30/2013 06:16 AM, Nithin Kurien wrote: When I type the following sequence of commands: cd ~; mkdir sample; chmod -R 0700 sample; stat -c "%a %u %g" sample; rm -rf sample; mkdir sample; chmod -R 0755 sample; stat -c

RE: chmod Not Working

2013-12-30 Thread Nellis, Kenneth
From: bartels > > On 12/30/2013 06:16 AM, Nithin Kurien wrote: > > When I type the following sequence of commands: > > > > cd ~; mkdir sample; chmod -R 0700 sample; stat -c "%a %u %g" sample; > > rm -rf sample; mkdir sample; chmod -R 0755 sample; stat -c

Re: chmod Not Working

2013-12-30 Thread bartels
On 12/30/2013 06:16 AM, Nithin Kurien wrote: When I type the following sequence of commands: cd ~; mkdir sample; chmod -R 0700 sample; stat -c "%a %u %g" sample; rm -rf sample; mkdir sample; chmod -R 0755 sample; stat -c "%a %u %g" sample the output is: 770 1001 513 775 10

chmod Not Working

2013-12-29 Thread Nithin Kurien
When I type the following sequence of commands: cd ~; mkdir sample; chmod -R 0700 sample; stat -c "%a %u %g" sample; rm -rf sample; mkdir sample; chmod -R 0755 sample; stat -c "%a %u %g" sample the output is: 770 1001 513 775 1001 513 Why is chmod not working? OS: Windows

Re: chmod questions

2013-08-07 Thread J. David Boyd
Drew Adams writes: > I have read various info regarding trying to make Cygwin's `chmod' > work as (I) expected, including the Cygwin FAQ and user guide. > I am using Windows 7 with an NTFS disk. My user and group are > defined as they should be AFAIK. > > Two questio

Re: chmod questions

2013-08-07 Thread Larry Hall (Cygwin)
On 8/7/2013 2:33 PM, Drew Adams wrote: I have read various info regarding trying to make Cygwin's `chmod' work as (I) expected, including the Cygwin FAQ and user guide. I am using Windows 7 with an NTFS disk. My user and group are defined as they should be AFAIK. Two questions in t

chmod questions

2013-08-07 Thread Drew Adams
I have read various info regarding trying to make Cygwin's `chmod' work as (I) expected, including the Cygwin FAQ and user guide. I am using Windows 7 with an NTFS disk. My user and group are defined as they should be AFAIK. Two questions in this regard: . is "chmod a-w"

Re: chmod problem

2012-04-05 Thread Corinna Vinschen
On Apr 5 05:37, Karl M wrote: > On Apr 5 14:25, Corinna Vinschen wrote: > > It works still fine for me if I don't use the same Windows group as > > owner and as group of the file. > > Btw., there were no changes at all between 1.7.10 and 1.7.12 which > would even

RE: chmod problem

2012-04-05 Thread Karl M
; of the SID S-1.5.32.544 having rw- permissions. > > > > > > Apart from that, the owner of the /etc/ssh* files should be cyg_server, > > > not the admins group. > > > > > I name my cyg_server user root. > > But your root group is the same as the

  1   2   3   4   5   >