Bug 197812

Summary: Can't connect, refused by sshd, due to permissions
Product: [Fedora] Fedora Reporter: Moritz Barsnick <moritz>
Component: freenxAssignee: Richard A. Stout <zipsonic>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: medium    
Version: 5CC: extras-qa
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: freenx-0.5.0-2.fc5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-12 06:18:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 187071    
Attachments:
Description Flags
patch to SPEC file to fix nx user's home dir permissions none

Description Moritz Barsnick 2006-07-06 16:01:47 UTC
Description of problem:
Standard FC5 sshd (openssh) refuses to let an NX client connect due to unsecure 
permissions.

Version-Release number of selected component (if applicable):
freenx-0.5.0-0.5.test7.fc5
nx-1.5.0-10.fc5
openssh-server-4.3p2-4

How reproducible:
Not sure. Here: always.

Steps to Reproduce:
1. Start up nomachine.com's NX client for Win32
2. Connect to FC5 machine.
  
Actual results:
Can't establish connection. (I can't recall the Windows client's message.)

Expected results:
Start up X11/NX.

Additional info:
The NX server running FC5 complains in /var/log/secure:
sshd[8086]: Authentication refused: bad ownership or modes for directory /var/
lib/nxserver/home

Indeed, /var/lib/nxserver/home has the permissions 775. sshd doesn't seem to 
care that this may be fine, it just looks at the numbers, I guess. (Apparently, 
if you configure sshd with "StrictModes no", with is _not_ recommended, it will 
accept these permissions.) Manually doing chmod g-w fixes this. NX then 
actually works out of the box. Excellent work, guys!

A trivial patch for the SPEC file is attached.

Comment 1 Moritz Barsnick 2006-07-06 16:01:47 UTC
Created attachment 132008 [details]
patch to SPEC file to fix nx user's home dir permissions

Comment 2 Richard A. Stout 2006-07-12 06:18:30 UTC
Fixed in current version. 0.5.0-2