Nuisance problem with XP file permissions
Mike
mike2@myhome.net
Wed May 7 07:48:00 GMT 2003
Ive been testing some new stuff where Ive got apps/scripts creating new
files and directories and Ive hit a snag with Windows XP and file
permissions. Its probably an easy answer but Im at a loss with my
experience level with cygwin.
First off, in running Windows XP, I am forced to log in as a user (who has
Administrator rights) and cannot login as user Administrator as I would on
a Win2k box. So, when I installed cygwin, the entire distribution seems to
be owned by me and seemed to have a file permission mask of 0007 that is,
all files have --- for other permission bits r-xr-x--- or rw-rw----. This
didnt initially cause any problems until I started working on a new project
specifically, playing around with the new RPM package testing going on in
cygwin-apps. Nevertheless, the first question is should the permissions be
something different or is this normal? I did a rather drastic step to
avoid annoying permissions problems and recursively gave world permissions
to the entire distribution yeah, I cringed too, but its not a public or
even private server, just a convenience tool box.
So far, no big deal
until I start working with tar files that already have
permissions set that would prevent the non-root user from modifying them.
Specifically, a configure file that untard with rrr permissions.
Somewhere in the install process of this tar package something (a higher
level configure or Makefile) calls autoconf/automake/autotool (one of these
not important which) to rebuild the configure file. However, with these
permissions and my aforementioned user permissions, I continually get a
cannot create configure: permission denied.
This too isnt a big deal, I can chmod the file and re-run that specific
configure/makefile and everything is fine. But it strikes me that this
shouldnt be. If I, the user logged in, have permission to modify a file,
chmod it, chown it, delete it, whatever, why shouldnt the scripts I run be
able to do the same?
Mike
--
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/
More information about the Cygwin
mailing list