Bug 28318
Summary: | vnc-server starts VNC in root directory, not home directory | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | David Konerding <dek> | ||||
Component: | vnc | Assignee: | Tim Waugh <twaugh> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7.1 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2001-06-05 09:19:52 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: | |||||||
Attachments: |
|
Description
David Konerding
2001-02-19 16:50:11 UTC
Thanks for the report. Please try out the attached replacement for /etc/init.d/vncserver. 'service vncserver stop' should also now work. Created attachment 10420 [details]
/etc/init.d/vncserver
Fixed in 3.3.3r2-14. But the initscript still starts up in /root as evident by the message syslogged 'su: bash: /root/.bashrc: Permission denied'. Here's how I worked around: --- vncserver-3.3.3r2-14 Mon Feb 19 10:27:06 2001 +++ vncserver Mon Jun 4 12:30:22 2001 @@ -26,7 +26,7 @@ do echo -n "${display} " initlog $INITLOG_ARGS -c \ - "su ${display##*:} -c \"cd && [ -f .vnc/passwd ] && vncserver :${display%%:*}\"" + "su ${display##*:} -c \"cd ~${display##*:} && [ -f .vnc/passwd ] && vncserver :${display%%:*}\"" RETVAL=$? [ "$RETVAL" -ne 0 ] && break done Patch applied in 3.3.3r2-16. Thanks. |