Bug 197812 - Can't connect, refused by sshd, due to permissions
Summary: Can't connect, refused by sshd, due to permissions
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: freenx
Version: 5
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Richard A. Stout
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: FE6Target
TreeView+ depends on / blocked
 
Reported: 2006-07-06 16:01 UTC by Moritz Barsnick
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: freenx-0.5.0-2.fc5
Clone Of:
Environment:
Last Closed: 2006-07-12 06:18:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch to SPEC file to fix nx user's home dir permissions (360 bytes, patch)
2006-07-06 16:01 UTC, Moritz Barsnick
no flags Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.