delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/03/08:58:51

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 3 Jul 2008 14:57:58 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: chmod permission denied on windows 2008
Message-ID: <20080703125758.GC10582@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <E0174AD446AE4AF786ED30C69C9529CC AT multiplay DOT co DOT uk>
MIME-Version: 1.0
In-Reply-To: <E0174AD446AE4AF786ED30C69C9529CC@multiplay.co.uk>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Jul  3 13:25, Steven Hartland wrote:
> Running chmod under 2008 simply doesnt seem to work here,
> which is really strange.
>
> [root AT blade0]/: id
> uid=500(root) gid=513(None) 
> groups=513(None),544(Administrators),545(testuser)
>
> [root AT blade0]/tmp: touch test
>
> [root AT blade0]/tmp: chown testuser test
> chown: changing ownership of `test': Permission denied
>
> [root AT blade0]/tmp: ls -l test
> -rw-r--r-- 1 root None 0 Jul  3 13:15 test
> [root AT blade0]/tmp:
>
> [root AT 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 AT 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 AT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019