delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/19/16:26:52

X-Spam-Check-By: sourceware.org
Message-ID: <13a464db0704191326m2d13c511q455bb6026079071b@mail.gmail.com>
Date: Thu, 19 Apr 2007 13:26:32 -0700
From: "The Gavitron" <me AT gavitron DOT com>
To: cygwin AT cygwin DOT com
Subject: CHMOD appears to work, but something fails silently.
MIME-Version: 1.0
X-Google-Sender-Auth: 0f6fd067250c117f
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Hi Everyone,

I have been using cygwin since the nineties, but have recently
encountered something that lead me to join this list, and ask for
help:

I have a windows 2000 machine, with cygwin (obviously.)  The domain
this machine belongs to was recently changed.  (Network  upgrades
etc.)  Last night, I upgraded Cygwin to the current stable release,
then I redid mkpasswd/mkgroup. (since Xwindows broke after my SIDs
changed.  It's fixed now.)

While remaking /etc/passwd, I realized that I really should use my
\\server\home\username  directory as my home dir, instead of
c:\docume~1\username.  So I moved all my 'dot' files across, and life
was good.

The problem I am now having is this: I was faced with the *expected*
issue of loose permissions on .ssh/ -- no worries, I chmod'd the right
permissions onto the . files, and tried again.  Still nothing.
Further testing has shown that I cannot chmod any files on my  network
drive.  A sample example: (Note that / is local, and ~ is a network
share.)

 [12:24 ~] cd /
[12:24 /] touch foo
 [12:24 /] ls -l foo
-rw-r--r-- 1 <myuser> Domain Users 0 Apr 19 12:24 foo
 [12:24 ~] chmod -v +x foo
mode of `foo' changed to 0755 (rwxr-xr-x)
 [12:24 /] ls -l foo
-rwxr-xr-x 1 <myuser>  Domain Users 0 Apr 19 12:24 foo*
[12:24 /] rm foo
 [12:24 /] cd ~
[12:25 ~] touch foo
 [12:25 ~] ls -l foo
-rw-r--r-- 1 <myuser>  Domain Users 0 Apr 19 12:25 foo
[12:25 ~] chmod -v +x foo
mode of `foo' changed to 0755 (rwxr-xr-x)
 [12:25 ~] ls -l foo
-rw-r--r-- 1  <myuser> Domain Users 0 Apr 19 12:25 foo
[12:25 ~]  rm foo

I have googled, read the FAQ, and searched the mailing list.  The most
relevant info I could find was this gem:
http://sourceware.org/ml/cygwin/2003-04/msg01350.html
but the FAQ linked to no longer exists...

I should also point out that before running the test above, I ensured
that my Windows account is the owner of the entire home/username
directory.  CACLS returns the following:

[12:49 ~] CACLS .
\\mydomain.local\home\myusername BUILTIN\Administrators:(OI)(CI)F
                                     CREATOR OWNER:(OI)(CI)(IO)F
                                     MYDOMAIN\myusername:(OI)(CI)F
                                     NT AUTHORITY\SYSTEM:(OI)(CI)F


Is there anything I have overlooked?  Maybe this is a known 'feature'
of chmod over CIFS?

Regards,
-G

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