This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: chmod permission denied on windows 2008


On Jul  3 13:25, Steven Hartland wrote:
> Running chmod under 2008 simply doesnt seem to work here,
> which is really strange.
>
> [root@blade0]/: id
> uid=500(root) gid=513(None) 
> groups=513(None),544(Administrators),545(testuser)
>
> [root@blade0]/tmp: touch test
>
> [root@blade0]/tmp: chown testuser test
> chown: changing ownership of `test': Permission denied
>
> [root@blade0]/tmp: ls -l test
> -rw-r--r-- 1 root None 0 Jul  3 13:15 test
> [root@blade0]/tmp:
>
> [root@blade0]/tmp: grep testuser /etc/passwd
> testuser:unused_by_nt/2000/xp:1002:513:Test 
> User,U-BLADE0\testuser,S-1-5-21-1034854827-3221323542-428946914-1002:/usr/home/testuser:/bin/bash
>
> [root@blade0]/: grep testuser /etc/group
> testuser:S-1-5-32-545:545:

Huh?  Why did you do that?  This is the entry for the Users group.
It doesn't seem to make sense to rename it for Cygwin.

> [root@blade0]/: ls -l |grep tmp
> drwxrwxrwt+  3 Administrators None   4096 Jul  3 13:22 tmp
>
> All this works fine on XP and 2003 but is there something silly
> I'm missing for 2008?

Works fine for me on 2008 so I assume some local setting which
disallows this.  Did you remove the "Back up privileg and directories"
privilege from the admin's account, by any chance?

You could run this under strace and see what Win32 error message
you get.  It could be helpful.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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


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