X-Spam-Check-By: sourceware.org Message-ID: <4627D84A.5040000@cygwin.com> Date: Thu, 19 Apr 2007 16:59:54 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070308 Fedora/1.5.0.10-2.fc4.remi Thunderbird/1.5.0.10 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: CHMOD appears to work, but something fails silently. References: <13a464db0704191326m2d13c511q455bb6026079071b AT mail DOT gmail DOT com> In-Reply-To: <13a464db0704191326m2d13c511q455bb6026079071b@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com The Gavitron wrote: > 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 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 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 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 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... Drat! I thought we had avoided that problem. Oh well. :-( > 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? Yes. See 'smbntsec' here: -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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/