Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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?
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.
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.