LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   CyrAdm went south on me (https://www.linuxquestions.org/questions/linux-software-2/cyradm-went-south-on-me-266499/)

Tcat 12-14-2004 09:46 PM

CyrAdm went south on me
 
Mail is functioning ok on my server but for some reason all of a sudden. I went to add another user account and I get the following..


[root@copo]# su - cyrus
-bash-2.05b$ cyradm localhost
-bash: cyradm: command not found

cyradm won't go to localhost?
I don't even know where to begin with this.

Any pointers?

gd2shoe 12-15-2004 03:54 AM

Re: CyrAdm went south on me
 
Quote:

Originally posted by Tcat
....
cyradm won't go to localhost?
I don't even know where to begin with this.
....

I don't know anything about cyradm, but I don't think that it is your problem. Bash is telling you that the command "cyradm" is simply not to be found. I think you have a path problem. Try:

echo $PATH

And compare the output from this user to another user that works. Assuming cyradm is properly installed, you will probably need to edit the new users .bashrc file to fix the path.

Anyway, whatever. Just start with "Why can bash not find the program?"

gl.

Tcat 12-15-2004 01:12 PM

Thanks very much for your reply.

I was having trouble adding the user with my root account from the console. I was able to execute cyradm by using the path where it was installed.
I never had to do this before and I'm trying to understand what I did to break it in the first place. I know this is a crazy simple looking issue, thats why it has me so puzzled.

Thank you again for responding!! I'd honestly be lost trying to learn this stuff without these forums.

gd2shoe 12-15-2004 02:18 PM

I don't have my linux machine in front of me, so take this with a grain of salt.

When you create a user account, the folder /etc/skel is copied in to /home to create the new users home directory. My guess is that you either tried to create the account manually (by editing passwd) or the .bashrc file in skel is not set up correctly. Finding the line to edit shouldn't be hard. It will start with PATH= and have a '':" separated list.

When bash starts, one of three files are run from the users home folder. Most often it is .bashrc. Try "man bash" to figure out what the other two possibilities might be. the bash man page is quite long, I think this information is near the top. If it is not, then type "/.bashrc". The slash tells it to search. Push 'n' to find the "next" occurance.

There is also, I believe, a global bash initialization file. It is somewhere in /etc.

Wish I could give more specific help. Just doing what I can.


All times are GMT -5. The time now is 08:11 PM.