The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SED Newbie cpslo09 Shell Programming and Scripting 3 10-19-2006 12:51 PM
UNIX newbie NEWBIE question! Hanamachi UNIX for Dummies Questions & Answers 3 09-14-2006 07:23 AM
Newbie in need of help cfjohnsn UNIX for Dummies Questions & Answers 3 05-17-2006 03:10 PM
Newbie Special K UNIX for Dummies Questions & Answers 4 06-10-2002 11:02 AM
NEWBIE << help >> LolapaloL High Level Programming 1 11-13-2001 10:02 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-20-2008
Registered User
 

Join Date: Jul 2008
Posts: 5
Newbie Needs Help

Greetings all.

I am new to this forum and new to the server-side of things. Recently, we let our IT guy go and it is up to me to fill in in the meantime.

My first problem is although I am entering the propr log in info to access putty I keep getting access denied. Is there a firewall setting I need to change to allow access?

My second problem is how to set the proper index file in Fedora once I access through SSH. I need to eliminate a Fedora Page that crops up whenever anyone clicks on a link to go to our homepage.

I am certain I look like a real newbie, but I am not trained in this stuff and it is a little confusing.

Any help is appreciated. Thanks.

John

Last edited by vpjohn; 07-20-2008 at 04:53 PM.
Reply With Quote
Forum Sponsor
  #2  
Old 07-20-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,297
Try this
as root local:
Code:
vi /etc/ssh/sshd_config
find a line that reads
Code:
PermitRootLogin no
comment out the line by adding a # character in column 1. I don't remember but I think you may have to restart sshd - or it may also respond to kill -HUP <pid of sshd> and re-read configuration settings.
Reply With Quote
  #3  
Old 07-21-2008
Registered User
 

Join Date: Jul 2008
Posts: 5
A little more help, please.

I was able to access vi /etc/ssh/sshd_config.

I found #PermitRootLogin yes and changed 'yes' to 'no'.

How do I save the change?

John
Reply With Quote
  #4  
Old 07-21-2008
Ikon's Avatar
Registered User
 

Join Date: Jul 2008
Location: Phoenix, Arizona
Posts: 379
Quote:
Originally Posted by vpjohn View Post
A little more help, please.

I was able to access vi /etc/ssh/sshd_config.

I found #PermitRootLogin yes and changed 'yes' to 'no'.

How do I save the change?

John

If you want to login as 'root' then you want:

PermitRootLogin yes

type :wq

to w=write q=quit.

If it was set to 'no' then root login would be disabled.
If you getting access denied it sounds like the username and/or password is wrong.
Keep in ming the username AND password are case-sensitive
Reply With Quote
  #5  
Old 07-21-2008
Registered User
 

Join Date: Jul 2008
Posts: 5
Thank you, Ikon. I have solved the log in issue.

My task now is to remove that ridiculous Fedora Core Test Page, which is why I am going through this exercise. My undersatanding is to do this in putty...and once I make the change where exactly do I type in :wq?

Thanks.
Reply With Quote
  #6  
Old 07-21-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
The :wq is a command for the vi editor. If you use a different editor, the keystrokes to save and quit will be different. If you are not very familiar with Unix, perhaps a newbie-level editor such as nano might be easier for you.

The Fedora Core Test Page is what your Apache is set up to display. It's not clear what you want it to display instead. Actually I believe the test page will also contain some instructions for which files to edit in order to change it to something else. Googling for it brought up one page with the text "If you are the website administrator: You may now add content to the directory /var/www/html/. Note that until you do so, people visiting your website will see this page, and not your content. To prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf."
Reply With Quote
  #7  
Old 07-23-2008
Registered User
 

Join Date: Jul 2008
Posts: 5
As per removing the Fedora Core test page. I went into SSH and edited the in the following. Result: Fedora core page still appears. Can someone tell me what I missed?

[root@u15257869 ~]# cd /etc/httpd/conf.d/
[root@u15257869 conf.d]# ls
mailman.conf php.conf README webalizer.conf zz010_psa_httpd.conf
perl.conf python.conf ssl.conf welcome.conf

[root@u15257869 conf.d]# vi welcome.conf
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL. To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>
http://www.mydomain.com

Thanks.
John
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 02:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0