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]

CHMOD appears to work, but something fails silently.


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/


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