-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm part of the 'Power Users' group, but not the Administrators'
(although it's my computer and I have Admin access, this is just my
regular user account).  After `chown -R dale.None .` and `chmod -R
u+rwx .` (executed in ~) my home directory permissions are:

[dale:~]$ ls -ln
total 0
drwxrwxrwx   2 1000     513             0 Apr 16 00:55 bin/
drwxrwxrwx   3 1000     513             0 Apr 16 00:41 learn_c/
drwxrwxrwx   2 1000     513             0 Apr 17 07:22 src/
drwxrwxrwx   2 1000     513             0 Apr 18 03:02 tmp/


And after `umask 022` a new file has the permissions of:

[dale:~/tmp]$ umask 022
[dale:~/tmp]$ touch test.file
[dale:~/tmp]$ ls -ln
total 0
- -rwxrwxrwx   1 1000     513             0 Apr 18 03:10 test.file*
[dale:~/tmp]$



Here's my /etc/passwd (with the passwd field edited):

[dale:~]$ cat /etc/passwd
Everyone:*:0:0:SNIPPED::
SYSTEM:*:18:18:SNIPPED::
Administrators:*:544:544:SNIPPED::
Administrator::500:513:Christopher Dale
Campbell,SNIPPED:/home/Administrator:/bin/sh
Brad::1001:513:Brad Campbell,SNIPPED:/home/Brad:/bin/sh
Dale::1000:513:Christopher Dale Campbell,SNIPPED:/home/Dale:/bin/sh
IUSR_CAMPBELL::1003:513:Internet Guest
Account,SNIPPED:/home/IUSR_CAMPBELL:/bin/sh
IWAM_CAMPBELL::1004:513:Launch IIS Process
Account,SNIPPED:/home/IWAM_CAMPBELL:/bin/sh
Supedawg::1002:513:Dad and Kelly,SNIPPED:/home/Supedawg:/bin/sh


Note sure if any of this info helps.  All of the permissions appear
to be the same.  Should I execute the chown and chmod commands logged
in as Administrator?


- ----- Original Message ----- 
From: "Corinna Vinschen" <[EMAIL PROTECTED]>
To: "cygwin" <[EMAIL PROTECTED]>
Sent: Tuesday, April 17, 2001 3:40 PM
Subject: Re: ntsec environment variable


> On Tue, Apr 17, 2001 at 03:17:32PM -0400, Christopher Dale Campbell
> wrote: 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > Here's the output for those commands:
> > 
> > [dale:~]$ id
> > uid=1000(dale) gid=513(None) groups=513(None)
> > 
> > [dale:~]$ ls -ln
> > total 0
> > drwxrwxrwx   2 1000     513             0 Apr 16 00:55 bin/
> > drwxrwxrwx   3 1000     513             0 Apr 16 00:41 learn_c/
> > drwxrwxrwx   2 1000     513             0 Apr 17 07:22 src/
> > drwxrwxrwx   2 1000     513             0 Apr 17 07:37 tmp/
> > 
> > [dale:~]$ getfacl .vimrc
> > # file: .vimrc
> > # owner: 1000
> > # group: 513
> > user::---
> > user:500:rwx
> > user:1001:---
> > user:1002:---
> > group::rwx
> > mask::rwx
> > other::rwx
> 
> The ACL is interesting, actually. The user 500 (which is probably
> the administrator account) has all permissions on the file while
> YOU (user::---) have no explicit permissions set. That could result
> in the cp error message as well.
> 
> I can't see the reason from here, of course, but it could be
> related to the setting of the parent directories which seem to have
> weird
> (windows typical) permission settings. You could try the following
> in the parent directories:
> 
> chown -R dale.None .
> chmod -R u+rwx .
> 
> and set umask to, say, 022 if it's not already set to a reasonable
> value. Then try the cp again. If the directory permissions and
> umask and /etc/passwd is ok, then creating files should work ok.
> 
> Corinna
> 
> -- 
> Corinna Vinschen                  Please, send mails regarding
> Cygwin to Cygwin Developer                               
> mailto:[EMAIL PROTECTED] Red Hat, Inc.
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBOt0/L4XnWfGgRqP+EQK5WgCgro9C7Togl7nEfXq+0v1OWWPUfGMAoMjg
+cA7QCKbPmVeInqvOPEx51b1
=yVr9
-----END PGP SIGNATURE-----



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

Reply via email to