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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-17-2009, 12:56 PM
|
#1
|
LQ Newbie
Registered: Sep 2009
Posts: 15
Rep:
|
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????
|
|
|
09-17-2009, 12:59 PM
|
#2
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
Which distribution ?
|
|
|
09-17-2009, 01:14 PM
|
#3
|
LQ Newbie
Registered: Sep 2009
Posts: 15
Original Poster
Rep:
|
debian 5 with custom 2.6.31 kernel
|
|
|
09-17-2009, 02:00 PM
|
#4
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
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
|
|
|
|
09-17-2009, 08:27 PM
|
#5
|
LQ Newbie
Registered: Sep 2009
Posts: 15
Original Poster
Rep:
|
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
|
|
|
09-17-2009, 08:41 PM
|
#6
|
Member
Registered: Sep 2009
Distribution: Fedora
Posts: 835
Rep:
|
Quote:
Originally Posted by i_heart_pandas
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.
|
|
|
09-18-2009, 02:21 AM
|
#7
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
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.
|
|
|
09-18-2009, 09:33 AM
|
#8
|
LQ Newbie
Registered: Dec 2008
Posts: 19
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 10:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|