LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 12:56 PM   #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, 12:59 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Which distribution ?
 
Old 09-17-2009, 01: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, 02:00 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
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, 08: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, 08:41 PM   #6
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 101Reputation: 101
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, 02:21 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
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, 09: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


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
Failed to chck remot comnd executin using shells /usr/bin/ssh and /usr/bin/rsh farnaw4u Linux - Software 2 04-06-2009 01:08 AM
Subversion : /usr/local/bin/svnserve.bin lord-fu *BSD 2 12-17-2006 11: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 10:18 PM
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 09: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 02:02 AM


All times are GMT -5. The time now is 04:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration