-   Linux - Software (
-   -   TCSH startx issue (

clcbluemont 03-09-2011 04:45 PM

TCSH startx issue
Strange problem. We setup inittab to start X in the following way:
1:2345:respawn:/bin/su - joe "/usr/bin/startx"

All was working fine until we changed joe's shell from bash to tcsh and now at boot up we get:
userclientrc=/home/joe/.xinitrc: Command not found.
userserverrc=/home/joe/.xserverrc: Command not found.
sysclientrc=/usr/X11R6/lib/X11/xinit/xinitrc: Command not found.
sysserverrc=/usr/X11R6/lib/X11/xinit/xserverrc: Command not found.
defaultclient=/usr/X11R6/bin/xterm: Command not found.
defaultserver=/usr/X11R6/bin/X: Command not found.
defaultclientargs=: Command not found.
defaultserverargs=: Command not found.
clientargs=: Command not found.
serverargs=: Command not found.
userclientrc: Undefined variable.

If I startup as root in a bash shell and then execute "su - joe" and then execute startx it works fine. Although right after we su to joe we get:
Warning: no access to tty (Inappropriate ioctl for device).
Thus no job control in this shell.

What is causing this problem? I know the obvious joke here, I guy goes to his doctor and says it hurts when I do this. The doctor says don't do that. Any way it would be nice to start this user off in tcsh. Thanks for your time.

knudfl 03-10-2011 10:51 AM

I would try changing line 1 in /usr/bin/startx

from : #!/bin/sh

to : #!/bin/bash

All times are GMT -5. The time now is 09:25 AM.