Mail Archives: cygwin/2001/10/05/09:18:06
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/
- Raw text -