This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: setup.exe messing with file permissions on downloads folder


On Jan 27 17:42, Andrey Repin wrote:
> Greetings, cygwin@cygwin.com.
> 
> I have cygwin storage directory on network share, and it was not an issue for
> a years.
> Today, when I attempted an update, it warned me that next major release is
> pushed and I probably want to review changes. I did that, haven't spotted
> anything potentially destructive, and ... tried to... proceed with upgrade.
> It ended rather quickly, when setup.exe was started creating directories it
> was unable to write to.
> Default permissions on disk, where network share located) is set to
> SYSTEM = full
> Administrators = full
> Everyone = R&X
> Owner = Administrators
> All permissions is inherited from the drive root.
> When I attempt to write files/create directories at that location by normal
> means (Explorer, notepad etc.), it all works without an issue.
> But cygwin setup... It trying to add local user SID to remote file
> permissions... and add OWNER-related rights to it.

That's basically correct.  Setup sets the file permissions to POSIX
permissions.  Since your screenshot doesn't give enough information, I
don't see why this fails for you.  The entries look basically ok, except
for the fact that the user SID isn't known for some reason.  Output of
the Windows cacls command would have been more informative.

> How it is supposed to work, anyway? I don't have Windows domain at home...

Usually you don't have to.  Your user account is known to your
own machine, so I don't understand why it doesn't show the correct
user name.

Maybe, what setup should do is either to leave permissions alone when
downloading the package files, or the permissions for the package files
and the package directories should always be set to 664, so that the
group (usually Administrators) has always write permissions.



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]