LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-24-2011, 07:32 AM   #1
linuxeth123
LQ Newbie
 
Registered: May 2010
Posts: 10

Rep: Reputation: 0
Possible "chage" command corrupted after linux build..how do i reinstall?


After doing an install using Redhat 5.6 which a kickstart, it seems the "chage" command is not working properly like it should. I assume it somehow got corrupted during the build and I want to reinstall it through whatever rpm package it came from. Does anyone know what the command would be to find which rpm package it came from?
 
Old 05-24-2011, 08:21 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
rpm -qf $(which chage)

The rpm -qf on a file shows you which rpm it came from. The $(which chage) finds the full path for chage and that is what you are running the rpm -qf on.

By the way it comes from shadow-utils package.

If your system is registered on RedHat Network (RHN) you can run "yum list shadow-utils" to see the installed package and see if there are any newer ones. If there is a newer one you can run "yum update shadow-utils" to update to it.

Last edited by MensaWater; 05-24-2011 at 09:21 AM.
 
Old 05-24-2011, 09:08 AM   #3
linuxeth123
LQ Newbie
 
Registered: May 2010
Posts: 10

Original Poster
Rep: Reputation: 0
that helps

Thanks that helps. Yea I just want to reinstall it because I think it got corrupted during the build process.
 
Old 05-24-2011, 12:55 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Can you explain precisely how chage(1) is not working properly? What behavior are you seeing?
 
  


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
build Cinelerra 2.1 for x86_64, bash "arch" command not found? newtovanilla Linux - Newbie 4 07-08-2008 05:28 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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