www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/04/27/07:56:45

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Mon, 27 Apr 2009 19:56:30 +0800
Message-ID: <464d6a5a0904270456p70f9cdbep1c887388a44d2769@mail.gmail.com>
Subject: Post-Install Scripts: chmod 755 /var doesn't work
From: "K.C. Lee" <kcl DOT joseph AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi:

I'm trying to make a unattended installation of cygwin including openssh server.

For some reason I have to excute the following 2 lines and I write
them into some /etc/postinstall/xxx.sh and compress it as .tar.bz2
file
chmod +r /etc/passwd
chmod +r /etc/group

But this didn't work.

Then I douted that maybe some other postinstall script set the file
system modes back.
So I add 3 test line in /etc/postinstall/xxx.sh and recompress it as
.tar.bz2 file
echo "1234" > /tmp/123.log
chmod 777 /tmp/123.log
% ls -l /tmp/123.log
-rwxr-xr--+ 1 Administrator Users 5 Apr 27 17:25 123.log

But this didn't work, too.
But while I execute Cygwin.bat and login in bash shell and run
chmod 777 /tmp/123.log
Then it works.
% ls -l /tmp/123.log
-rwxrwxrwx+ 1 Administrator Users 5 Apr 27 17:25 123.log


Anyone can help me with chmod +r so that it can be executed
successfully during postinstall stage?
Ant help is appreciated.

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019