View Full Version : Help With Unix/BSD
onthecatwalk 01-07-2002, 04:18 AM Can anymone help me..im trying to view my httpd.conf file by
/etc/httpd/http.conf
and i am the root (root#)
but it is telling me i dont have access; permission denied
How can i fix this.
Maybe the editor you're using doesn't have +x permissions.
S2 Web Design 01-07-2002, 05:00 AM You need to use an editor like vi or pico to view the file.
vi /etc/httpd/httpd.conf
pico /etc/httpd/httpd.conf
Hy,
another way to view the contents of a file is to make a
cat /etc/httpd/httpd.conf | more
This will show you the httpd.conf file (if it exists) page by page.
Greetings
Oliver
cperciva 01-07-2002, 06:19 AM Originally posted by CJCS
cat /etc/httpd/httpd.conf | more
And another way would be
cat /etc/httpd/httpd.conf | cat - | cat - | cat - | cat - | more
Why you'd want to do that, I don't know; a simple
more /etc/httpd/httpd.conf
works just as well.
Originally posted by cperciva
Why you'd want to do that, I don't know; a simple
more /etc/httpd/httpd.conf
works just as well.
Yes, but:
less /etc/httpd/httpd.conf
works better! :-)
cperciva 01-07-2002, 11:48 AM Originally posted by jks
Yes, but:
less /etc/httpd/httpd.conf
works better! :-)
Not on FreeBSD:
bash-2.05$ ls -li /usr/bin/more
285870 -r-xr-xr-x 2 root wheel 85988 Aug 29 00:03 /usr/bin/more
bash-2.05$ ls -li /usr/bin/less
285870 -r-xr-xr-x 2 root wheel 85988 Aug 29 00:03 /usr/bin/less
Originally posted by cperciva
Not on FreeBSD:
It's correct that on a standard FreeBSD more is the same as less. The program is called less however.
But I do not think the person who asked the original question stated, that he was on FreeBSD - he just said BSD in general.
So - remember the slogan - less is more - more is less... on FreeBSD!
onthecatwalk 01-07-2002, 12:11 PM THANKS EVERYONE!!!!!!:cool: all the commands worked!
onthecatwalk 01-07-2002, 12:58 PM New Question :unhappy:
how do I enable telenet...i try to telenet it
telenet (myserversipaddress) 3306
and it refuses my connection!
Thank You!
cperciva 01-07-2002, 02:39 PM Originally posted by jks
But I do not think the person who asked the original question stated, that he was on FreeBSD - he just said BSD in general.
You're quite right. I should have added that the same applies to OpenBSD and NetBSD. This is not the case in 4.4-BSD, however, since the concept of "less" had not yet been invented.
But at least for all open source BSDs currently in normal usage, (more==less)&&(less==more).
Planet Z 01-07-2002, 05:07 PM Originally posted by onthecatwalk
how do I enable telenet...i try to telenet it
telenet (myserversipaddress) 3306
and it refuses my connection!
Thank You!
Did you mean telnet or some other program?
onthecatwalk 01-07-2002, 05:15 PM sorry...telnet. Thanks :-)
Planet Z 01-07-2002, 06:33 PM I'm not sure why you'd want to enable telnet, since ssh is a much better alternative.
If you're using FreeBSD (I'm not sure about other *BSD's), you can just edit /etc/inetd.conf and remove the # in front of the telnet service line. Then just restart inetd.
Also, why are you trying to telnet on port 3306? The standard telnet port is 23.
onthecatwalk 01-08-2002, 01:06 PM that command didn't work, but thanks anyway.....i know 23 is the telnet port but I have to access a certain function that is at port 3306..thanks :)
jahsh 01-11-2002, 02:22 PM dont use telnet, you are setting yourself up for a hackattack. use ssh like suggested above.
cperciva 01-11-2002, 02:36 PM Originally posted by jahsh
dont use telnet, you are setting yourself up for a hackattack. use ssh like suggested above.
He wasn't trying to use telnet. He was trying to use mysql.
muppie 01-13-2002, 05:16 AM I am just wondering.....
how did httpd.conf get to /etc/ ?
Isn't BSD supposed to put all the other stuff into /usr/local ?
are you sure your httpd.conf is in /etc/httpd/httpd.conf ?
Try
cat /usr/local/etc/apache/httpd.conf
Sorry I am probably completely off here and maybe you did install apache manually into / instead of /usr/local
This is not a wise idea tho.... it breaks the beauty of BSD's hierarchical arrangements
onthecatwalk 01-13-2002, 08:07 AM Im not using BSD..Im Using Darwin! :)
astanley 01-13-2002, 12:41 PM If you are telnetting to a special application listening on port 3306, then you are not telnetting to your telnet daemon, so telnet is not what you should be enabling. Since you are trying to connect from another machine, you should check to make sure that the application is listening on the global interface, and not the localhost interface. If you have telnet access to the machine (obviously since you mentioned earlier in the thread you are root), try telnetting to the port at localhost (ie: telnet localhost 3306). See if that works a little better, if it doesn't then check your firewall rules, perhaps you are blocking inbound TCP on port 3306..though I can't imagine why that would be a default rule. Also check to make sure the application is in fact running, and has opened a listen socket on the correct port - you can view this in netstat.
-Adam Stanley
|