LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-13-2002, 12:05 PM   #1
natto34
Member
 
Registered: Mar 2002
Distribution: Custom - LFS base
Posts: 30

Rep: Reputation: 15
Gnome-Terminal non root issues


I have recently installed LFS w/ Gnome as the Desktop Manager. I log into Gnome through xdm (b/c gdm won't compile). The problem I am having is that if I log on as a non root user gnome-terminal won't run. It just pops up and says "could not execute command : file or directory doesn't exist". I assume this is a permissions issue b/ am not sure what to correct. I also noticed (through running bash through xterm) that my PATH variable is totally fucked up. It reads /garnome/bin::blalba:/usr/ucb (yes, two :'s). I have no idea how /usr/ucb got there b/c it is not listed in any of my bash startup scripts. Also, the bash scripts never seem to be executed. I altered them entirely(export various variables to see if they would exist or if they would be altered), but to no avail. None of them are ever executed! This is very frustrating b/c i hate having to log on as root just to execute everything.
 
Old 07-13-2002, 12:38 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Make your PATH looking good:
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
or something similar, depending on directory structure you use. Add this line to your user's starting scripts, or (better) to your global starting scripts. usually it's /etc/profile.
 
Old 07-13-2002, 10:28 PM   #3
natto34
Member
 
Registered: Mar 2002
Distribution: Custom - LFS base
Posts: 30

Original Poster
Rep: Reputation: 15
I have. That's the problem. My bash startup scripts aren't being run. /etc/profile included
 
Old 07-14-2002, 06:19 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
But root's one are? root's PATH is OK, right?
 
Old 07-14-2002, 10:40 AM   #5
natto34
Member
 
Registered: Mar 2002
Distribution: Custom - LFS base
Posts: 30

Original Poster
Rep: Reputation: 15
yes. Every variable, etc. works perfectly when logged in as root. As root all the bash scripts are run. The problem is that for some reason they aren't being run when non-root users are logged in. Also some programs like gnome-terminal fail to run at all.
 
Old 07-15-2002, 03:30 AM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Try to include them into /etc/bashrc
 
Old 07-15-2002, 11:08 PM   #7
natto34
Member
 
Registered: Mar 2002
Distribution: Custom - LFS base
Posts: 30

Original Poster
Rep: Reputation: 15
i figured out the problem. When i created the user accounts i didn't directly state which shell to give the accounts. I found out that the useradd command defaults to sh instead of bash. So to fix it i just did a usermod -s /bin/bash to the users and voila..fixed. Also the weird PATH was also the result of creating the users under group bin accidentally.
 
  


Reply


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
Changing environment variable for gnome session from gnome-terminal pymehta Linux - Software 1 10-11-2005 06:19 PM
issues in the terminal nixerwannab Linux - Software 10 01-25-2005 06:38 PM
Alternative terminal to konsole & gnome-terminal Adony Linux - Software 3 10-08-2004 04:59 AM
Gnome 2.6 problems (gnome-terminal) ababkin Linux - Software 1 04-05-2004 01:57 PM
Suse 8.2 terminal issues Twiggy794 Linux - Distributions 4 10-09-2003 10:23 PM


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

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