LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2015, 02:36 AM   #1
Huamin
Member
 
Registered: May 2011
Posts: 562

Rep: Reputation: 12
Problem to "sudo yum"


Hi,
I have got these
[huamin@CentOS65x64 ~]$ sudo yum install httpd

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for huamin:
huamin is not in the sudoers file. This incident will be reported.

within CentOS. How to resolve it?
 
Old 05-12-2015, 02:56 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
redhat by default dose NOT use "sudo"

it uses "su" and "su -"

if you want to use "sudo" and understand the security RISKS!!! you have to set up "sudo"

but the BEST way on rhel is to install the package group for Apache
Code:
su -
--- type in the root password when asked for ---
yum grouplist 
---- then from that long list ---
yum groupinstall " Web Server"
double check the name it Should be listed as "web server"


but as to setting up Apache
it is a very COMPLEX bit of software

i do recommend that people BUILD from source and manually install everything needed 6 to 12 times
before using a rpm or deb install
Apache 2.4
php
MiraDB ( replaced Mysql )
phpMyAdmin
AWstats
and so on

Last edited by John VV; 05-12-2015 at 03:02 AM.
 
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] When I type "sudo grub" it says "command not found" in Ubuntu 9.10 Live CD. msbstar Linux - Newbie 10 04-01-2020 11:54 PM
[SOLVED] Error Class Code: 31 when trying to "sudo yum install php-mbstring" miroslavlav Red Hat 3 07-30-2014 02:51 PM
When I type "sudo grub" it says "command not found" in Ubuntu 10.10 poumtatalia Linux - Newbie 5 09-14-2010 05:21 PM
cannot "sudo apt-get uptate" or "sudo" anything! plz help mdguy21061 Linux - Newbie 7 04-13-2008 11:59 PM
Difference betweenn "yum install" and "yum update" john lee Linux - Newbie 1 02-11-2008 11:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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