This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

File permissions screwy (chown - chmod - ssh - rsync - ntsec??)


goal:  get rsync hand-in-hand with ssh to perform a sync from an xp box to a
sun box and vice versa (development path for approx 20 programmers:  XP(DEV)
-> SUN(TEST) -> SUN(UAT) -> SUN(PROD)) (please don't ask why we can't have
some *x variant as our development machines....i just can't take that
completely logical question anymore..)

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@TPA-WRK-008072 ~
$ echo $CYGWIN
ntsec

JQuattlebaum@TPA-WRK-008072 ~
$ touch test.file

JQuattlebaum@TPA-WRK-008072 ~
$ ls -la test.file
-rw-r--r-- 1 JQuattlebaum Domain Users 0 Oct 24 15:02 test.file

JQuattlebaum@TPA-WRK-008072 ~
$ chmod 000 test.file

JQuattlebaum@TPA-WRK-008072 ~
$ ls -la test.file
-r--r--r-- 1 JQuattlebaum Domain Users 0 Oct 24 15:02 test.file

JQuattlebaum@TPA-WRK-008072 ~
$ chmod 777 test.file

JQuattlebaum@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.

and another strangeness (that i am going to search on and hopefully not have
to post a question about..) is that during cygwin setup there **IS NOT**
'ssh' nor 'rsync' in the list of things able to be installed (i had to dig
an old install of cygwin up and dump it to my xp box and run updates for
newer packages).  and yes, i know how to change the view so that 'all'
packages are listed regardless of section they belong to so i'm not just
'missing it'.  i've also tried changing mirrors which did not help.  anyway
this is another issue but i wanted to make light of it here in case it might
have some bearing on why i'm having such strangeness with cygwin lately.

i hope i have provided enough information.  thank you very much in advance
to anyone able to shed light on this for me.
-JQuattlebaum
-- 
View this message in context: http://www.nabble.com/File-permissions-screwy-%28chown---chmod---ssh---rsync---ntsec--%29-tf2503531.html#a6979763
Sent from the Cygwin Users mailing list archive at Nabble.com.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]