LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   [centOS4] Basic help is needed please. (https://www.linuxquestions.org/questions/linux-newbie-8/%5Bcentos4%5D-basic-help-is-needed-please-623869/)

Phr34Ck 02-26-2008 02:05 AM

[centOS4] Basic help is needed please.
 
Hello everyone,

I have recently purchased a VPS account which comes preinstalled with CentOS4 x86_64. I'm having some problems, and I hope someone could help me out.

First of all, YUM is not installed. How do I uninstall programs that came with the OS? Like I want to remove httpd, but whenever I use this: rpm -e httpd I get this error:
Quote:

error: Failed dependencies:
httpd = 2.0.52-32.3.ent.centos4 is needed by (installed) httpd-suexec-2.0.52-32.3.ent.centos4.x86_64
How do I completely remove httpd? The reason I want to remove it is that I want to use the latest stable apache release.

Second, I'm currently logging in with the root account. I tried to make another user, it worked but I get access denied each time I try to login with it. What's wrong with that? Also, when I write users, only root gets printed. I used the adduser command.

Finally, do you know any good documentations for CentOS4? I tried the docs that are available on their site, but they were for RedHat with GUIs and stuff, I can't use that. I need some tutorials for the command line.


Thanks in advance for everyone. I hope I was clear enough for what I need. I still have A LOT of questions ;p.

paragkalra 02-26-2008 08:27 AM

Quote:

First of all, YUM is not installed. How do I uninstall programs that came with the OS? Like I want to remove httpd,
How do I completely remove httpd? The reason I want to remove it is that I want to use the latest stable apache release.
#rpm -qa | grep -i http

This will give you the exact name of http rpm that you can use with "#rpm -e"
To get rid of dependency errors use:
#rpm -e --nodeps <http rpm>

Quote:

Second, I'm currently logging in with the root account. I tried to make another user, it worked but I get access denied each time I try to login with it. What's wrong with that? Also, when I write users, only root gets printed. I used the adduser command.
I believe you have used "#useradd <username>" to create the user and then you used "#passwd <username>" to set the password. When you try to login, what are the error messages that are displayed. Are you being able to use "#su - <username>"
Quote:

Finally, do you know any good documentations for CentOS4? I tried the docs that are available on their site, but they were for RedHat with GUIs and stuff, I can't use that. I need some tutorials for the command line.
http://www.centos.org/docs/

Phr34Ck 02-26-2008 04:53 PM

paragkalra, thank you for your reply. The RPM command worked perfectly, thanks a lot.

The problem with the new user that I have added is that I'm not being able to use it via SSH (That's how I log in to my VPS account). I enter the username, and when it asks for the password, I get Access Denied. Is there anything that I should do to like "enable" this account or something? I have used this command: adduser username -p password. Anything else I should do?

billymayday 02-26-2008 05:30 PM

In CentOS, you are probably better using

yum remove package

chrism01 02-26-2008 05:49 PM

for the cmd line generally: http://rute.2038bug.com/index.html.gz

From the man page for adduser:

-p, --password password
Encrypted password as returned by crypt(3) for the new account.
The default is to disable the account.

note the requirement for an encrypted password value, not plaintext. Did you do that?
If not, the easiest thing to do is (as root)
passwd username
and then supply a plaintext passwd when it prompts you.

Phr34Ck 02-26-2008 07:43 PM

Thanks for everyone. The user account worked when I used passwd username as Chrism01 suggested :). Thanks a lot.

chrism01 02-26-2008 10:35 PM

Y, I don't know why adduser/useradd insists on an encrypted passwd, it's a pain to get one.
The other option is MUCH easier.


All times are GMT -5. The time now is 05:57 PM.