LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-21-2012, 03:04 PM   #1
techgirl43
LQ Newbie
 
Registered: Nov 2012
Posts: 7

Rep: Reputation: Disabled
Question Urgent


Good evening, I just wonder if someone can help me with symbolic link. I know it is very easy for people who use Linux. I need to finish my coursework.
I need to create an alternative Apache HTTP Servr directory called osswww under the /var directory and create a symbolic link to this directory in the standard Apache HTTP Server root directory and demonstrate that web pages cannot be served by default from this directory when Selinux is enabled and in enforcing mode. Undertake the nesessary modifications to selinux security to allow web pages to be sered from the /var/osswww directory and demonstrate that pages can now be served.
Please, can someone help me? Alexa
 
Old 11-21-2012, 03:16 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello techgirl43, welcome to LQ,

please use a more descriptive title for your thread, your issue isn't urgent for anyone of us.

As of symbolic links you should take a look at the manpage for ln
Code:
man ln
If it doesn't work, please tell us what you've done so far, then we can help you.

Markus
 
1 members found this post helpful.
Old 11-21-2012, 03:31 PM   #3
techgirl43
LQ Newbie
 
Registered: Nov 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
sorry

Sorry, I know it is not urgent for all of you, but for me it it, thats why that title.
I created directory osswww
mkdir /var/osswww
then touch /var/www/html/index.html
then vi (created simple webpage)
then my soft link
ln -s /var/osswww /var/www
I dont know if im doing this right.
Then I enabled SELinux, enforcing mode.
But my file can be served, I dont know what am doing wrong, because it was supposed
to failed.
I used wget http://localhost.index.html
 
Old 11-21-2012, 03:44 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by techgirl43 View Post
Good evening, I just wonder if someone can help me with symbolic link. I know it is very easy for people who use Linux. I need to finish my coursework.
...and this is NOT URGENT for ANYONE here. Expecting/asking for 'urgent' help from a community of volunteers is fairly rude. Especially since this is YOUR HOMEWORK
Quote:
I need to create an alternative Apache HTTP Servr directory called osswww under the /var directory and create a symbolic link to this directory in the standard Apache HTTP Server root directory and demonstrate that web pages cannot be served by default from this directory when Selinux is enabled and in enforcing mode. Undertake the nesessary modifications to selinux security to allow web pages to be sered from the /var/osswww directory and demonstrate that pages can now be served.
As markush said, read the man page on the 'ln' command...and since you probably used Google to find this site, why can't you also have used it to look up how to create a symbolic link?

You don't say what version/distro of Linux you're using, but also reading the documentation on selinux would help:
http://en.wikipedia.org/wiki/Security-Enhanced_Linux

Pay attention to the "permissive" directive, and also the FollowSymlinks directive in the apache configs.
 
2 members found this post helpful.
Old 11-21-2012, 03:51 PM   #5
techgirl43
LQ Newbie
 
Registered: Nov 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
thanks

Thank you, I know that if I want to serve webpages I need to swich to permissive mode.
I just wonder, how come I can serve my webpage in enforcing mode. Also, I am not sure where I should
create index.html. Under the /var/osswww, or /var/www/html? I wrote the steps I took, I would like to know
if they are correct or not. Thank you very much, I will read the links you sent me. I am using CentOS.
 
Old 11-21-2012, 03:56 PM   #6
techgirl43
LQ Newbie
 
Registered: Nov 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
and SORRY again

I am really really SORRY. I said it before. I didnt mean to be rude, not at all.
I never used forums before, I didnt know that I cant use URGENT. I apologize.
 
Old 11-21-2012, 04:06 PM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hi,

as far as I remember you should create the index.html in the new directory. I'm no expert for apache, but the sense of the alternative directory is afaik that you can host an additional website on the server. And shouldn't there already be a file /var/www/html/index.html? before you used touch to create one?

Markus
 
1 members found this post helpful.
Old 11-21-2012, 04:09 PM   #8
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Here a link, hope this helps: http://www.debian-administration.org/articles/412

Markus
 
1 members found this post helpful.
Old 11-21-2012, 04:15 PM   #9
techgirl43
LQ Newbie
 
Registered: Nov 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks

Thanks alot, see, I am sure I need to create index.html, I will try to create it under the new directory. Thanks alot for the link:-)
Thanks gyus for your answers, see, I am not a Linux user, I am studying at Cisco academy CCNP.
 
Old 11-21-2012, 04:19 PM   #10
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Quote:
Originally Posted by techgirl43 View Post
Thanks alot, see, I am sure I need to create index.html, I will try to create it under the new directory. Thanks alot for the link:-)
Thanks gyus for your answers, see, I am not a Linux user, I am studying at Cisco academy CCNP.
But networking is (relatively) independent of the operatingsystem and the advantage of Linux (compared with Windows) is, that you can get a deeper understanding of many things. Linux will teach you a lot if your really use it.

Markus
 
Old 11-21-2012, 04:25 PM   #11
techgirl43
LQ Newbie
 
Registered: Nov 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Yeah, you are right. It is just little bit hard for me, but I know I can do it :-)
 
Old 11-21-2012, 04:30 PM   #12
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Yes, it is hart to do both at once, learning Cisco and Linux. But both very valuable.

Good luck

Markus
 
Old 11-21-2012, 04:42 PM   #13
techgirl43
LQ Newbie
 
Registered: Nov 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Yes. Now I know how much Windows spoil us :-D
 
  


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
boot sector and lilo collapse !!!!! URGENT URGENT URGEN !!!!! frelihm Linux - Software 21 12-02-2009 10:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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