LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-18-2003, 03:44 PM   #1
squi
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Rep: Reputation: 0
run as root


how do i run anything?

do i just type the name of the file at the prompt?
[root@COMPUTER /] /home/docs/run.pl

what if what i have to run is a conf file?

thanks
 
Old 09-18-2003, 03:52 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Yes, you just type the file name, with path if needed. If you run a program from the directory you're currently in, use
./programname

You don't usually run configuration files...They're read by programs, but not run. Which files do you mean?
 
Old 09-18-2003, 03:54 PM   #3
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
well it all depends on what you want to run...for that file in your post you can type ::
perl /home/docs/run.pl
and to my knowledge you don't run .conf files, they are typically files that hold configuration data for other programs...
 
Old 09-18-2003, 03:56 PM   #4
squi
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Mara, we are tyring to give access to our server. Port 80 is blocked and we were told that if we changed the Port # in httpd.conf, then that would solve our troubles.

In doing so, I read the following:
-----
# Port: The port to which the standalone server listens. For
# ports < 1023, you will need httpd to be run as root initially.
#
Port 80
------

in the conf file, so i was wondering how to 'run as root'.

in any case, we are failing. any ideas?
 
Old 09-18-2003, 04:03 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Quote:
Originally posted by squi
Mara, we are tyring to give access to our server. Port 80 is blocked and we were told that if we changed the Port # in httpd.conf, then that would solve our troubles.
That's right. But it's not the only possible reason.

Quote:
In doing so, I read the following:
-----
# Port: The port to which the standalone server listens. For
# ports < 1023, you will need httpd to be run as root initially.
#
Port 80
------
You need to modify httpd.conf to look like above. Usually, only root has write access to the file. To become root, you need to know root's password. Do the following:
1) Log in as a normal user
2) Type 'su'. Then you'll be asked for root password. Type it.
3) Edit httpd.conf in any editor.
4) Restart Apache using 'apachectl restart' or 'service httpd restart' (depending on your distro, but the first version should work in all).
5) Test it. You should be now able to connect port 80.

Last edited by Mara; 09-18-2003 at 04:04 PM.
 
Old 09-19-2003, 10:31 AM   #6
squi
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Original Poster
Rep: Reputation: 0
i'll follow up under a new thread: blocked port 80
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't run X as root! t-smurf Linux - Software 2 10-04-2005 02:49 PM
Run First As Root? Terje Linux - Software 1 01-10-2005 09:13 AM
I have to ssh -l root to run root processes!? paul.nel Red Hat 3 11-15-2004 12:55 PM
Can only run apache from root? apc Linux - Software 2 07-29-2004 02:35 AM
LimeWire installed as root, can't run if not root sulzla Linux - Newbie 1 07-01-2003 08:48 PM


All times are GMT -5. The time now is 04:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration