Red Hat Bugzilla – Bug 197812
Can't connect, refused by sshd, due to permissions
Last modified: 2007-11-30 17:11:36 EST
Description of problem:
Standard FC5 sshd (openssh) refuses to let an NX client connect due to unsecure
Version-Release number of selected component (if applicable):
Not sure. Here: always.
Steps to Reproduce:
1. Start up nomachine.com's NX client for Win32
2. Connect to FC5 machine.
Can't establish connection. (I can't recall the Windows client's message.)
Start up X11/NX.
The NX server running FC5 complains in /var/log/secure:
sshd: Authentication refused: bad ownership or modes for directory /var/
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.
Created attachment 132008 [details]
patch to SPEC file to fix nx user's home dir permissions
Fixed in current version. 0.5.0-2