Re: 1.5.19: Solution: cannot create temp file for here document: Permission denied

2006-02-07 Thread Barry Demchak

The solution to my variant of this problem ended up being pretty simple.

I was running the Norton utility that guards the trash bin (Norton 
Protected Trash Bin).


For this use, it's toxic.

The solution was to add the entire cygwin directory to the exclusion 
list (in the trash bin's Properties dialog). It would look something 
like: "-c:\cygwin\**".


Keeping Norton's hands off these files makes cygwin not mess up.

Charming.

Does this help you?


At 04:08 PM 2/7/2006, Jonathan wrote:

Hi all,

I recently set up cygwin on a Windows 2003 box with NTFS file 
permissions. I encountered the same problem as mentioned in this thread:

http://www.cygwin.com/ml/cygwin/2005-07/msg00732.html

To sum up the issue: Upon ssh login I received the following error message:

-bash: cannot create temp file for here document: Permission denied

One thing I noticed was that looking at the permissions for the tmp 
folder under the cygwin directory, the permissions for 
[SERVER]\Users were marked as "Special Permissions" rather than the 
usual set of permissions (e.g., Full Control, Modify, etc.). Even 
though the user seemed to have all of the necessary permissions when 
clicking the Advanced button, I chose to override these permission 
by clicking the  "Modify" checkbox (and additionally all of the 
permissions that get auto-selected when you choose "Modify") and the 
error message went away.


One particular detail about our installation that might be involved 
in this problem: The original installer of cygwin on this particular 
machine did not give [SERVER]\Users "Modify" permission on the 
cygwin directory. We only added them after the install. It's 
possible that adding these permission to the cygwin directory after 
the install doesn't cascade them in the same way as having them 
there before install does.


I hope this helps,

Jonathan Gordon.
---
[This E-mail scanned for viruses by Declude EVA]





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



Re: Very basic version command

2005-09-05 Thread Barry Demchak

Aha ... another good way. Thanks ... I'm happy to learn this stuff.

At 03:43 PM 9/5/2005, Mark Blain wrote:

On Mon, 05 Sep 2005 15:20:21 -0700, Barry Demchak wrote:

> Question: What is the command for finding out the version of a library
> installed on Cygwin?
>
> I'm trying to find out what version of the librsvg library I'm using.

I'm sure there must be a better way, but I just cheat and browse my
cygwin setup folder where copies of all the install "tar" files are
kept, and read the version numbers in the filenames.

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



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



Re: Very basic version command

2005-09-05 Thread Barry Demchak

Thanks, Igor --

I have not yet been able to make cygcheck work, but I did find out about 
the pkg-config command. This command uses the PKG_CONFIG_PATH environment 
variable to find the library information for a particular library. That 
path identifies a directory full of .po files. There is a .po file for each 
library. So, if you know the library name, the pkg-config command would be 
something like pkg-config --cflags gtk+-2.0 ... and out comes all of the 
cool metadata in command line format all ready to feed into g++.


And then the trick is to track down the precise name for the library of 
interest. I did that by scanning for all of the .po files, and then 
figuring out the name of the library I was really interested in. In my 
case, for librsvg, it is librsvg-2.0. So, here's what I did and what I got:


$ pkg-config --cflags librsvg-2.0
-I/usr/local/include/librsvg-2 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0


OK OK ... so as far as getting the version, I guess that the version is 
encoded in the name, which I found by scanning the .po files.


Anything is easy once we already know the answer.

Woof.

I'm guessing that cygcheck couldn't work for librsvg because it's not a 
cygwin library and not in the cygwin registry ... a naive guess ... maybe 
it's right??


Thanks.



At 03:31 PM 9/5/2005, Igor Pechtchanski wrote:

On Mon, 5 Sep 2005, Barry Demchak wrote:

> Hi, all --
>
> Sorry for submitting something so silly.
>
> Question: What is the command for finding out the version of a library
> installed on Cygwin?

It's easy to find out the version of an official Cygwin package that
supplies a given library.  If you know the name of the package (say,
"libfoo"), simply run "cygcheck -cd libfoo".  If you don't know the
package that supplies it, but know the name of the library (say,
/usr/lib/libfoo.a), run "cygcheck -f /usr/lib/libfoo.a" -- it will tell
you both the package and the version.

> I'm trying to find out what version of the librsvg library I'm using.

AFAICS, there is no librsvg in the cygwin distribution.  If it was a typo,
the above recipe should work for the actual library name.  If you actually
do have a librsvg on your machine, I don't know of a general way to do
what you want.
HTH,
Igor
--
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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



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



Very basic version command

2005-09-05 Thread Barry Demchak

Hi, all --

Sorry for submitting something so silly.

Question: What is the command for finding out the version of a library 
installed on Cygwin?


I'm trying to find out what version of the librsvg library I'm using.

Thanks.



vvv
: Barry Demchak   :
: Torrey Pines Software, Inc. :
: http://www.tpsoft.com/  :
: (858) 452-8700  :
^^^  



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



Very basic version command

2005-09-05 Thread Barry Demchak

Hi, all --

Sorry for submitting something so silly.

Question: What is the command for finding out the version of a library 
installed on Cygwin?


I'm trying to find out what version of the librsvg library I'm using.

Thanks.



vvv
: Barry Demchak   :
: Torrey Pines Software, Inc. :
: http://www.tpsoft.com/  :
: (858) 452-8700  :
^^^ 



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



Re: cannot create temp file for here document

2005-07-16 Thread Barry Demchak

At 06:10 PM 7/16/2005, Eric Blake wrote:

>
> OK ... thanks ... I'll convert to NTFS ... I'm probably overdue anyway ...
> will you be tendering this to the Cygwin primary authors??

You already have.  This list is read by anyone actively working (on
their free time, as volunteers) on cygwin source code improvements.

> If so, how long
> does something like that take??

Sooner, if you help.  The problem with open source is that unless
someone else can reproduce your problem, and has an interest
in providing a fix, it tends not to happen.  On the other hand, the
advantage with open source is that anyone can take an interest,
look at the source code, and provide a fix, even you.

>
> BTW ... thanks for sticking this far with me ... I hope we solve this 
... I

> *can't* be alone with this problem.

Well, the setup of running NT and FAT is not very common, and
most cygwin developers don't do that; typically, the experience
with FAT is how to make Win98 at least run cygwin.

> Converting FAT32 to NTFS did not solve the problem.

Ah, but now that it is NTFS, your permissions have changed.  Now
what do "ls -ld / /tmp /cygdrive/c" and "getfacl / /tmp /cygdrive/c"
display?

--
Eric Blake


Cool ... here are the results ... what do you see?? ... Thanks.

ls -ld / /tmp /cygdrive/c
drwxrwxrwx+ 11 Administrators root  4096 Jul 14 23:17 /
drwxrwxrwx+ 34 Administrators root 12288 Jul 16 16:38 /cygdrive/c
drwxrwxrwt+  2 Administrators root  4096 Jul 16 22:30 /tmp

getfacl / /tmp /cygdrive/c
# file: /
# owner: Administrators
# group: root
user::rwx
group::rwx
group:SYSTEM:rwx
mask:rwx
other:rwx
default:group:root:rwx
default:group:SYSTEM:rwx
default:mask:rwx
default:other:rwx

# file: /tmp
# owner: Administrators
# group: root
user::rwx
group::rwx
group:SYSTEM:rwx
mask:rwx
other:rwx
default:group:root:rwx
default:group:SYSTEM:rwx
default:mask:rwx
default:other:rwx

# file: /cygdrive/c
# owner: Administrators
# group: root
user::---
group::---
mask:rwx
other:rwx
default:other:rwx



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



Re: cannot create temp file for here document

2005-07-16 Thread Barry Demchak

Hi, Eric --

Converting FAT32 to NTFS did not solve the problem.


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



Re: cannot create temp file for here document

2005-07-16 Thread Barry Demchak

See end-post below ...

At 04:00 PM 7/16/2005, Eric Blake wrote:

>
> Attached please find the strace_unlink.out you requested. To get this, I
> started Cygwin and did the following:
>
> cd /tmp
> cat >foo
> blah blah blah ^Z
> strace -o strace_unlink.out unlink foo
>
> Looking at the trace, I can see where unlink returns a 2, which would give
> the error ... but unlink also deletes the file (I checked). I checked the
> Win32 documentation on unlink (both on CD and at MSDN) and there are no
> indications of weirdness.

That is bizarre, but you are probably right that it has to do with
the fact that you are on an NT machine but with a FAT file system.
I'll defer to the primary cygwin developers to see if they agree.

>
> Attached please find the strace_bash_lite.out dump as requested. I 
executed

> this from the /tmp directory, too.
>
> Looking at the track, I can see the same unlink failure as in the 
unlink trace.

>
> When I create foo in the /tmp directory and then do an ls -l on it, I get:
>
> -rw-r--r--  1 bdemchak None 15 Jul 16 11:20 foo
>
> Windows claims that the owner is "Everyone", which is a virtual group that
> supposedly really does contain everyone.
>
> I can add only a few tidbits.
>
> One is to point out that this partition is a FAT32 partition ... one
> wonders if there may be problems because it's not an NTFS partition.
> Considering that it's my boot partition, I would change it ... but not
> lightly ... and only with very good reason (which this might be).

FAT has very little in its favor - it has no file permissions to speak
of, can't do hard links, and in general is not as powerful as NTFS.
Upgrading certainly would improve the situation.

>
> In playing around with this, I'm getting the feeling that cygwin maintains
> a shadow permission list for each file. My best guess right now is that
> this shadow list (if it exists) is getting out of sync with the Windows
> directory contents. Were this the case, cygwin might be relying on the
> shadow list for part of an operation (like unlink) and Windows for 
another.

> If the two are out of sink, we'd see something like what we're seeing.

No, cygwin uses Windows notions of permissions, which are keyed
to Windows SID, and maps that to POSIX permissions.  If Windows
can't report the correct permissions (and remember, FAT drives
don't store full permissions like NTFS does), then cygwin can't improve
the situation.   As to editing your passwd file, as long as you leave
SIDs alone, you should be able to edit user name, group id, and
preferred shell without any adverse effects.  See
http://cygwin.com/cygwin-ug-net/cygwin-ug-net.html#ntsec

>
> Does this lead you anywhere??
>
> Thanks!

Hope I've been some help.

--
Eric Blake


OK ... thanks ... I'll convert to NTFS ... I'm probably overdue anyway ... 
will you be tendering this to the Cygwin primary authors?? If so, how long 
does something like that take??


BTW ... thanks for sticking this far with me ... I hope we solve this ... I 
*can't* be alone with this problem.



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



Re: cannot create temp file for here document

2005-07-15 Thread Barry Demchak
Hi, Dave --

Pretty simple and interesting. It seems like "sort" is failing ... as if 
there's problems with the temp directory (???).

Here's what it looks to me:

A) The TEMP and TMP environment variables are 
both /cygdrive/c/DOCUME~1/BARRYD~1/LOCALS~1/Temp

B) The !C environment variable (which I suppose must be the same 
as /cygdrive/c) is C:\Cygwin\bin

If that's all true, then the temp directory it must be trying to use would be 
C:\Cygwin\bin\DOCUME~1/BARRYD~1/LOCALS~1/Temp ... which does not exist

So, I added DOCUME~1/BARRYD~1/LOCALS~1/Temp under C:\Cygwin\bin ... but that 
didn't seem to help.

So, I'm out to lunch here ... below is the -x dump:



+ PATH='/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINNT/system32:/
cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/e/sysprog/java/j2sdk1
.4.2_08/bin:/cygdrive/c/PROGRAM FILES/THINKPAD/UTILITIES:/cygdrive/e/comprog/Sym
antec/pcAnywhere/:/cygdrive/e/comprog/symantec/winfax/macros:/cygdrive/e/sysprog
/Microsoft/Support Tools/:/cygdrive/c/Program Files/ATI Technologies/ATI Control
 Panel:/cygdrive/c/Program Files/ATI Technologies/Fire GL 3D Studio Max:/cygdriv
e/c/Program Files/ATI Technologies/Fire GL Control Panel'
+ export PATH
+ MANPATH=/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man:
+ export MANPATH
+ INFOPATH=/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/u
sr/autotool/stable/info:
+ export INFOPATH
++ id -un
+ USER=bdemchak
+ export USER
+ '[' '!' -d /home/bdemchak ']'
+ chmod 1777 /tmp
+ MAKE_MODE=unix
+ export MAKE_MODE
+ CVS_RSH=/bin/ssh
+ export CVS_RSH
+ case "`echo "_$0" | /usr/bin/tr '[:upper:]' '[:lower:]' | /usr/bin/sed -e 's/^
_//'`" in
++ echo _bash
++ /usr/bin/tr '[:upper:]' '[:lower:]'
++ /usr/bin/sed -e 's/^_//'
++ hostname
+ HOSTNAME=malex
+ export HOSTNAME
+ PS1='\[\e]0;[EMAIL PROTECTED] \[\e[33m\]\w\[\e[0m\]\n\$ '
+ export PS1
+ '[' -d /etc/profile.d ']'
++ /bin/find /etc/profile.d -type f -iname '*.sh' -or -iname '*.zsh'
++ LC_ALL=C
++ sort
bash: cannot create temp file for here document: No such file or directory
+ umask 022
+ PRINTER=
+ case `uname -s` in
++ uname -s
++ regtool -q get '\user\Software\Microsoft\Windows NT\CurrentVersion\Windows\De
vice'
++ sed 's/,.*$//'
+ PRINTER='\\MCHEWBACCA\KOOP PCL 5E'
+ export PRINTER
+ '[' '!' -z '' ']'
+ cd /home/bdemchak
+ case `id -ng` in
++ id -ng
+ '[' -e /etc/bash.bashrc ']'
+ source /etc/bash.bashrc
+ '[' -e /home/bdemchak/.bashrc ']'
+ source /home/bdemchak/.bashrc



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



cannot create temp file for here document

2005-07-15 Thread Barry Demchak
Hi --

I have a clean install of Cygwin in C:\ on my Win2K system.

The thing seems OK except for an error issued immediately upon startup:

"bash: cannot create temp file for here document: No such file or directory"

I'm not sure what it's about, but I'm pretty sure it's going to cause trouble.

If I look in my C:\cygwin\home\bdemchak directory, I see a .bash_history file 
and three others: .inputrc, .bashrc, and .bash_profile ... seems healthy to me, 
but I'm a newbie.

Here's my passwd file entry:
bdemchak:unused_by_nt/2000/xp:1000:513:bdemchak,U-MALEX\Barry Demchak,S-1-5-21-
1214440339-492894223-854245398-1000:/home/bdemchak:/bin/bash

What could be wrong??

FYI, here's my environment ... thanks!

!C:='C:\Cygwin\bin'
ALLUSERSPROFILE='C:\Documents and Settings\All Users'
APPDATA='C:\Documents and Settings\Barry Demchak\Application Data'
BASH=/usr/bin/bash
BASH_ARGC=()
BASH_ARGV=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="3" [1]="00" [2]="16" [3]="7" [4]="release" [5]="i686-pc-
cygwin")
BASH_VERSION='3.00.16(7)-release'
CLASSPATH='e:\sysprog\java\j2sdk1.4.2_08\jre\lib\rt.jar'
COMMONPROGRAMFILES='C:\Program Files\Common Files'
COMPUTERNAME=MALEX
COMSPEC='C:\WINNT\system32\cmd.exe'
CVS_RSH=/bin/ssh
DDKROOT='e:\sysprog\NTDDK'
DIRSTACK=()
EUID=1000
GROUPS=()
HISTFILE=/home/bdemchak/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/home/bdemchak
HOMEDRIVE=C:
HOMEPATH='\'
HOSTNAME=malex
HOSTTYPE=i686
IFS=$' \t\n'
INFOPATH=/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr
/autotool/stable/info:
JAVA_HOME='E:\Sysprog\Java\j2sdk1.4.2_08'
LOGONSERVER='\\MALEX'
MACHTYPE=i686-pc-cygwin
MAILCHECK=60
MAKE_MODE=unix
MANPATH=/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man:
NUMBER_OF_PROCESSORS=1
OLDPWD=/usr/bin
OPTERR=1
OPTIND=1
OS=Windows_NT
OS2LIBPATH='C:\WINNT\system32\os2\dll;'
OSTYPE=cygwin
PATH='/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINNT/system32:/cy
gdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/e/sysprog/java/j2sdk1.4
.2_08/bin:/cygdrive/c/PROGRAM 
FILES/THINKPAD/UTILITIES:/cygdrive/e/comprog/Symantec/pcAnywhere/:/cygdrive/e/co
mprog/symantec/winfax/macros:/cygdrive/e/sysprog/Microsoft/Support 
Tools/:/cygdrive/c/Program Files/ATI Technologies/ATI Control 
Panel:/cygdrive/c/Program Files/ATI Technologies/Fire GL 3D Studio 
Max:/cygdrive/c/Program Files/ATI Technologies/Fire GL Control Panel'
PATHEXT='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PIPESTATUS=([0]="0")
PPID=1
PRINTER='\\MCHEWBACCA\KOOP PCL 5E'
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER='x86 Family 15 Model 2 Stepping 4, GenuineIntel'
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0204
PROGRAMFILES='C:\Program Files'
PROMPT='$P$G'
PS1='\[\e]0;[EMAIL PROTECTED] \[\e[33m\]\w\[\e[0m\]\n\$ '
PS2='> '
PS4='+ '
PWD=/home/bdemchak
SHELL=/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-
comments:monitor
SHLVL=1
SYSTEMDRIVE=C:
SYSTEMROOT='C:\WINNT'
TEMP=/cygdrive/c/DOCUME~1/BARRYD~1/LOCALS~1/Temp
TERM=cygwin
TMP=/cygdrive/c/DOCUME~1/BARRYD~1/LOCALS~1/Temp
TVDUMPFLAGS=10
UID=1000
USER=bdemchak
USERDOMAIN=MALEX
USERNAME='Barry Demchak'
USERPROFILE='C:\Documents and Settings\Barry Demchak'
WINDIR='C:\WINNT'
_=set



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