Thanks Larry.....

Setting up Cygwin with smbntsec solves the problem, and i could 
autenticate my keys through my net.

But then, i delete the keys to remake all the process, generating new 
keys for others users just as i did, the 
thing just not go too good.

I believe its because the drives with the HOME´s are mounted as the 
administrator owner, and some kind of damage happens when i change 
variable CYGWIN, look:

[EMAIL PROTECTED] ~
$ ls -la
total 3619
drwx------+   1 ???????? ????????        0 Feb  3 15:08 .
dr-xr-xr-x    8 0        0               0 Dec 31  1969 ..
-rwxr-xr-x    1 pcosta   Nenhum        533 Feb  3 15:08 .bash_profile
-rwxr-xr-x    1 pcosta   Nenhum       1131 Feb  3 15:08 .bashrc
-rwx------    1 Administ ????????      221 Dec 13  2001 .rhosts
drwx------+   1 pcosta   Nenhum          0 Feb  3 15:02 .ssh
-rwx------    1 Administ ????????    63488 Jun 21  2002 Fluxograma_MAI.vsd
-rwx------    1 Administ ????????    94314 Nov 25  2002 Fluxograma_MAI.wmf
dr-x------+   1 Administ ????????     4096 Feb  3 10:00 Meus documentos
-rwx------    1 Administ ????????      600 Sep 15 16:42 PUTTY.RND

Look what happens, if i try to generate the keys:
[EMAIL PROTECTED] ~
$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (//pcdep41/home/pcosta/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
open //pcdep41/home/pcosta/.ssh/id_dsa failed: Permission denied.
Saving the key failed: //pcdep41/home/pcosta/.ssh/id_dsa.

Well, in my passwd seems to be correct, e.g, i don´t mount manually my 
home drive:

SYSTEM:*:18:544:,S-1-5-18::
Administradores:*:544:544:,S-1-5-32-544::
Administrador:unused_by_nt/2000/xp:500:513:U-PCDEP06\Administrador,S-1-5-21-1645522239-838170752-682003330-500:/home/Administrador:/bin/bash
celio:unused_by_nt/2000/xp:1012:513:Célio 
Maschio,U-PCDEP06\celio,S-1-5-21-1645522239-838170752-682003330-1012:/home/celio:/bin/bash
Convidado:unused_by_nt/2000/xp:501:513:U-PCDEP06\Convidado,S-1-5-21-1645522239-838170752-682003330-501:/home/Convidado:/bin/bash
denis:unused_by_nt/2000/xp:1014:513:Denis José 
Schiozer,U-PCDEP06\denis,S-1-5-21-1645522239-838170752-682003330-1014:/home/denis:/bin/bash
drumond:unused_by_nt/2000/xp:1004:513:Paulo Soares 
Drumond,U-PCDEP06\drumond,S-1-5-21-1645522239-838170752-682003330-1004:/home/drumond:/bin/bash
eligero:unused_by_nt/2000/xp:1023:513:Eliana 
Eligero,U-PCDEP06\eligero,S-1-5-21-1645522239-838170752-682003330-1023:/home/eligero:/bin/bash
filho:unused_by_nt/2000/xp:1035:513:João Carlos Von Hohendorff 
Filho,U-PCDEP06\filho,S-1-5-21-1645522239-838170752-682003330-1035:/home/filho:/bin/bash
HelpAssistant:unused_by_nt/2000/xp:1000:513:Conta de assistente de ajuda 
de área de trabalho 
remota,U-PCDEP06\HelpAssistant,S-1-5-21-1645522239-838170752-682003330-1000:/home/HelpAssistant:/bin/bash
leonardo:unused_by_nt/2000/xp:1031:513:Leonardo Façanha 
Oberto,U-PCDEP06\leonardo,S-1-5-21-1645522239-838170752-682003330-1031:/home/leonardo:/bin/bash
lucaslm:unused_by_nt/2000/xp:1011:513:Lucas Lalia 
Martini,U-PCDEP06\lucaslm,S-1-5-21-1645522239-838170752-682003330-1011:/home/lucaslm:/bin/bash
orlando:unused_by_nt/2000/xp:1030:513:Orlando Saraiva do Nascimento 
Junior,U-PCDEP06\orlando,S-1-5-21-1645522239-838170752-682003330-1030:/home/orlando:/bin/bash
palberto:unused_by_nt/2000/xp:1008:513:Pedro Alberto Vicente de 
Oliveira,U-PCDEP06\palberto,S-1-5-21-1645522239-838170752-682003330-1008:/home/palberto:/bin/bash
pcosta:unused_by_nt/2000/xp:1007:513:Pedro Luiz Nani 
Costa,U-PCDEP06\pcosta,S-1-5-21-1645522239-838170752-682003330-1007://pcdep41/home/pcosta:/bin/bash
rogeriom:unused_by_nt/2000/xp:1026:513:Rogério 
Martini,U-PCDEP06\rogeriom,S-1-5-21-1645522239-838170752-682003330-1026:/home/rogeriom:/bin/bash
sergio:unused_by_nt/2000/xp:1010:513:Sergio Henrique Guerra de 
Sousa,U-PCDEP06\sergio,S-1-5-21-1645522239-838170752-682003330-1010:/home/sergio:/bin/bash
simaro:unused_by_nt/2000/xp:1029:513:Fernando Henrique Moschioni 
Simaro,U-PCDEP06\simaro,S-1-5-21-1645522239-838170752-682003330-1029:/home/simaro:/bin/bash
sshd:unused_by_nt/2000/xp:1016:513:sshd 
privsep,U-PCDEP06\sshd,S-1-5-21-1645522239-838170752-682003330-1016:/var/empty:/bin/bash
ssh_srv:unused_by_nt/2000/xp:1034:513:Serviço SSH 
CYGWIN,U-PCDEP06\ssh_srv,S-1-5-21-1645522239-838170752-682003330-1034:/home/ssh_srv:/bin/bash
SUPPORT_388945a0:unused_by_nt/2000/xp:1002:513:CN=Microsoft 
Corporation,L=Redmond,S=Washington,C=US,U-PCDEP06\SUPPORT_388945a0,S-1-5-21-1645522239-838170752-682003330-1002:/home/SUPPORT_388945a0:/bin/bash
yara:unused_by_nt/2000/xp:1028:513:Fernanda Yara dos Santos 
Foschiani,U-PCDEP06\yara,S-1-5-21-1645522239-838170752-682003330-1028:/home/yara:/bin/bash


My variables are now:

CYGWIN   smbntsec tty
CYGWIN32 smbntsec tty


Is there a explicit way to tell Cygwin that i am owner of my drive???


Thanks in advance....

[]s
Pedraum

P.S. I hope this has more information than the first..... ;)

On Tue, 3 Feb 2004, Larry Hall wrote:

> At 09:10 AM 2/3/2004, Pedro Luiz Nani Costa you wrote:
> >Hello everyone!!!!
> >
> >I know this subject is exausted on the list, but i can't figured out 
> >what's happening on my case.
> >
> >Look, i have winXP e win2000 machines and i set up properly sshd on 
> >cygwin(CYGWIN_NT-5.1 pcdep06 1.5.5(0.94/3/2) 2003-09-20 16:31 i686).
> >
> >The hole thing is i have to use HOME directories in NTFS drives on my net, 
> >e. g., my home is like //pcdep41/home/$USER. So when i'm trying  to 
> >authenticate with ssh keys, which is generated e registered on other 
> >machines properly. So, i get the obvious:
> >
> >$ ssh kirin
> >@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> >@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
> >@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> >Permissions 0644 for '//pcdep41/home/pcosta/.ssh/id_dsa' are too open.
> >It is recommended that your private key files are NOT accessible by 
> >others.
> >This private key will be ignored.
> >bad permissions: ignore key: //pcdep41/home/pcosta/.ssh/id_dsa
> >Enter passphrase for key '//pcdep41/home/pcosta/.ssh/id_dsa':
> >[EMAIL PROTECTED]'s password:
> >
> >
> >Indeed, look my home directory:
> >
> >[EMAIL PROTECTED] ~/.ssh
> >$ ls -l
> >total 4
> >-rw-r--r--    1 pcosta   Nenhum        602 Feb  3 11:09 authorized_keys2
> >-rw-r--r--    1 pcosta   Nenhum        668 Jan 29 12:57 id_dsa
> >-rw-r--r--    1 pcosta   Nenhum        604 Jan 29 12:57 id_dsa.pub
> >-rw-r--r--    1 pcosta   Nenhum        697 Feb  2 11:08 known_hosts
> >
> >
> >And of course, chmod or chown doesn't work. I try to define permissions on 
> >windows, check my Cygwin environmental variable, all stuff that i could 
> >find on this list, but nothing solve the problem.
> >
> >It is possible do that??? i mean, set the right permissions on my windows 
> >drive network????
> 
> 
> Please read and follow the link below for all problem reports to the list:
> 
> 
> >Problem reports:       http://cygwin.com/problems.html
> 
> 
> My WAG is that you haven't set 'smbntsec' in your CYGWIN environment 
> variable.  Try it and let us know if that helps.  If it doesn't, let 
> us know exactly what you did as specified by the link above.
> 
> 
> 
> --
> Larry Hall                              http://www.rfk.com
> RFK Partners, Inc.                      (508) 893-9779 - RFK Office
> 838 Washington Street                   (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/

Reply via email to