LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-07-2015, 07:35 AM   #1
vsv
LQ Newbie
 
Registered: Jul 2015
Posts: 9

Rep: Reputation: Disabled
"w" command not working in my redhat 6 server


while i am typing w command in my linux server
getting this message
-bash: w: command not found
 
Old 09-07-2015, 07:51 AM   #2
hortageno
Member
 
Registered: Aug 2015
Distribution: Ubuntu 22.04 LTS
Posts: 240

Rep: Reputation: 67
Quote:
Originally Posted by vsv View Post
while i am typing w command in my linux server
getting this message
-bash: w: command not found
Either it's not in your $PATH or you deleted/uninstalled it.

Code:
$ yum whatprovides '*bin/w'
...
procps-ng-3.3.10-3.el7.i686 : System and process monitoring utilities
Repo        : base
Matched from:
Filename    : /usr/bin/w

procps-ng-3.3.10-3.el7.x86_64 : System and process monitoring utilities
Repo        : base
Matched from:
Filename    : /usr/bin/w
 
1 members found this post helpful.
Old 09-07-2015, 10:58 PM   #3
vsv
LQ Newbie
 
Registered: Jul 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
I have run this command
$ yum whatprovides '*bin/w'
i got the same.
procps-ng-3.3.10-3.el7.i686 : System and process monitoring utilities
Repo : base
Matched from:
Filename : /usr/bin/w

procps-ng-3.3.10-3.el7.x86_64 : System and process monitoring utilities
Repo : base
Matched from:
Filename : /usr/bin/w

Last edited by vsv; 09-08-2015 at 10:12 AM.
 
Old 09-08-2015, 05:06 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
So what does
Code:
stat /usr/bin/w; rpm -Vv procps-ng
return?
 
Old 09-09-2015, 08:54 AM   #5
vsv
LQ Newbie
 
Registered: Jul 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
I have run this

stat /usr/bin/w; rpm -Vv procps-ng
stat: cannot stat `/usr/bin/w': No such file or directory
package procps-ng is not installed
 
Old 09-09-2015, 09:02 AM   #6
hortageno
Member
 
Registered: Aug 2015
Distribution: Ubuntu 22.04 LTS
Posts: 240

Rep: Reputation: 67
Quote:
Originally Posted by vsv View Post
package procps-ng is not installed
Then install it...
 
Old 09-10-2015, 01:52 AM   #7
vsv
LQ Newbie
 
Registered: Jul 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
yum install procps-ng
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* atomic: www6.atomicorp.com
* base: centos.mirror.net.in
* extras: centos.mirror.net.in
* rpmforge: apt.sw.be
* updates: centos.mirror.net.in
atomic | 3.4 kB 00:00
atomic/primary_db | 832 kB 00:32
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
rpmforge | 1.9 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 1.3 MB 00:11
Setting up Install Process
No package procps-ng available.
Error: Nothing to do
 
Old 09-10-2015, 02:35 AM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you have a MAJOR PROBLEM!!! - yes bold and caps!!!
you are running RHEL6
BUT the rpm you want to install is for RHEL7 -- see the problem
"procps-ng-3.3.10-3.el7.i686 "

that "el7" in the name


you can not install a rhel7 rpm on rhel6

if one of the repos you installed is for 7 that will cause MAJOR problems

also i see you have
base
extras
atomic
rpmforge

all installed but you did not install and configure "yum-priories" to keep the third party repos from REPLACING system files with DIFFERENT versions that might be INCOMPATIBLE with the RHEL base and updates


not installing and CONFIGURING that plugin might cause problems


also seeing as the "whatprovides" command is telling you to install a RHEL7 package on RHEL6
-- you have a bit of a problem

please post the output of
Code:
su -
yum repolist all
and if this outputs a list
please ALSO post it
Code:
su -
rpm -qa | grep el7
that line will list ant INSTALLED rhel7 rpms on your rhel6 server

Last edited by John VV; 09-10-2015 at 02:42 AM.
 
Old 09-12-2015, 03:24 AM   #9
vsv
LQ Newbie
 
Registered: Jul 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
I have a two servers one is Redhat 6 and cent os 5 presently i have run given commands in cent os5
 
Old 09-12-2015, 06:25 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
RHEL / CentOS 6 package is called "procps". The "-ng" part works for Fedora >= 16 / CentOS 7.
 
Old 09-12-2015, 09:16 AM   #11
hortageno
Member
 
Registered: Aug 2015
Distribution: Ubuntu 22.04 LTS
Posts: 240

Rep: Reputation: 67
Quote:
Originally Posted by vsv View Post
I have a two servers one is Redhat 6 and cent os 5 presently i have run given commands in cent os5
You make helping you really hard. Can you please stay with the server you have problems with? What do you think where you need to run the commands suggested by others? Of course on the RH 6 machine.

Please answer John's post if you want him (or others) to continue helping you.
 
Old 09-12-2015, 01:00 PM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you CAN NOT run the commands on RHEL5 to see if you messed up the rhel6 server with rhel7 packages ???

WHERE DID you go to school ?????
we need to tell people to AVOID that school like THE PLAGUE!!!!!
 
1 members found this post helpful.
  


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
[SOLVED] X: "loading extension glx" "no screens found" "fatal server error" (w/ nvidia driver) Geremia Slackware 7 12-29-2014 11:00 AM
[SOLVED] "net rpc" "failed to connect to ipc$ share on" or "unable to find a suitable server" larieu Linux - General 0 11-09-2014 12:45 AM
Centos Server Failed @ Bootup: Missing "/sbin/blkid" & "fsck" command not found beagle7 Linux - Newbie 4 08-24-2012 01:33 AM
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 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 - Security

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