Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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
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
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.