chmod -R 777*

2010-09-10 Thread Yohann
Hello,

I use windows XP on a small server. Lately I downloaded a software 
(hydrological computation) which asked me to install as well ‘cygwin’ and then 
to perform in cygwin window the command: ‘chmod –R 777 *’ in order to give 
writings permission and allow the software to perform. 
I admit, I did not check, this instruction came from serious people….But I 
started to frick out when I realized that this command did not only change the 
permission of files related to the software or cygwin, but of all the files on 
my computer, it even started to process on the content of a dvd that was in my 
computer and I stopped the process  since I was fearing that it would continue 
to the server’s disks…..

I immediately perform a system restore at 1week before, but I am not sure I am 
OK with the permissions of sensitives windows files. Indeed, the dll files in 
the windows/system folder show a read/execute and write permission to everyone 
for example. It might have been like this before the problem with the ‘chmod’, 
but I can not tell and I worry I did something wrong.

Is there any way to check the proper permission configuration on windows XP or 
to restore it?

Any suggestion or help will be very very appreciated.

Thanks,

Yohann



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: chmod -R 777*

2010-09-10 Thread René Berber
On 9/10/2010 4:04 AM, Yohann wrote:

[snip]
 Is there any way to check the proper permission configuration on windows XP 
 or 
 to restore it?

Windows doesn't care about permissions, it uses 777 for everything, and
that is the default (everything has that permission, text, pictures,
music, zip archives, ...).

You don't need to change it, but if you do, you have to be careful to
keep executables with the executable permission, or they won't run.
-- 
René Berber



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: chmod -R 777*

2010-09-10 Thread René Berber
On 9/10/2010 11:18 AM, René Berber wrote:
 On 9/10/2010 4:04 AM, Yohann wrote:
 
 [snip]
 Is there any way to check the proper permission configuration on windows XP 
 or 
 to restore it?
 
 Windows doesn't care about permissions, it uses 777 for everything, and
 that is the default (everything has that permission, text, pictures,
 music, zip archives, ...).
 
 You don't need to change it, but if you do, you have to be careful to
 keep executables with the executable permission, or they won't run.

Also dynamic libraries need the executable bits to be used... just ran
into that one.  Windows sort of cares about permissions, probably that's
why the default is 777.
-- 
René Berber



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: chmod -R 777*

2010-09-10 Thread Corinna Vinschen
On Sep 10 12:57, René Berber wrote:
 On 9/10/2010 11:18 AM, René Berber wrote:
  On 9/10/2010 4:04 AM, Yohann wrote:
  
  [snip]
  Is there any way to check the proper permission configuration on windows 
  XP or 
  to restore it?
  
  Windows doesn't care about permissions, it uses 777 for everything, and
  that is the default (everything has that permission, text, pictures,
  music, zip archives, ...).
  
  You don't need to change it, but if you do, you have to be careful to
  keep executables with the executable permission, or they won't run.
 
 Also dynamic libraries need the executable bits to be used... just ran
 into that one.  Windows sort of cares about permissions, probably that's
 why the default is 777.

Wll, not exactly.  The default permissions are rather 0700, plus an
extra 7 for Administrators and SYSTEM.  Have a look into your
$USERPROFILE directory.  Typically only you have full control
permissions on your files, Administrators and SYSTEM.  But nobody else
has any permissions.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple