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]

Permission denied in network drive through ssh


Hi all!!!!!

I´m with my home directory from windows server set in passwd:

pcosta:unused_by_nt/2000/xp:1005:513:Pedro Luiz Nani Costa,U-PCDEP06\pcosta,S-1-5-21-1645522239-838170752-682003330-1007://pcdep41/home/pcosta:/bin/bash


Then, i configure sshd and have some problems with permissions. With the 
help of the list, i solve the problem setting up CYGWIN to 'smbntsec'.
Now i perfectly do the remote shell with ssh, but look what i have after 
the login:


---------------------Output from daemon--------------------------------
debug2: read_server_config: filename /etc/sshd_config
debug1: sshd version OpenSSH_3.7.1p2
debug1: private host key: #0 type 0 RSA1
debug3: Not a RSA1 key file /etc/ssh_host_rsa_key.
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug3: Not a RSA1 key file /etc/ssh_host_dsa_key.
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from 143.106.81.245 port 3266
debug1: Client protocol version 2.0; client software version 
OpenSSH_3.7.1p2
debug1: match: OpenSSH_3.7.1p2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-1.99-OpenSSH_3.7.1p2
debug2: Network child is on pid 840
debug1: list_hostkey_types: ssh-rsa,ssh-dss
debug3: preauth child monitor started
debug1: SSH2_MSG_KEXINIT sent
debug3: mm_request_receive entering
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: 
diffie-hellman-group-exchange-sha1,diffie-hellman-gro
up1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-c
tr
debug2: kex_parse_kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-c
tr
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
ssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
ssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: 
diffie-hellman-group-exchange-sha1,diffie-hellman-gro
up1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-c
tr
debug2: kex_parse_kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,
aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-c
tr
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
ssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
ssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received
debug3: mm_request_send entering: type 0
debug3: mm_choose_dh: waiting for MONITOR_ANS_MODULI
debug3: monitor_read: checking request 0
debug3: mm_request_receive_expect entering: type 1
debug3: mm_answer_moduli: got parameters: 1024 2048 8192
debug3: mm_request_receive entering
debug3: mm_request_send entering: type 1
debug2: monitor_read: 0 used once, disabling now
debug3: mm_choose_dh: remaining 0
debug3: mm_request_receive entering
debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
debug2: dh_gen_key: priv key bits set: 118/256
debug2: bits set: 1630/3191
debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
debug2: bits set: 1597/3191
debug3: mm_key_sign entering
debug3: mm_request_send entering: type 4
debug3: mm_key_sign: waiting for MONITOR_ANS_SIGN
debug3: monitor_read: checking request 4
debug3: mm_request_receive_expect entering: type 5
debug3: mm_answer_sign
debug3: mm_request_receive entering
debug3: mm_answer_sign: signature 0x100fcf80(143)
debug3: mm_request_send entering: type 5
debug2: monitor_read: 4 used once, disabling now
debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
debug3: mm_request_receive entering
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: KEX done
debug1: userauth-request for user pcosta service ssh-connection method 
none
debug1: attempt 0 failures 0
debug3: mm_getpwnamallow entering
debug3: mm_request_send entering: type 6
debug3: mm_getpwnamallow: waiting for MONITOR_ANS_PWNAM
debug3: monitor_read: checking request 6
debug3: mm_request_receive_expect entering: type 7
debug3: mm_answer_pwnamallow
debug3: mm_request_receive entering
debug3: mm_answer_pwnamallow: sending MONITOR_ANS_PWNAM: 1
debug3: mm_request_send entering: type 7
debug2: monitor_read: 6 used once, disabling now
debug2: input_userauth_request: setting up authctxt for pcosta
debug3: mm_request_receive entering
debug3: mm_inform_authserv entering
debug3: mm_request_send entering: type 3
debug3: monitor_read: checking request 3
debug2: input_userauth_request: try method none
debug3: mm_answer_authserv: service=ssh-connection, style=
debug2: monitor_read: 3 used once, disabling now
debug3: mm_auth_password entering
debug3: mm_request_receive entering
debug3: mm_request_send entering: type 10
debug3: mm_auth_password: waiting for MONITOR_ANS_AUTHPASSWORD
debug3: monitor_read: checking request 10
debug3: mm_request_receive_expect entering: type 11
debug3: mm_answer_authpassword: sending result 0
debug3: mm_request_receive entering
debug3: mm_request_send entering: type 11
Failed none for pcosta from 143.106.81.245 port 3266 ssh2
debug3: mm_auth_password: user not authenticated
debug3: mm_request_receive entering
Failed none for pcosta from 143.106.81.245 port 3266 ssh2
debug1: userauth-request for user pcosta service ssh-connection method 
publickey

debug1: attempt 1 failures 1
debug2: input_userauth_request: try method publickey
debug1: test whether pkalg/pkblob are acceptable
debug3: mm_key_allowed entering
debug3: mm_request_send entering: type 20
debug3: mm_key_allowed: waiting for MONITOR_ANS_KEYALLOWED
debug3: monitor_read: checking request 20
debug3: mm_request_receive_expect entering: type 21
debug3: mm_answer_keyallowed entering
debug3: mm_request_receive entering
debug3: mm_answer_keyallowed: key_from_blob: 0x100fcfc0
debug1: temporarily_use_uid: 1005/513 (e=18/544)
debug1: trying public key file //pcdep41/home/pcosta/.ssh/authorized_keys
debug1: restore_uid: (unprivileged)
debug1: temporarily_use_uid: 1005/513 (e=18/544)
debug1: trying public key file //pcdep41/home/pcosta/.ssh/authorized_keys2
debug1: matching key found: file 
//pcdep41/home/pcosta/.ssh/authorized_keys2, li
ne 1
Found matching DSA key: 3f:30:a1:9c:c1:78:a0:6e:ce:71:1f:85:7e:e5:56:48
debug1: restore_uid: (unprivileged)
debug3: mm_answer_keyallowed: key 0x100fcfc0 is allowed
debug3: mm_request_send entering: type 21
debug3: mm_request_receive entering
debug2: userauth_pubkey: authenticated 0 pkalg ssh-dss
Postponed publickey for pcosta from 143.106.81.245 port 3266 ssh2
debug1: userauth-request for user pcosta service ssh-connection method 
publickey

debug1: attempt 2 failures 1
debug2: input_userauth_request: try method publickey
debug3: mm_key_allowed entering
debug3: mm_request_send entering: type 20
debug3: mm_key_allowed: waiting for MONITOR_ANS_KEYALLOWED
debug3: monitor_read: checking request 20
debug3: mm_request_receive_expect entering: type 21
debug3: mm_answer_keyallowed entering
debug3: mm_request_receive entering
debug3: mm_answer_keyallowed: key_from_blob: 0x100fcfe0
debug1: temporarily_use_uid: 1005/513 (e=18/544)
debug1: trying public key file //pcdep41/home/pcosta/.ssh/authorized_keys
debug1: restore_uid: (unprivileged)
debug1: temporarily_use_uid: 1005/513 (e=18/544)
debug1: trying public key file //pcdep41/home/pcosta/.ssh/authorized_keys2
debug1: matching key found: file 
//pcdep41/home/pcosta/.ssh/authorized_keys2, li
ne 1
Found matching DSA key: 3f:30:a1:9c:c1:78:a0:6e:ce:71:1f:85:7e:e5:56:48
debug1: restore_uid: (unprivileged)
debug3: mm_answer_keyallowed: key 0x100fcfe0 is allowed
debug3: mm_request_send entering: type 21
debug3: mm_key_verify entering
debug3: mm_request_receive entering
debug3: mm_request_send entering: type 22
debug3: mm_key_verify: waiting for MONITOR_ANS_KEYVERIFY
debug3: monitor_read: checking request 22
debug3: mm_request_receive_expect entering: type 23
debug1: ssh_dss_verify: signature correct
debug3: mm_request_receive entering
debug3: mm_answer_keyverify: key 0x100f5eb0 signature verified
debug3: mm_request_send entering: type 23
Accepted publickey for pcosta from 143.106.81.245 port 3266 ssh2
debug2: userauth_pubkey: authenticated 1 pkalg ssh-dss
debug1: monitor_child_preauth: pcosta has been authenticated by privileged 
proce
ss
Accepted publickey for pcosta from 143.106.81.245 port 3266 ssh2
debug3: mm_get_keystate: Waiting for new keys
debug3: mm_send_keystate: Sending new keys: 0x100f5288 0x100f6108
debug3: mm_request_receive_expect entering: type 24
debug3: mm_newkeys_to_blob: converting 0x100f5288
debug3: mm_request_receive entering
debug3: mm_newkeys_to_blob: converting 0x100f6108
debug3: mm_send_keystate: New keys have been sent
debug3: mm_send_keystate: Sending compression state
debug3: mm_request_send entering: type 24
debug3: mm_send_keystate: Finished sending state
debug3: mm_newkeys_from_blob: 0x100fd1a0(118)
debug2: mac_init: found hmac-md5
debug3: mm_get_keystate: Waiting for second key
debug3: mm_newkeys_from_blob: 0x100fd1a0(118)
debug2: mac_init: found hmac-md5
debug3: mm_get_keystate: Getting compression state
debug3: mm_get_keystate: Getting Network I/O buffers
debug3: mm_share_sync: Share sync
debug3: mm_share_sync: Share sync end
debug2: set_newkeys: mode 0
debug2: set_newkeys: mode 1
debug1: Entering interactive session for SSH2.
debug2: fd 3 setting O_NONBLOCK
debug2: fd 7 setting O_NONBLOCK
debug1: server_init_dispatch_20
debug1: server_input_channel_open: ctype session rchan 0 win 65536 max 
16384
debug1: input_session_request
debug1: channel 0: new [server-session]
debug1: session_new: init
debug1: session_new: session 0
debug1: session_open: channel 0
debug1: session_open: session 0: link with channel 0
debug1: server_input_channel_open: confirm session
debug1: server_input_channel_req: channel 0 request pty-req reply 0
debug1: session_by_channel: session 0 channel 0
debug1: session_input_channel_req: session 0 req pty-req
debug1: Allocating pty.
debug1: session_pty_req: session 0 alloc /dev/tty2
debug3: tty_parse_modes: SSH2 n_bytes 246
debug3: tty_parse_modes: ospeed 38400
debug3: tty_parse_modes: ispeed 38400
debug3: tty_parse_modes: 1 3
debug3: tty_parse_modes: 2 28
debug3: tty_parse_modes: 3 127
debug3: tty_parse_modes: 4 21
debug3: tty_parse_modes: 5 4
debug3: tty_parse_modes: 6 0
debug3: tty_parse_modes: 7 0
debug3: tty_parse_modes: 8 17
debug3: tty_parse_modes: 9 19
debug3: tty_parse_modes: 10 26
debug3: tty_parse_modes: 12 18
debug3: tty_parse_modes: 13 23
debug3: tty_parse_modes: 14 22
debug3: tty_parse_modes: 18 15
debug3: tty_parse_modes: 30 0
debug3: tty_parse_modes: 31 0
debug3: tty_parse_modes: 32 0
debug3: tty_parse_modes: 33 0
debug3: tty_parse_modes: 34 0
debug3: tty_parse_modes: 35 0
debug3: tty_parse_modes: 36 1
debug3: tty_parse_modes: 37 0
debug3: tty_parse_modes: 38 1
debug3: tty_parse_modes: 39 0
debug3: tty_parse_modes: 40 0
debug3: tty_parse_modes: 41 0
debug3: tty_parse_modes: 50 1
debug3: tty_parse_modes: 51 1
debug3: tty_parse_modes: 53 1
debug3: tty_parse_modes: 54 0
debug3: tty_parse_modes: 55 0
debug3: tty_parse_modes: 56 0
debug3: tty_parse_modes: 57 0
debug3: tty_parse_modes: 58 0
debug3: tty_parse_modes: 59 1
debug3: tty_parse_modes: 60 0
debug3: tty_parse_modes: 61 0
debug3: tty_parse_modes: 70 1
debug3: tty_parse_modes: 71 0
debug3: tty_parse_modes: 72 1
debug3: tty_parse_modes: 73 0
debug3: tty_parse_modes: 74 0
debug3: tty_parse_modes: 75 0
debug3: tty_parse_modes: 90 1
debug3: tty_parse_modes: 91 1
debug3: tty_parse_modes: 92 0
debug3: tty_parse_modes: 93 0
debug1: server_input_channel_req: channel 0 request shell reply 0
debug1: session_by_channel: session 0 channel 0
debug1: session_input_channel_req: session 0 req shell
debug2: fd 4 setting TCP_NODELAY
debug2: channel 0: rfd 9 isatty
debug2: fd 9 setting O_NONBLOCK
debug2: fd 8 setting O_NONBLOCK
----------------------------------------------------------------------

