LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2008, 03:05 AM   #1
Phr34Ck
LQ Newbie
 
Registered: Feb 2008
Location: Lebanon
Distribution: Arch, Debian, Ubuntu, CentOS
Posts: 13

Rep: Reputation: 0
[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.
 
Old 02-26-2008, 09:27 AM   #2
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Rep: Reputation: 31
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/
 
Old 02-26-2008, 05:53 PM   #3
Phr34Ck
LQ Newbie
 
Registered: Feb 2008
Location: Lebanon
Distribution: Arch, Debian, Ubuntu, CentOS
Posts: 13

Original Poster
Rep: Reputation: 0
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?
 
Old 02-26-2008, 06:30 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
In CentOS, you are probably better using

yum remove package
 
Old 02-26-2008, 06:49 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
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.
 
Old 02-26-2008, 08:43 PM   #6
Phr34Ck
LQ Newbie
 
Registered: Feb 2008
Location: Lebanon
Distribution: Arch, Debian, Ubuntu, CentOS
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for everyone. The user account worked when I used passwd username as Chrism01 suggested . Thanks a lot.
 
Old 02-26-2008, 11:35 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
basic sed help needed davimint Programming 6 02-11-2008 10:06 AM
Basic information needed dark_stilskin Linux - Newbie 8 12-11-2006 11:59 PM
apache2 basic tutorial needed exodist Linux - Networking 1 02-22-2005 09:24 PM
help needed with basic networking ludwig W Linux - Networking 7 01-31-2004 04:03 PM
Basic LAN setup help needed Avatar2112 Linux - Networking 10 09-15-2003 02:14 AM


All times are GMT -5. The time now is 06:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration