No permissions on files created outside Cygwin

2005-04-12 Thread daniel.steinmann
When I create a file outside Cygwin (for example with native gVim), the
file is created with no permissions. Example:

  [EMAIL PROTECTED] ~
  $ ls -l _viminfo 
  --+ 1 pidde2 domain users 30770 Apr 12 11:19 _viminfo

I see the the default umask outside Cygwin is '':

  [EMAIL PROTECTED] ~
  $ cmd /c bash -c umask
  

The ACL of this file is as follows:

  [EMAIL PROTECTED] ~
  $ getfacl _viminfo 
  # file: _viminfo
  # owner: pidde2
  # group: domain users
  user::---
  group::---
  group:SYSTEM:rwx
  group:Administrators:rwx
  mask:rwx
  other:---

What could be wrong with my Cygwin configuration (mounttab,
environment)?

Any help is appreciated.

Daniel

P.S.: I tried with cygwin-1.5.14, but I get a 'bash.exe - Application
Error The instruction at "0x610baeda" referenced memory at "0x0009".
The memory could not be "writte".'

Cygwin Configuration Diagnostics
Current System Time: Tue Apr 12 11:30:48 2005

Windows XP Professional Ver 5.1 Build 2600 Service Pack 2

Path:   d:\home\stm\bin
d:\programs\cygwin\usr\local\bin
d:\programs\cygwin\bin
d:\programs\cygwin\bin
d:\programs\cygwin\usr\X11R6\bin
d:\programs\ora8\bin
d:\programs\cygwin\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\UBS\UBSPKG

Output from d:\programs\cygwin\bin\id.exe (nontsec)
UID: 266959(pidde2)  GID: 10513(domain users)
10513(domain users)

