Re: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-26 Thread Andrey Repin
Greetings, Michel Bardiaux! >> From: Andrey Repin >> Mode on the *nix side seems unimportant, as Samba fakes ACL, if client do >> not understand native modes. > It is unimportant if the samba share is just a file server for Windows > machines. It is unimportant in the currently discussed issue.

RE: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-26 Thread Michel Bardiaux
> From: Andrey Repin > Mode on the *nix side seems unimportant, as Samba fakes ACL, if client do not understand native > modes. It is unimportant if the samba share is just a file server for Windows machines. But if you also work on 'nix machines, locally on that server or via nfs, then you want m

Re: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-24 Thread Andrey Repin
Greetings, Michel Bardiaux! >> Another point of note: from my memory, samba fakes ACLs to represent >> permissions. This may include many strange things. >> For example, most of that ^^ directory content has 0777 perms, but >> when I look from Cygwin, it >> coming out more granular. > Which is wh

RE: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-24 Thread Michel Bardiaux
> From Andrey Repin [snip] >> 0744 for global, 0755 for homes (the relevant share in my case), 0022 >> as cygwin umask. Sorry, correction: create mask 0744, create mode 0755. Which does help my confusion: >> I would expect files created on the cygwin side to have 0755 on the >> linux side (or

Re: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-24 Thread Andrey Repin
Greetings, Michel Bardiaux! >>> I have also tried the same as you did (len.sh on a samba share) and >>> saw the same problem. Then I saw that the len.sh got a (cygwin *and* >>> linux) mode of -rwxrw-r-- *without* doing any chmod. Then I saw that >>> *every* file I create on the samba share, gets

RE: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-24 Thread Michel Bardiaux
> Greetings, Michel Bardiaux! > >> I have also tried the same as you did (len.sh on a samba share) and >> saw the same problem. Then I saw that the len.sh got a (cygwin *and* >> linux) mode of -rwxrw-r-- *without* doing any chmod. Then I saw that >> *every* file I create on the samba share, gets

Re: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-24 Thread Andrey Repin
Greetings, Michel Bardiaux! > I have also tried the same as you did (len.sh on a samba share) and saw > the same problem. Then I saw that the len.sh got a (cygwin *and* linux) > mode of -rwxrw-r-- *without* doing any chmod. Then I saw that *every* > file I create on the samba share, gets the same

FW: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-23 Thread Michel Bardiaux
Sorry, forgot to change the recipient. -Original Message- > [snip] > >> lgiambro@lorien ~ >> $ cat len.sh >> #!/bin/sh >> echo it works > > And man sh states " --norc Do  not  read  and  execute the personal > initialization file ~/.bashrc if the >              shell is interactive.  Thi

RE: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-23 Thread Michel Bardiaux
[snip] >> Y: /cygdrive/y smbfs binary,noacl,auto 0 0 > That won't work. Don't try to overload the cygdrive prefix for single > drives, that's not supported. Ooops. How do I restore the normal default? It no longer appears in 'mount'. > Use something like > Y: /my_y_drive whatever binary,noac

Re: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-23 Thread Corinna Vinschen
On Apr 23 14:26, Michel Bardiaux wrote: > [snip] > > > You could mount the samba share with "noacl", > > see http://cygwin.com/cygwin-ug-net/using.html#mount-table > > Corinna > > Thanks for the suggestion. I have added this to /etc/fstab: > > Y: /cygdrive/y smbfs binary,noacl,auto 0 0 That won

Re: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-23 Thread Corinna Vinschen
On Apr 23 13:53, Corinna Vinschen wrote: > On Apr 23 13:02, Michel Bardiaux wrote: > > [snip] > > > > > lgiambro@lorien ~ > > > $ cat len.sh > > > #!/bin/sh > > > echo it works > > > > And man sh states " --norc Do not read and execute the personal > > initialization file ~/.bashrc if the > >

RE: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-23 Thread Michel Bardiaux
[snip] > You could mount the samba share with "noacl", > see http://cygwin.com/cygwin-ug-net/using.html#mount-table > Corinna Thanks for the suggestion. I have added this to /etc/fstab: Y: /cygdrive/y smbfs binary,noacl,auto 0 0 Closed all cygwin windows, reopened one (mintty), mount says: C:/

Re: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-23 Thread Corinna Vinschen
On Apr 23 13:02, Michel Bardiaux wrote: > [snip] > > > lgiambro@lorien ~ > > $ cat len.sh > > #!/bin/sh > > echo it works > > And man sh states " --norc Do not read and execute the personal > initialization file ~/.bashrc if the > shell is interactive. This option is on by defa

Re: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-23 Thread Earnie Boyd
On Mon, Apr 23, 2012 at 7:02 AM, Michel Bardiaux wrote: > [snip] > >> lgiambro@lorien ~ >> $ cat len.sh >> #!/bin/sh >> echo it works > > And man sh states " --norc Do  not  read  and  execute the personal > initialization file ~/.bashrc if the >              shell is interactive.  This option is

RE: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-23 Thread Michel Bardiaux
[snip] > lgiambro@lorien ~ > $ cat len.sh > #!/bin/sh > echo it works And man sh states " --norc Do not read and execute the personal initialization file ~/.bashrc if the shell is interactive. This option is on by default if the shell is invoked as sh." Which el

Re: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-20 Thread Len Giambrone
-Len On Apr 19, 2012, at 7:37 AM, Earnie Boyd wrote: > On Wed, Apr 18, 2012 at 3:44 PM, Len Giambrone > wrote: >> No. That works. presumably because it's executing "bash" and not >> the script itself. > > http://cygwin.com/acronyms/#TOFU > > And does the script contain #! /bin/sh or the

Re: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-20 Thread Len Giambrone
-Len On Apr 19, 2012, at 4:29 AM, Michel Bardiaux wrote: > 2 suggestions: > > 1. What happens if len.sh is in your Cygwin home, that is on the local > drive? lgiambro@lorien ~ $ ./len.sh it works > > 2. What happens with "sh -x ./len.sh" (on the network drive)? > lgiambro@lorien //kits

Re: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-19 Thread Earnie Boyd
On Wed, Apr 18, 2012 at 3:44 PM, Len Giambrone wrote: > No.  That works.  presumably because it's executing "bash" and not > the script itself. http://cygwin.com/acronyms/#TOFU And does the script contain #! /bin/sh or the like on line 1 column 1? -- Earnie -- https://sites.google.com/site/ear

RE: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-19 Thread Michel Bardiaux
2 suggestions: 1. What happens if len.sh is in your Cygwin home, that is on the local drive? 2. What happens with "sh -x ./len.sh" (on the network drive)? HaND, -Original Message- No. That works. presumably because it's executing "bash" and not the script itself. -Len On Apr 18,

Re: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-18 Thread Len Giambrone
No. That works. presumably because it's executing "bash" and not the script itself. -Len On Apr 18, 2012, at 1:49 PM, Earnie Boyd wrote: > On Wed, Apr 18, 2012 at 11:44 AM, Len Giambrone > wrote: >> I'm can't execute shell scripts on a samba share served by our linux boxes. >> >> lgiambro

Re: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-18 Thread Earnie Boyd
On Wed, Apr 18, 2012 at 11:44 AM, Len Giambrone wrote: > I'm can't execute shell scripts on a samba share served by our linux boxes. > > lgiambro@lorien //kitserver/kits > $ ls -la len.sh > -rwx-- 1 lgiambro releng 24 Apr 18 10:48 len.sh > > lgiambro@lorien //kitserver/kits > $ cat len.sh > #!

cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-18 Thread Len Giambrone
I'm can't execute shell scripts on a samba share served by our linux boxes. lgiambro@lorien //kitserver/kits $ ls -la len.sh -rwx-- 1 lgiambro releng 24 Apr 18 10:48 len.sh lgiambro@lorien //kitserver/kits $ cat len.sh #!/bin/sh echo it works lgiambro@lorien //kitserver/kits $ ./len.sh -bash