FedoraThis forum is for the discussion of the Fedora Project.
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.
Hi, I installed fedora Core 3 on my machine , but I have little problem with some common command.
Actually I want to insall an antivirus (CLAMAV), I want to create a new group and a new user .
I try to run useradd and groupadd, but prompt show me
"bash: useradd: command not found"
Why? I'm login as root and when I run 'man useradd or man groupadd' it explain me every option and details.
Thank you! best regards
Jerry
are you using su to login as root? last i saw, FC doesn't add the sbin directories to your path when you 'su root', specify them explicitly (use the full path & command) or update your $PATH to include them
not familiar with fedora, but, from basic unix experience, the useradd command is not in the PATH ENV var. The executable useradd is likely in /usr/sbin.
if it is not there, from the root ( / ) dir, run :
find . -name useradd
that will search the system for the useradd command and print to the term.
Which takes one or more arguments. For each of its argu_
ments it prints to stdout the full path of the executables
that would have been executed when this argument had been
entered at the shell prompt. It does this by searching for
an executable or script in the directories listed in the
environment variable PATH using the same algorithm as
bash(1).
if it ain't in your path to begin with, which won't find it... whereis (which searches 'standard linux places') might, though...
Originally posted by secesh
are you using su to login as root? last i saw, FC doesn't add the sbin directories to your path when you 'su root', specify them explicitly (use the full path & command) or update your $PATH to include them
If you are using su to become root, try
Code:
su -
to get root's path etc., not just root's privileges. (See man su :-)
Also, some distros -- I don't know about FC, provide adduser, moduser, addgroup, etc. instead of useradd, usermod, groupadd, etc.
I noticed if I boot with Selinux enabled that I cannot use "useradd" but somehow it does create the home directories but complains that it cannot write the passwd file. If I boot with Selinux disabled I can use the command.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.