LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-29-2007, 01:29 PM   #1
kenjiru
LQ Newbie
 
Registered: Sep 2006
Location: Romania
Distribution: Gentoo
Posts: 14

Rep: Reputation: 0
bash problem


I'm a gentoo user and after an update --deep --world && etc-update I get some error when I login as a normal user.
Code:
akira ~ # su radu
bash: dircolors: command not found
Also, as a normal user, I can't run commands although the PATH variable is ok:
Code:
radu@akira /root $ man
bash: man: command not found
The PATH variable contains:
Code:
radu@akira ~ $ echo $PATH
/bin:/usr/bin
Also, GDM stopped working. I can start Gnome only as root using startx. After a /etc/init.d/xdm restart I get the following errors in /var/log/messages:
Code:
Jan 29 19:50:12 akira gdm[8240]: gdm_slave_greeter: Cannot start greeter trying default: /usr/libexec/gdmlogin
Jan 29 19:50:12 akira gdm[8240]: failsafe dialog failed (inhibitions: 0 0)
Jan 29 19:50:12 akira gdm[8240]: failsafe dialog failed (inhibitions: 0 1)
Jan 29 19:50:12 akira gdm[8240]: failsafe dialog failed (inhibitions: 1 1)
Jan 29 19:50:12 akira gdm[8240]: gdm_slave_greeter: Error starting greeter on display :0
Jan 29 19:50:12 akira gdm[8222]: gdm_child_action: Aborting display :0
 
Old 01-29-2007, 01:42 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Did permissions, ownership or group on /bin, /usr/bin and other things change by any chance?

If man is in /bin or /usr/bin then PATH should certainly find it. The only reason it wouldn't is if it couldn't read the directories. The fact you're having issues with other things as well makes it sound like you're experiencing some sort of permission issue.

P.S. Less likely but figured I'd mention it just in case: Make sure the user you're testing with isn't chrooted user. If it is then it won't see the real / but only the directory to which it is chrooted.
 
Old 01-30-2007, 04:59 AM   #3
kenjiru
LQ Newbie
 
Registered: Sep 2006
Location: Romania
Distribution: Gentoo
Posts: 14

Original Poster
Rep: Reputation: 0
Yes, this was the problem. /usr had screwed out permissions.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with bash adityavpratap Slackware 9 06-13-2006 09:44 AM
Problem with BASH Pheidon Linux From Scratch 5 06-24-2005 02:34 AM
Bash Problem krock923 Programming 3 01-02-2005 01:40 PM
bash problem cL4YmAN Linux - Newbie 1 06-07-2004 01:32 PM
bash problem Vincent Slackware 2 10-30-2003 05:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:27 PM.

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
Open Source Consulting | Domain Registration