This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: CHMOD appears to work, but something fails silently.
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 19 Apr 2007 16:59:54 -0400
- Subject: Re: CHMOD appears to work, but something fails silently.
- References: <13a464db0704191326m2d13c511q455bb6026079071b@mail.gmail.com>
- Reply-to: 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 <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...
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:
<http://cygwin.com/cygwin-ug-net/using-cygwinenv.html>
--
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/