Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-09-2011, 05:45 PM   #1
Registered: Feb 2009
Distribution: Slackware
Posts: 110
Blog Entries: 3

Rep: Reputation: 15
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.
Old 03-10-2011, 11:51 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,755

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
I would try changing line 1 in /usr/bin/startx

from : #!/bin/sh

to : #!/bin/bash


tcsh, xorg

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Startx issue Padawan.AVT Linux - Software 6 03-07-2009 06:57 AM
startx xwindow issue mutsu Linux - Software 1 07-28-2006 08:48 PM
Startx font issue stardotstar Linux - Software 0 06-27-2006 02:07 AM
startx issue san802k Linux - Newbie 3 02-24-2006 06:28 AM
Slackpkg and startx issue DragonM15 Linux - Software 1 05-31-2005 05:18 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration