LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 06-02-2015, 01:09 PM   #1
Rajugoud
LQ Newbie
 
Registered: Jun 2015
Posts: 2

Rep: Reputation: Disabled
Bash command not found


Hello everyone,

I hv installed rhel 5 in VMware in my laptop. After installation done.. when u try to type command "useradd xxx" it shows command not found... whats the reason for this.. Pls suggest me to get out of the problem...
 
Old 06-02-2015, 01:26 PM   #2
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 are aware that rhel5 is rather OLD

the current in the older LEGACY ( 10 year on hardware/software) operating system is RHEL 5.11
and it is NOT FREE!!!!!
you HAVE TO BUY THE REQUIRED SUPPORT CONTRACT!!!!
there are NO "if's and's or but's "
it is REQUIRED!!!!

the standard 1 year contract is $299 per year

-- BUY IT !!!!

or


install the FREE clone
CentOS or ScientificLinux

BUT
the CURRENT and up to date version is RHEL 7.1

unless you MUST use the OLD rhel5
( the software versions in rhel5 were LOCKED in 2007 , so it is a bit on the old side )

install the current RHEL 7.1 ( and BUY the support contract)

-- without it you DO NOT install anything

or the free CentOS 7.1 or SL 7.1



Quote:
when u try to type command "useradd xxx"
also please DO NOT!!! use "text speek!!!"

this forum is NOT a 160 character SMS TEXT MESSAGE!!!!! on a TELEPHONE!!!

"you" is not !!! spelled as "u"

-- and --

"Please " is NOT !!! spelled as "Pls"



there are two commands
"useradd" and "adduser "

is useradd installed ?
mind you you will need to have bought the redhat license and registered the install to instal lit

Last edited by John VV; 06-02-2015 at 01:28 PM.
 
Old 06-02-2015, 01:28 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Rajugoud View Post
Hello everyone,

I hv installed rhel 5 in VMware in my laptop. After installation done.. when u try to type command "useradd xxx" it shows command not found... whats the reason for this.. Pls suggest me to get out of the problem...
First, I would suggest you read the LQ Rules about text-speak, and not using it, and also you need to read the "Question Guidelines", and "How to ask a smart question" links in my posting signature.

Second, it's telling you that the command you're looking for isn't in your path. So, either locate the command using 'which useradd', 'locate useradd' or 'find / -name useradd'. You have to be root to run that command, though.

On another note, RHEL 5 is not only not supported any longer, but it is NOT FREE, so if you're not PAYING for RHEL, then do not use it. Load CentOS instead, and load the latest version, which is 7.x
 
Old 06-02-2015, 01:54 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by TB0ne View Post
RHEL 5 is not only not supported any longer, ...
RHEL 5 continues to receive bugfix and security updates until its scheduled EOL on March 31, 2017.
 
Old 06-02-2015, 03:09 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Welcome to LinuxQuestions.

Both useradd and adduser should be installed by default and located in /usr/sbin which is not in the users path environment.

As stated the command must be run by root. Either you are not logged in as root or if using su include the - (i.e. su -). The - will use root's path environment instead of the users.
 
Old 06-02-2015, 09:10 PM   #6
Rajugoud
LQ Newbie
 
Registered: Jun 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
bash- command not found

hi thanks for your reply.
if i install Cent OS will all the commands works same as in linux?
 
Old 06-02-2015, 09:48 PM   #7
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
cent-os is a distribution of linux so the answer is probably yes. unless they choose not to include certain programs for some reason.
 
Old 06-02-2015, 09:54 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
CentOS is a clone of Redhat so the commands are the same. However, RHEL/CentOS 7 now uses systemd so there will be some differences compared to RHEL 5. Checkout the release notes.
 
Old 06-03-2015, 08:20 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by rknichols View Post
RHEL 5 continues to receive bugfix and security updates until its scheduled EOL on March 31, 2017.
From Red Hat's website:
https://access.redhat.com/support/policy/updates/errata

Those bugfixes are only available at a premium price, and they are only releasing those which are CRITICAL in nature. Otherwise, the OP is on their own. Extended support ended March 31st of this year, and that's for version 5.9, and only if you were a pre-existing RHEL 5 user. The OP just said "RHEL 5"...we don't know which minor version.

And given the fact that they said they installed it on a VM, chances are this is for a 'certification', so not loading the latest CentOS and trying to deal with an unsupported version of an OS, and a new installation at that, it's far simpler to use the free CentOS than try to deal with RHEL5.
 
Old 06-03-2015, 10:10 AM   #10
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by TB0ne View Post
From Red Hat's website:
https://access.redhat.com/support/policy/updates/errata

Those bugfixes are only available at a premium price, and they are only releasing those which are CRITICAL in nature. Otherwise, the OP is on their own. Extended support ended March 31st of this year, and that's for version 5.9, and only if you were a pre-existing RHEL 5 user. The OP just said "RHEL 5"...we don't know which minor version.
RHEL (and CentOS) automatically upgrade to the latest point release. You can install any release of RHEL 5, and unless you have manually edited the repo files to lock yourself to a specific point release, you will be brought up to the latest release (now 5.11, which will be the last point release for RHEL 5) as soon as you allow the updater to run. The end of extended support for version 5.9 is meaningful only for users who have deliberately locked themselves to 5.9. Yes, for those users the extra cost extended support has ended. Everyone else has seamlessly updated to version 5.11, which continues to be supported (at no extra cost) until March 31, 2017.
 
  


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] bash -- command not found danielbmartin Programming 7 11-07-2012 02:23 PM
[SOLVED] bash: GET: command not found ? michalng Debian 2 03-29-2011 06:20 PM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM
-bash: cp: command not found johnlittlepeap Fedora 2 11-15-2004 08:52 AM
bash: command not found jc80 Fedora 3 03-14-2004 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:41 AM.

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