Output from d:\programs\cygwin\bin\id.exe (ntsec)
UID: 266959(pidde2)  GID: 10513(domain users)
544(Administrators)  4294967295(comit)545(Users)
1005(Debugger Users) 10513(domain users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

HOME = `d:\home\stm'
MAKE_MODE = `unix'
PWD = `/home/stm'
USER = `pidde2'

Use `-r' to scan registry

c:  hd  NTFS 19085Mb  71% CP CS UN PA FC WinXP
d:  hd  NTFS 19069Mb  26% CP CS UN PA FC /usr/local
e:  cd  CDFS   637Mb 100%CS UN   ORACLE8I_EE
p:  net NTFS172391Mb  91% CP CS UN PA FC S01B1A50_E
q:  net NTFS172391Mb  72% CP CS UN PA FC S01AAAQG_E

d:\programs\cygwin  /  userbinmode
d:\programs\cygwin/bin  /usr/bin   userbinmode
d:\programs\cygwin/lib  /usr/lib   userbinmode
.   /cygdrive  userbinmode,cygdrive
d:\home /home  system  binmode
.   /  system  binmode,cygdrive

Found: d:\programs\cygwin\bin\awk.exe
Found: d:\programs\cygwin\bin\bash.exe
Found: d:\programs\cygwin\bin\cat.exe
Found: d:\programs\cygwin\bin\cp.exe
Not Found: cpp (good!)
Found: d:\programs\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: d:\programs\cygwin\bin\grep.exe
Not Found: ld
Found: d:\programs\cygwin\bin\ls.exe
Found: d:\programs\cygwin\bin\make.exe
Found: d:\programs\cygwin\bin\mv.exe
Found: d:\programs\cygwin\bin\rm.exe
Found: d:\programs\cygwin\bin\sed.exe
Found: d:\programs\cygwin\bin\sh.exe
Found: d:\programs\cygwin\bin\tar.exe

   55k 2004/09/14 d:\programs\cygwin\bin\cygbz2-1.dll
   18k 2004/07/06 d:\programs\cygwin\bin\cygcharset-1.dll
7k 2003/10/19 d:\programs\cygwin\bin\cygcrypt-0.dll
  852k 2005/03/23 d:\programs\cygwin\bin\cygcrypto-0.9.7.dll
  617k 2004/03/22 d:\programs\cygwin\bin\cygcurl-2.dll
   40k 2004/10/10 d:\programs\cygwin\bin\cygform-8.dll
   45k 2001/04/25 d:\programs\cygwin\bin\cygform5.dll
   35k 2002/01/09 d:\programs\cygwin\bin\cygform6.dll
   48k 2003/08/09 d:\programs\cygwin\bin\cygform7.dll
   28k 2003/07/20 d:\programs\cygwin\bin\cyggdbm-3.dll
   30k 2003/08/11 d:\programs\cygwin\bin\cyggdbm-4.dll
   19k 2003/03/22 d:\programs\cygwin\bin\cyggdbm.dll
   15k 2003/07/20 d:\programs\cygwin\bin\cyggdbm_compat-3.dll
   15k 2003/08/11 d:\programs\cygwin\bin\cyggdbm_compat-4.dll
   17k 2001/06/28 d:\programs\cygwin\bin\cyghistory4.dll
   29k 2003/08/10 d:\programs\cygwin\bin\cyghistory5.dll
   25k 2004/10/12 d:\programs\cygwin\bin\cyghistory6.dll
  991k 2004/07/06 d:\programs\cygwin\bin\cygiconv-2.dll
   22k 2001/12/13 d:\programs\cygwin\bin\cygintl-1.dll
   37k 2003/08/10 d:\programs\cygwin\bin\cygintl-2.dll
   54k 2004/07/06 d:\programs\cygwin\bin\cygintl-3.dll
   21k 2001/06/20 d:\programs\cygwin\bin\cygintl.dll
   22k 2004/10/10 d:\programs\cygwin\bin\cygmenu-8.dll
   26k 2001/04/25 d:\programs\cygwin\bin\cygmenu5.dll
   20k 2002/01/09 d:\programs\cygwin\bin\cygmenu6.dll
   29k 2003/08/09 d:\programs\cygwin\bin\cygmenu7.dll
   21k 2004/10/22 d:\programs\cygwin\bin\cygminires.dll
   74k 2004/10/10 d:\programs\cygwin\bin\cygncurses++-8.dll
  156k 2001/04/25 d:\programs\cygwin\bin\cygncurses++5.dll
  175k 2002/01/09 d:\programs\cygwin\bin\cygncurses++6.dll
  216k 2004/10/10 d:\programs\cygwin\bin\cygncurses-8.dll
  226k 2001/04/25 d:\programs\cygwin\bin\cygncurses5.dll
  202k 2002/01/09 d:\programs\cygwin\bin\cygncurses6.dll
  224k 2003/08/09 d:\programs\cygwin\bin\cygncurses7.dll
   13k 2004/10/10 d:\programs\cygwin\bin\cygpanel-8.dll
   15k 2001/04/25 d:\programs\cygwin

RE: No permissions on files created outside Cygwin

2005-04-12 Thread daniel.steinmann

> What does calcs print on this file?  How are the permissions 
> set on your home directory?  It looks as if the inheritence 
> of permissions is set somewhat strange on your machine.

[EMAIL PROTECTED] /home
$ cacls stm
d:\home\stm SWISS-DD\t131085:F 
SWISS-DD\domain users:R 
Everyone:(special access:)
 READ_CONTROL
 FILE_READ_EA
 FILE_READ_ATTRIBUTES
 
NT AUTHORITY\SYSTEM:(OI)(CI)F 
BUILTIN\Users:(OI)(CI)R 
BUILTIN\Administrators:(OI)(CI)F 


[EMAIL PROTECTED] /home
$ cacls stm/_viminfo 
d:\home\stm\_viminfo NT AUTHORITY\SYSTEM:F 
 BUILTIN\Users:R 
 BUILTIN\Administrators:F 


[EMAIL PROTECTED] /home
$ ls -l / | grep home
drwxr-x---+  3 pidde2 domain users0 Apr  8 15:26 home/

[EMAIL PROTECTED] /home
$ ls -l /home | grep stm 
drwxr-x---+ 25 pidde2 domain users 0 Apr 12 11:43 stm/

[EMAIL PROTECTED] /home
$ mount | grep home
d:\home on /home type system (binmode)


Does this help?

One more information: I changed the entry in /etc/passwd from

  [EMAIL PROTECTED] /home
  $ mkpasswd -d -u t131085
  t131085:unused_by_nt/2000/xp:266959:10513:Steinmann,
Daniel,U-SWISS-DD\t131085,S-1-5-21-66736625-1179007725-475923621-256959:
//S01B1A50/T131085$:/bin/bash

to

  [EMAIL PROTECTED] /home
  $ cat /etc/passwd
  pidde2:unused_by_nt/2000/xp:266959:10513:Steinmann,
Daniel,U-SWISS-DD\t131085,S-1-5-21-66736625-1179007725-475923621-256959:
/home/stm:/bin/bash

But I still have no permissions if I use the original output from
mkpasswd.

Daniel

--
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: No permissions on files created outside Cygwin

2005-04-13 Thread daniel.steinmann

> Not really.  It doesn't explain what gvim exactly does.  The 
> only chance I see is that you weren't logged in as t131085 
> when creating the file, but as a local admin account.

The gvim process has 0 as UID:

[EMAIL PROTECTED] ~
$ ps -fW | grep gvim
   03564   0   ?  09:27:39 D:\programs\Vim\vim63\gvim.exe

Does this make sense?

Does it help to reinstall cygwin completly?

Daniel

--
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/



No libintl.jar in gettext-0.14.1-1

2005-04-20 Thread daniel.steinmann
I wanted to use /usr/share/gettext/libintl.jar, but it is not available
in gettext-0.14.1-1. The release 0.12.1-3 did provide libintl.jar. 

The document /usr/share/doc/Cygwin/gettext-0.14.1.README tells me it
should be around. Are there any reasons why this jar is not available in
0.14.1?

Daniel

--
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: No permissions on files created outside Cygwin

2005-04-20 Thread daniel.steinmann

> Usually not.  Looking more closely into the permissions and 
> perhaps regenerating /etc/passwd and /etc/group might help 
> more.  Or just use Cygwin's vim ;-)

Thanks for the permissions tip. I had a closer look via file explorer,
select toplevel folder, rightclick, select properties, select security
tab, click advanced. There I saw that the necessary permissions were
'This folder only' instead of 'This folder, subfolders and files'. Now
it works fine.

Hey, I use Cygwin's vim! Thanks for providing this package. I use it for
quick edits. For my day-to-day Java/Web programming I prefer native
gVim, because the compiler plugins work out of the box and do not need
all this cygpath fiddling to invoke javac.

Thanks again,
Daniel

--
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/