This is the mail archive of the cygwin@sourceware.cygnus.com 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]

Re: not updating unwritable cache ../config.cache



> 
> bash-2.02$ ls -la test
> -rw-r--r--   1 544      Kein            0 Oct  5 09:57 test
> bash-2.02$ echo > test
> bash-2.02$ ls -la test
> -rw-r--r--   1 544      Kein            2 Oct  6 09:08 test
> bash-2.02$ echo >> test
> bash-2.02$ ls -la test
> -rw-r--r--   1 544      Kein            4 Oct  6 09:08 test
> bash-2.02$
> 
> Umm, nope.
> 

group #544 is Administrators
so test is owned by Administrators, group "Kein" ("None"? -- do an ls
-lan. This should show  "-rw-r--r--   1 544     513    .....". Group
#513 is "None" in english.) I believe you have discovered a *different*
problem, which is a bug. Echo doesn't seem to check permissions. If you
do a 

if [ -w test ]; then echo writable; else echo non-writable; fi

you should see the results I described.

> >--- there is no single user whose UID is equal to the GID of
> > the Administrators group. There are two ways to work around this NTism
> > (maybe 3?)
> >
> > This is true for the "Administrator" account as well. UID(Administrator)
> > != GID(Administrators) --- note the final 's' on the group name.
> >
> > 1) change umask so that files are created as -rw-rw-r--. Then all users
> > in the Administrators group can r/w the files they create.
> 
> bash-2.02$ umask
> 000
> bash-2.02$
> 
> Hmmm ...
> 

Oh yeah. Sorry. I forgot that the only thing umask does is *remove*
privileges from created files. If the default access mode is -rw-rw-rw-
and you have a umask of 022, then the file will be created with
group-write and all-write access disabled (-rw-r--r--). By setting umask
to 000, you have shown that the default access mode is -rw-r--r--. You
can't use umask to *add* priveleges (such as group-write). There is a
way to do that, but I don't remember what it was...

> > 2) Don't do things as a member of the Administrators group member. Use a
> > normal user account.
> 
> It's the only one I have.

However, if you have administrator priveleges, then you can certainly
create a normal user account. If you *choose* not to do this, that is
your right and your decision. 

> 
> > 3) ntsec ???
> 
> Well?

I don't know enough about ntsec and the latest snapshots to offer useful
advice; Corinna has explained ntsec earlier in this thread.

--Chuck

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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