Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3BBDB0C8.DA04DAC8@cportcorp.com> Date: Fri, 05 Oct 2001 09:08:24 -0400 From: Peter Buckley X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: "David J. Wilson" , cygwin AT cygwin DOT com Subject: chmod/chown + ntsec doesn't work (was OpenSSH and RSA authentication problems) References: <20011003103653 DOT A8662 AT drew DOT edu> <20011003214843 DOT A9463 AT drew DOT edu> <3BBC9402 DOT 789194A5 AT cportcorp DOT com> <20011004220251 DOT A10846 AT drew DOT edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I saw one other post that said that you should make sure CYGWIN is set to "ntsec" but that doesn't necessarily mean that chmod or chown is going to work. I tried your example from a bash shell on my system, with CYGWIN=binmode tty ntsec. Of course, chmod didn't work right. You can see from the following output that chmod worked in some cases, and chown definitely didn't work. I checked the FAQ, the archives, and the documentation, but there seem to only be suggestions to "set CYGWIN=ntsec" and "you can't use chmod on 95/98". This seems like the root of your SSH problem Dave, I just wish I knew why chmod didn't work. /home/pbuckley $ touch example_file /home/pbuckley $ ls -la example_file -rw-rw-rw- 1 pbuckley Domain U 0 Oct 5 08:47 example_file /home/pbuckley $ chown system.system example_file chown: changing ownership of `example_file': Permission denied /home/pbuckley $ chmod 777 example_file chmod: changing permissions of `example_file': Permission denied /home/pbuckley $ chmod +x example_file /home/pbuckley $ ls -la example_file -rwxrwxrwx 1 pbuckley Domain U 0 Oct 5 08:48 example_file /home/pbuckley $ chmod 777 example_file /home/pbuckley $ ls -la example_file -rwxrwxrwx 1 pbuckley Domain U 0 Oct 5 08:48 example_file /home/pbuckley $ chown system.system example_file chown: changing ownership of `example_file': Permission denied /home/pbuckley $ chown SYSTEM.SYSTEM example_file chown: changing ownership of `example_file': Permission denied /home/pbuckley $ chmod 600 example_file chmod: changing permissions of `example_file': Permission denied /home/pbuckley $ ls -la example_file -rwxrwxrwx 1 pbuckley Domain U 0 Oct 5 08:48 example_file /home/pbuckley $ chmod --version chmod (fileutils) 4.1 Written by David MacKenzie. Copyright (C) 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. /home/pbuckley $ /cygdrive/c/cygwin/bin/chmod 600 example_file /cygdrive/c/cygwin/bin/chmod: changing permissions of `example_file': Permission denied TIA, Peter "David J. Wilson" wrote: > > On Thu, Oct 04, 2001 at 12:53:22PM -0400, Peter Buckley wrote: > > David- > > > > Have you checked http://tech.erdelynet.com- > > Mike Erdely knows a *little* about ssh and cygwin, > > and he has an SSH mailing list as well. > > I followed the instructions on his site with no luck. One thing I noticed-- > part of it said to change permissions and ownership (chown and chmod). Is > this supposed to have any noticable effect ? > > Take this for instance: > [vlastyn AT sundown:~] touch example_file > [vlastyn AT sundown:~] ls -la example_file > 0 -rw-r--r-- 1 vlastyn None 0 Oct 4 22:24 example_file > [vlastyn AT sundown:~] chown system.system example_file > [vlastyn AT sundown:~] chmod 777 example_file > [vlastyn AT sundown:~] ls -la example_file > 0 -rw-r--r-- 1 vlastyn None 0 Oct 4 22:24 example_file > [vlastyn AT sundown:~] > > I am of course running NTFS and with an up-to-date /etc/passwd and > /etc/group. I looked at the permissions with the GUI and they didn't > show any change either. > > Dave -- Your mouse has moved. Windows NT must be restarted for the change to take effect. Reboot now? [OK] -- -- 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/