public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Postinstal failure for xinit.sh
@ 2013-07-27 22:23 Angelo Graziosi
2013-07-29 13:17 ` Angelo Graziosi
0 siblings, 1 reply; 2+ messages in thread
From: Angelo Graziosi @ 2013-07-27 22:23 UTC (permalink / raw)
To: XCygwin
For completenes, I want to flag that on Windows 7 U 64b and Cygwin32
(but should be the same for Cygwin64) xinit.sh (postinstall) fails as
follows (from setu.log.full):
[...]
2013/07/27 23:41:15 running: C:\cygwin\bin\bash.exe --norc --noprofile
"/etc/postinstall/xinit.sh"
/usr/bin/mkdir: cannot create directory
`/cygdrive/c/ProgramData/Microsoft/Windows/Start
Menu/Programs/Cygwin-X': Permission denied
mkshortcut: Saving "C:\ProgramData\Microsoft\Windows\Start
Menu\Programs\Cygwin-X\XWin Server.lnk" failed; does the target
directory exist?
2013/07/27 23:41:17 abnormal exit: exit code=3
...
Ciao,
Angelo.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Postinstal failure for xinit.sh
2013-07-27 22:23 Postinstal failure for xinit.sh Angelo Graziosi
@ 2013-07-29 13:17 ` Angelo Graziosi
0 siblings, 0 replies; 2+ messages in thread
From: Angelo Graziosi @ 2013-07-29 13:17 UTC (permalink / raw)
To: XCygwin
Il 28/07/2013 0.23, Angelo Graziosi ha scritto:
> For completenes, I want to flag that on Windows 7 U 64b and Cygwin32
> (but should be the same for Cygwin64) xinit.sh (postinstall) fails as
> follows (from setu.log.full):
>
> [...]
> 2013/07/27 23:41:15 running: C:\cygwin\bin\bash.exe --norc --noprofile
> "/etc/postinstall/xinit.sh"
> /usr/bin/mkdir: cannot create directory
> `/cygdrive/c/ProgramData/Microsoft/Windows/Start
> Menu/Programs/Cygwin-X': Permission denied
> mkshortcut: Saving "C:\ProgramData\Microsoft\Windows\Start
> Menu\Programs\Cygwin-X\XWin Server.lnk" failed; does the target
> directory exist?
> 2013/07/27 23:41:17 abnormal exit: exit code=3
> ...
The cause was an UAC issue.
I am new to W7 (64) so I am trying to setup it as on XP (32). More
precisely, I have chose the local Cygwin repository in
$HOME/cygwin_repo, being $HOME the HOME of the administrator (angelo).
And, after the first installation (in which I got the UAC request), I
have put setup-x86[_64].exe in the local repo. Cygwin32 is installed in
C:\cygwin while Cygwin64 is in C:\cygwin64. I use the same repo for both
(they are separated in MIRROR/x86[_64])
So, to install/update packages, I do:
Start|Run
C:\cygwin\home\angelo\cygwin_repo\setup-x86.exe (Cygwin32)
C:\cygwin\home\angelo\cygwin_repo\setup-x86_64.exe (Cygwin64)
Now, starting setup-x86_64.exe asks me always the UAC confirmation,
instead setup-x86.exe don't! It run without administrator permissions.
And this causes the failure described in my OP.
The workaround has been to move setup-x86.exe in the parent directory, i.e.
Start|Run
C:\cygwin\home\angelo\setup-x86.exe
asks me the UAC confirmation, it really run as administrator.
What I don't understand is why moving setup-x86.exe in that way fixes
the issue. I have also removed cygwin_repo and recreated but
setup-x86.exe needs to stay above cygwin_repo... This regard only
setup-x86.exe and not setup-x86_64.exe.. :(
>
> Ciao,
> Angelo.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-29 13:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-27 22:23 Postinstal failure for xinit.sh Angelo Graziosi
2013-07-29 13:17 ` Angelo Graziosi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).