i default my shell to csh... how do I make the login script export the path to subshells? or how do I change to other shell since my root account have no problem?
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of FLYNN, Steve Sent: 03 October 2001 00:53 To: '[EMAIL PROTECTED]' Subject: RE: [newbie] Command not found fully qualify the command name. For example, /bin/ls /bin/cd /bin/vi However, if your path is as you show below, it should work. Maybe your login script isn't exporting the path to subshells... Can see why not though. -----Original Message----- From: Loke Kit Kai [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 3:22 PM To: 'Tim Holmes'; Mandrake List (E-mail) Subject: RE: [newbie] Command not found Thanks for prompt reply This is wat i have for path /usr/local/bin /bin /usr/bin /usr/X11R6/bin I can't edit the file because I don't have access to vi either... I can't even ls... but can cd... Thanks again -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tim Holmes Sent: 02 October 2001 22:42 To: [EMAIL PROTECTED] Subject: Re: [newbie] Command not found Sounds like you don't have your $PATH defined. Type this command, as the user, and let us know what you get. /bin/echo $PATH As the user, you should get something like this in return: [timh@r2d2 timh]$ /bin/echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/X11R6/bin:/usr/games:/home/ timh/bin:/usr/X11R6/bin:/usr/games The fact that you actually can log in and get a prompt, that means that user does have a shell, but since it can't find where the commands are, that's what makes me think that the PATH is not defined. To define the $PATH, add this line to your $HOME/.bash_profile. PATH=$PATH And then add the word PATH to the end of the line that reads export. So it will then look like this most likely: export BASH_ENV=$HOME/.bashrc PATH If you have more things there, that's fine, but make sure you add the PATH there, and the PATH line in your ~/.bash_profile. That should then fix that command not found problem. As far as the admin rights... There are things that will allow you to do that, but personally, as a Systems Admin, I would say stay away from them. It's much better and much more secure to just use the already existing super-user account. If you need to do something, login as root, then logout when you're done. I would really like it if Mandrake would actually do what FreeBSD does. Where only users in the wheel group can su - root and then gain root access. But I'm not sure if that's every been considered or even suggested. But that's just me. Hope that helps you, if not, let us know. tdh -- T. Holmes ----------------- UNIXTECHS.org [EMAIL PROTECTED] UIN: 17021091 ----------------- "Real Men Use Vi!" Uptime: -------------------------------------------------------------------- 10:22AM up 7 days, 21:23, 3 users, load averages: 0.04, 0.01, 0.00 -------------------------------------------------------------------- | Hi, | I successfully solved the partition problem by creating a partition first, | then delete and reallocate it during the install. | However, when I went into console using the ALT + CTRL + F1, login, but | when i type any command, even ls, they say command not found, but under | root, i can use those command, Please assist. | I also help in this... Windows 2k allows user to be assigned administrator | rights, does linux allows that? How do I go about doing it? | | Thanks, | Regards, | Loke Kit Kai | | Want to buy your Pack or Services from MandrakeSoft? | Go to http://www.mandrakestore.com ------------------------------------------------------------------ << File: message.footer >> ********************************************************************** This email and any files sent with it are intended only for the named recipient. If you are not the named recipient please telephone/email the sender immediately. You should not disclose the content or take/retain/distribute any copies. ********************************************************************** Norwich Union Life & Pensions Limited Registered Office 2 Rougier Street York YO90 1UU Registered in England Number 3253947 A member of the Norwich Union Marketing Group which is regulated by the Personal Investment Authority. Member of the Association of British Insurers. For further Enquires 01603 622200
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