-------------------Output from client--------------------------------
Environment:
  ALLUSERSPROFILE=C:\Documents and Settings\All Users
  CMG_HOME=C:\Arquivos de programas\CMG
  COMMONPROGRAMFILES=C:\Arquivos de programas\Arquivos comuns
  COMPUTERNAME=PCDEP06
  COMSPEC=C:\WINDOWS\system32\cmd.exe
  CYGWIN=smbntsec tty
  CYGWIN32=smbntsec tty
  DISPLAY=localhost:0.0
  EDITOR=vi
  INTERIX_ROOT=/dev/fs/C/SFU/
  INTERIX_ROOT_WIN=C:\SFU\
  LAMHOME=C:\Landmark\LAM
  LD_LIBRARY_PATH=/usr/lib:/usr/X11R6/lib
  LM_LICENSE_FILE=C:\Landmark\LAM\license.txt
  LSDEFAULTDIR=C:\Arquivos de programas\CMG\secure
  LSERVOPTS=-l "C:\Arquivos de programas\CMG\secure\cmgusage.log"
  LSHOST=NO-NET
  MPI_HOME=C:\Arquivos de programas\MPIPro
  NUMBER_OF_PROCESSORS=1
  OPENNT_ROOT=/dev/fs/C/SFU/
  OS=Windows_NT
  PATH=/cygdrive/c/Arquivos de programas/Windows Resource 
Kits/Tools/:/cygdrive/
c/LANDMARK/LAM/BIN:/cygdrive/c/LANDMARK/VIP/DTVIP/EXEC:/cygdrive/c/LANDMARK/VIP/
DTVIP/SIM/LSFBIN:/cygdrive/c/WINDOWS/SYSTE
  PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
  PROCESSOR_ARCHITECTURE=x86
  PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 4, GenuineIntel
  PROCESSOR_LEVEL=15
  PROCESSOR_REVISION=0204
  PROGRAMFILES=C:\Arquivos de programas
  PVM_ROOT=/mnt/shared/pvm3
  SFUDIR=C:\SFU\
  SFUDIR_INTERIX=/dev/fs/C/SFU/
  SYSTEMDRIVE=C:
  SYSTEMROOT=C:\WINDOWS
  TEMP=/cygdrive/c/WINDOWS/TEMP
  TMP=/cygdrive/c/WINDOWS/TEMP
  TMPDIR=/cygdrive/c/WINDOWS/TEMP
  UNIPAR_ROOT=/mnt/shared/unipar
  USERPROFILE=C:\Documents and Settings\LocalService
  VIPACROBAT=C:\Arquivos de programas\Adobe\Acrobat 
6.0\Reader\AcroRd32.exe
  VIPEXCEED="C:\Arquivos de 
programas\Hummingbird\Connectivity\7.00\Exceed\\Exce
ed.exe"
  VIPHOME=C:/Landmark/VIP
  VIPJAVA=C:\Landmark\vip\dtvip\lib\JRE\1.3\bin\java.exe
  VIPNTHOME=C:\Landmark\VIP
  VIPTEMP=C:\TEMP
  WINDIR=C:\WINDOWS
  XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
  XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
  XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
  XNLSPATH=/usr/X11R6/lib/X11/locale
  TERM=cygwin
  HOME=//pcdep41/home/pcosta
  USER=pcosta
  LOGNAME=pcosta
  MAIL=/var/spool/mail/pcosta
  SHELL=/bin/bash
  SSH_CLIENT=143.106.81.151 2888 22
  SSH_CONNECTION=143.106.81.151 2888 143.106.81.151 22
  SSH_TTY=/dev/tty2
debug3: channel 0: close_fds r -1 w -1 e -1
Could not chdir to home directory //pcdep41/home/pcosta: Permission denied
mkdir: cannot create directory `//pcdep41/home/pcosta': File exists
Copying skeleton files.
These files are for the user to personalise
their cygwin experience.

These will never be overwritten.

/usr/bin/install: creating directory `//pcdep41/home/pcosta'
`./.bashrc' -> `//pcdep41/home/pcosta//.bashrc'
/usr/bin/install: cannot create regular file 
`//pcdep41/home/pcosta//.bashrc': P
ermission denied
/usr/bin/install: creating directory `//pcdep41/home/pcosta'
`./.bash_profile' -> `//pcdep41/home/pcosta//.bash_profile'
/usr/bin/install: cannot create regular file 
`//pcdep41/home/pcosta//.bash_profi
le': Permission denied
/usr/bin/install: creating directory `//pcdep41/home/pcosta'
`./.inputrc' -> `//pcdep41/home/pcosta//.inputrc'
/usr/bin/install: cannot create regular file 
`//pcdep41/home/pcosta//.inputrc':
Permission denied
-bash: cd: //pcdep41/home/pcosta: Permission denied
-bash: //pcdep41/home/pcosta/.bash_profile: Permission denied
----------------------------------------------------------------------

Despite the daemon finds my keys and authenticate them, after that, it 
seems it loses permission to read my drive, which is totally crazy.......


Any help would be great..............

Thanks in advance.............

[]´s
Pedro Costa


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