delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/24/16:57:12

X-Spam-Check-By: sourceware.org
Message-ID: <453E7E04.1090901@cygwin.com>
Date: Tue, 24 Oct 2006 16:56:36 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060916 Fedora/1.5.0.7-1.fc4.remi Thunderbird/1.5.0.7 Mnenhy/0.7.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: File permissions screwy (chown - chmod - ssh - rsync - ntsec??)
References: <6979763 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <6979763.post@talk.nabble.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

psyjoniz wrote:

<snip>

> status:  ssh works but with permissions issues; rsync works but with
> permissions issues
> 
> issues:  permissions do not seem to be handled properly within my cygwin
> environment.  this causes two issues:  1) ssh cannot be setup with public
> keys for authentication because perms can't be set to 'r--------' on the
> (XP) key file (rsync automation depends on this ability) and 2) when i set
> the 'p' flag when running rsync it goes to the slave box and touches all
> files that exist on the host box regardless if they are in need of update
> causing rsync's wonderful ability to sync things quickly go straight down
> the crapper plus it makes the perms on the sun box go screwy (yes, i can
> take off the p flag but it still does not fix the ssh key problem).
> 
> http://www.nabble.com/file/3825/cygcheck.txt cygcheck.txt 
> 
> yes, i have searched.
> 
> i've run:
> mkpasswd -d > /etc/passwd
> mkgroup -d > /etc/group
> 
> i've set (in both .bash_profile [set CYGWIN=ntsec;export $CYGWIN;] and
> global env for xp)
> 
> :: reboot ::
> 
> cygwin cmd line results..
> //--------------------------------------------//
> JQuattlebaum AT TPA-WRK-008072 ~
> $ echo $CYGWIN
> ntsec
> 
> JQuattlebaum AT TPA-WRK-008072 ~
> $ touch test.file
> 
> JQuattlebaum AT TPA-WRK-008072 ~
> $ ls -la test.file
> -rw-r--r-- 1 JQuattlebaum Domain Users 0 Oct 24 15:02 test.file
> 
> JQuattlebaum AT TPA-WRK-008072 ~
> $ chmod 000 test.file
> 
> JQuattlebaum AT TPA-WRK-008072 ~
> $ ls -la test.file
> -r--r--r-- 1 JQuattlebaum Domain Users 0 Oct 24 15:02 test.file
> 
> JQuattlebaum AT TPA-WRK-008072 ~
> $ chmod 777 test.file
> 
> JQuattlebaum AT TPA-WRK-008072 ~
> $ ls -la test.file
> -rw-r--r-- 1 JQuattlebaum Domain Users 0 Oct 24 15:02 test.file
> //--------------------------------------------//
> 
> i've also tried the -l option on both mkpasswd and mkgroup and manually
> modified both output files so that my current user has a valid group (not
> 'mkgroup') but still no dice.


I assume you're doing this testing from your home directory.  If that's the
case, you need to add 'smbntsec' to your CYGWIN variable.  See
<http://cygwin.com/cygwin-ug-net/using-cygwinenv.html>


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

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