Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | SSH ignoring "StrictModes no" |
|---|---|
| Date: | Sat, 27 Aug 2005 13:39:48 +0200 |
Hi everybody, We have a very strange problem with SSH. It looks like sshd is ignoring "StrictModes no" and still doing strict permission checking. Can anyone give me some hint what the problem might be? Background: We have a machine where partners can transfer files to us. The machine runs a SSH daemon with very strict settings. We use OpenSSH 3.9p1 with the chroot and sftp-logging patch. Only PublicKey authentication and SFTP is allowed. And the user is chroot'ed. Problem: As long as the various users directory (e.g. User XA302) is mode drwxr-sr-x everything is fine. But if I change this to drwxrwsr-x SSH complains "Authentication refused: bad ownership or modes for directory /appl/chroot/cp/XA302". We need group write permission on /appl/chroot/cp/... for our jobs which do further processing of the transfered files. So I set "StrictModes no" in sshd_config. The strange thing is this setup worked for months but not anymore since yesterday. And I can't find any configuration change. SSH was not updated and no Solaris patches have been installed. Does anyone have a similar problem or knows why SSH might possibly ignore "StrictModes no"? Any help would be very much appreciated. -Markus- Below some configuration info: OS: Solaris 8 SSH-Version: # ssh -V OpenSSH_3.9p1-AuthSelect-SecurID-log, OpenSSL 0.9.7d 17 Mar 2004 The sshd_config: # $OpenBSD: sshd_config,v 1.69 2004/05/23 23:59:53 dtucker Exp $ # This is the sshd server system-wide configuration file. See # sshd_config(5) for more information. # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin # The strategy used for options in the default sshd_config shipped with # OpenSSH is to specify options with their default value where # possible, but leave them commented. Uncommented options change a # default value. Port 2222 Protocol 2 ListenAddress 172.22.4.139 ServerKeyBits 1024 StrictModes no # HostKeys for protocol version 2 HostKey /etc/mmp/ssh_host_rsa_key_mmp HostKey /etc/mmp/ssh_host_dsa_key_mmp # Only allow PublicKey authentication PubkeyAuthentication yes PasswordAuthentication no RhostsRSAAuthentication no RSAAuthentication no ChallengeResponseAuthentication no HostbasedAuthentication no IgnoreRhosts yes # Logging #obsoletes QuietMode and FascistLogging SyslogFacility AUTH #LogLevel INFO LogLevel VERBOSE #LogLevel DEBUG3 # PrivilegeSeparation # Specifies whether sshd separates privileges by creating # an unprivileged child process to deal with incoming # network traffic. After successful authentication, # another process will be created that has the privilege # of the authenticated user. The goal of privilege # separation is to prevent privilege escalation by con- # taining any corruption within the unprivileged # processes. The default is ``yes''. UsePrivilegeSeparation yes # Allow only this groups (primary group) AllowGroups cms AllowGroups dcs AllowGroups nobody # Allow only this users #AllowUsers mmp #AllowUsers TE333 #AllowUsers TE444 PrintMotd no # override default of no subsystems Subsystem sftp /usr/local/libexec/sftp-server # sftp-server logging SftpLog yes SftpLogFacility AUTH SftpLogLevel VERBOSE # sftp-server umask control SftpUmask 007 SftpPermitChmod yes SftpPermitChown yes
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Preserving ONLY modification times & access times for "scp", alexansp |
|---|---|
| Next by Date: | SSH Tunnel logging only local ip's, Paranoia |
| Previous by Thread: | Preserving ONLY modification times & access times for "scp", alexansp |
| Next by Thread: | SSH Tunnel logging only local ip's, Paranoia |
| Indexes: | [Date] [Thread] [Top] [All Lists] |