This is the mail archive of the cygwin@cygwin.com 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]

RE: chmod in cygwin shell


> I cant set the x bit to my files. I am the user who installed cygwin and
who
> dowloaded thee files which i want
> to make executeable now.

This almost certainly isn't the right long-term solution, but if you just
want a quick fix, you might try this:

  ziegm $ touch newfile

  ziegm $ ls -la newfile
  -rw-r--r--    1 ziegm    None            0 Sep 24 10:04 newfile

  ziegm $ cacls newfile /E /G Everyone:F
  processed file: C:\cygwin\home\ziegm\newfile

  ziegm $ ls -la newfile
  -rwxrwxrwx    1 ziegm    None            0 Sep 24 10:04 newfile

cacls ("Change ACLs") is WinNT/2k's analog to chmod (it's not a direct
mapping, but they're similar).

Anyway, I found it when having the same "chmod +x" problem on my system.  My
problem went away when I learned to do the "mkpasswd -u ziegm -d mydomain >>
/etc/passwd" setup step.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]