Re: File permissions on samba network share

2010-03-25 Thread Larry Hall (Cygwin)

On 3/25/2010 6:38 PM, Chris wrote:




Sorry I forgot to mention that the permissions on the Linux machine
running the Samba server are more similar to the ones when I mount the
network drive without the "noacl" option in Cygwin.

This is the ls line from the Linux machine:
-rwxrw  1 chris tech 1014 Dec 15 14:16 amssetup

On Cygwin without "noacl":
-rwxrw 1   1014 2009-12-15 14:16 amssetup

On Cygwin with "noacl"
-rw-r--r-- 1 chris None 1014 2009-12-15 14:16 amssetup

So apart from the  entries, I think going without the "noacl"
option would be the way to go. But I will give it a try with "noacl" and
see if it has any undesired side-effects.


For the curious - 

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.

Q: Are you sure?

A: Because it reverses the logical flow of conversation.

Q: Why is top posting annoying in email?


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: File permissions on samba network share

2010-03-25 Thread Chris
Corinna Vinschen  cygwin.com> writes:

> > > ...
> > > This lets the script execute, but I am a little bit worried about the 
> > > other
> > > permissions, "-rw-r--r--" instead of "-rwxrw".
> > > 
> > > Why are the permissions different?
> > 
> > http://cygwin.com/cygwin-ug-net/using.html#mount-table
> > 
> > > Is there a way of preserving the original permissions and still fake the
> > > user/group info as with "noacl"? 
> > 
> > No.  Since you're not using AD accounts and no winbind, the ACL returned
> > by Samba reflect the UNIX user and UNIX group the file is owned by.
> > I don't think there's a reliable way to convert the SIDs in the ACL to
> > the current user and primary group, except for another mount flag.
> 
> On second thought, it would still be a lot of work to get this working
> right.  The mount flag alone doesn't tell us which UNIX SID the Windows
> user SID is mapped to.  So you would need to set up some mapping file
> which Cygwin would have to read at startup, or the passwd file would
> need YA special case for the pw_gecos field.  Ick.
> 
> Corinna
> 

Sorry I forgot to mention that the permissions on the Linux machine running the
Samba server are more similar to the ones when I mount the network drive without
the "noacl" option in Cygwin. 

This is the ls line from the Linux machine:
-rwxrw  1 chris tech 1014 Dec 15 14:16 amssetup

On Cygwin without "noacl":
-rwxrw 1   1014 2009-12-15 14:16 amssetup

On Cygwin with "noacl"
-rw-r--r-- 1 chris None 1014 2009-12-15 14:16 amssetup

So apart from the  entries, I think going without the "noacl" option
would be the way to go. But I will give it a try with "noacl" and see if it has
any undesired side-effects.

Thanks
Chris


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: File permissions on samba network share

2010-03-25 Thread Corinna Vinschen
On Mar 25 09:52, Corinna Vinschen wrote:
> On Mar 25 06:50, Chris wrote:
> > Dear fellow Cygwinners,
> > 
> > I use Cygwin to work on a samba network drive and am unable to execute bash
> > scripts from there because "bash: ./amssetup: Permission denied". I think 
> > this
> > is due to the missing owner/group info:
> > 
> > $ ls -l amssetup
> > -rwxrw 1   1014 2009-12-15 14:16 amssetup
> > 
> > If I mount this network drive using the "noacl" option, it looks like this:
> > 
> > $ ls -l amssetup
> > -rw-r--r-- 1 chris None 1014 2009-12-15 14:16 amssetup
> > 
> > This lets the script execute, but I am a little bit worried about the other
> > permissions, "-rw-r--r--" instead of "-rwxrw".
> > 
> > Why are the permissions different?
> 
> http://cygwin.com/cygwin-ug-net/using.html#mount-table
> 
> > Is there a way of preserving the original permissions and still fake the
> > user/group info as with "noacl"? 
> 
> No.  Since you're not using AD accounts and no winbind, the ACL returned
> by Samba reflect the UNIX user and UNIX group the file is owned by.
> I don't think there's a reliable way to convert the SIDs in the ACL to
> the current user and primary group, except for another mount flag.

On second thought, it would still be a lot of work to get this working
right.  The mount flag alone doesn't tell us which UNIX SID the Windows
user SID is mapped to.  So you would need to set up some mapping file
which Cygwin would have to read at startup, or the passwd file would
need YA special case for the pw_gecos field.  Ick.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: File permissions on samba network share

2010-03-25 Thread Corinna Vinschen
On Mar 25 06:50, Chris wrote:
> Dear fellow Cygwinners,
> 
> I use Cygwin to work on a samba network drive and am unable to execute bash
> scripts from there because "bash: ./amssetup: Permission denied". I think this
> is due to the missing owner/group info:
> 
> $ ls -l amssetup
> -rwxrw 1   1014 2009-12-15 14:16 amssetup
> 
> If I mount this network drive using the "noacl" option, it looks like this:
> 
> $ ls -l amssetup
> -rw-r--r-- 1 chris None 1014 2009-12-15 14:16 amssetup
> 
> This lets the script execute, but I am a little bit worried about the other
> permissions, "-rw-r--r--" instead of "-rwxrw".
> 
> Why are the permissions different?

http://cygwin.com/cygwin-ug-net/using.html#mount-table

> Is there a way of preserving the original permissions and still fake the
> user/group info as with "noacl"? 

No.  Since you're not using AD accounts and no winbind, the ACL returned
by Samba reflect the UNIX user and UNIX group the file is owned by.
I don't think there's a reliable way to convert the SIDs in the ACL to
the current user and primary group, except for another mount flag.

> Or is it safe to use the "noacl" mount? 

It's safe, usually.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple