LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   run as root (https://www.linuxquestions.org/questions/linux-newbie-8/run-as-root-94249/)

squi 09-18-2003 02:44 PM

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

Mara 09-18-2003 02:52 PM

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?

DrOzz 09-18-2003 02:54 PM

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...

squi 09-18-2003 02:56 PM

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?

Mara 09-18-2003 03:03 PM

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.

squi 09-19-2003 09:31 AM

i'll follow up under a new thread: blocked port 80


All times are GMT -5. The time now is 11:00 PM.