LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-08-2007, 08:29 PM   #1
mmfcecil
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
Have to su root to restart apache


I need help. I'm new to linux but when I have to restart httpd I have to su as root

su root /etc/init.d/httpd restart

If I don't I get a "Command not Found" error message. I also tried using this command " service httpd restart" and pretty much get the same message.

I am log in as root and have root privileges to my linux machine.
Please provide a very descriptive answer to my question.

Thanks a bunch.

I guess I have to correct myself here. I'm already logged in as root so I shouldn't do su or sudo root to restart my apache. But unless I su or sudo root : su root /etc/init.d/httpd restart I'm getting this error message :
env: /etc/init.d/cmsd: No such file or directory

What do I need to change or what should I do so I only have to do /etc/init.d/http restart or do service httpd restart without having to enter su or sudo root.

Thanks again.

Last edited by mmfcecil; 10-09-2007 at 10:14 AM.
 
Old 10-09-2007, 05:06 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
What is your question? You want to restart httpd without being root? You can do that with sudo.
 
  


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
apache 2 won't restart after it was shut down Lorend Linux - Server 2 08-13-2006 01:25 PM
how do i apache restart? einstien Linux - General 3 03-30-2005 01:22 PM
Apache can't restart Serbulent Linux - Enterprise 2 03-16-2005 02:29 AM
remote restart apache sim Linux - Software 1 06-11-2002 05:49 AM
How do I restart Apache? 360 Linux - Networking 2 08-25-2001 06:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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