LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-17-2009, 11:56 AM   #1
i_heart_pandas
LQ Newbie
 
Registered: Sep 2009
Posts: 15

Rep: Reputation: 0
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ?


i don't know why but for example but commands like cat don't work (although i can be explicit /bin/cat)

i have no .bash_profile so i'm lost??

also this problem doesn't let me login though gdm (/home/g3rc4n/bin/readlink "not found")

i tried writing the paths explicitly in .bash_profile but works for the shell but can't login gdm????
 
Old 09-17-2009, 11:59 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Which distribution ?
 
Old 09-17-2009, 12:14 PM   #3
i_heart_pandas
LQ Newbie
 
Registered: Sep 2009
Posts: 15

Original Poster
Rep: Reputation: 0
debian 5 with custom 2.6.31 kernel
 
Old 09-17-2009, 01:00 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Is this a fresh instl?
Did you delete .bash_profile ?

Here is an exemple

Quote:
# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/login.defs
#umask 022

# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
fi
 
Old 09-17-2009, 07:27 PM   #5
i_heart_pandas
LQ Newbie
 
Registered: Sep 2009
Posts: 15

Original Poster
Rep: Reputation: 0
well that done the trick, but my other account doesn't have a .bash_profile and that works fine.

no it wasn't a fresh install, but i've been moving all my partitions around alot recently and all the permissions are lost etc so i didn't do it right
 
Old 09-17-2009, 07:41 PM   #6
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by i_heart_pandas View Post
i don't know why but for example but commands like cat don't work (although i can be explicit /bin/cat)

i have no .bash_profile so i'm lost??

also this problem doesn't let me login though gdm (/home/g3rc4n/bin/readlink "not found")

i tried writing the paths explicitly in .bash_profile but works for the shell but can't login gdm????
Make a copy of the default .bash_profile from /etc/skel into your own directory. Set its ownership appropriately:

Code:
# chown username .bash_profile
Do this same procedure for any other boilerplate files you may have deleted.

And ... before deleting files, ask yourself what they are for. If you can't answer, don't delete them.
 
Old 09-18-2009, 01:21 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
no it wasn't a fresh install, but i've been moving all my partitions around alot recently and all the permissions are lost etc so i didn't do it right
Perhaps you can consider to make a backup, and do a fresh install.
 
Old 09-18-2009, 08:33 AM   #8
paulo.monk
LQ Newbie
 
Registered: Dec 2008
Posts: 19

Rep: Reputation: 0
I say the same as repo.
I don't know much details about your system, but this, for me, sounds like an compromised system.
You should make some criterious backup [pay atention to possible hiden malwares - like scripts downloaded from untrusted source], do an fresh install and set up some firewall (or improve yours, if you have one configured already).
If you really wants to stick with your actual instalation, at least run some chkrootkit. After that, if nothing bad is indicated, you could run some administrative tasks, like run:

netstat -nlutp

to see listenning services on your machine and look for something suspicious. Its important to run chkrootkit before to confirm that your system wasnt compromised to hide some malware activity.

Good luck
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to chck remot comnd executin using shells /usr/bin/ssh and /usr/bin/rsh farnaw4u Linux - Software 2 04-06-2009 12:08 AM
Subversion : /usr/local/bin/svnserve.bin lord-fu *BSD 2 12-17-2006 10:46 AM
Ubuntu 5.10 -> 6.06: diversion of /usr/bin/ldd to /usr/bin/ldd.amd64 by ia32-libs HellSpawn Linux - Software 2 06-04-2006 09:18 PM
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 08:30 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:16 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