LinuxQuestions.org
Help answer threads with 0 replies.
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 12-14-2004, 09:46 PM   #1
Tcat
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora Core 2
Posts: 11

Rep: Reputation: 0
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?
 
Old 12-15-2004, 03:54 AM   #2
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
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.
 
Old 12-15-2004, 01:12 PM   #3
Tcat
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora Core 2
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 12-15-2004, 02:18 PM   #4
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
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.
 
  


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
cyradm dwpondscum Linux - Networking 1 11-23-2008 07:23 PM
Cyrus21 Imap & cyradm nocturn00 Linux - Networking 0 08-16-2005 05:39 AM
login problem with cyradm carloshdez Linux - Networking 1 02-03-2005 04:03 PM
login problem with cyradm carloshdez Linux - Software 1 01-04-2005 12:44 PM
FC2 cyradm missing zcab911 Linux - Networking 1 08-31-2004 10:11 PM

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

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