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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
i've set up some symlinks in /var/wwww/ so that i can point my browser to some directories in my home directory, however when i do so, i get access denied. Just wondering how do the permissions work? i'm guessing the permssions are that of my directories i'm trying to view, and not permissions of the actual symlink. is that right? if so how can i get around this becuase i can't just chmod the directories and allow everyine to be able to view my files, we have a few users on the box.
Then make use of group permissions. Make yourself part of the group that owns the files you're trying to view and set up the permissions so that members of the group can see the files but others can't.
Originally posted by allan_y this still doesn't let me see the files through a web browser.
my permissions are as follows:
drwx------ where i'm the creator and owner. i can access these files. no other user can. is there a way i can view the files through a web browser?
Are you accessing them with a URL that starts with "http://" or "file:///"? It makes a difference. If your using "http://" then you need to make sure that the user that Apache runs as (ie apache, www, or nobody) has the appropriate perms.
Your httpd.conf will tell you what user Apache is running as. Usually it's apache or www in most default set ups. Remember, when you are accessing your system via the Web server, the system has no idea that the person behind your user account is trying to access resources - all it knows is that the Web server is trying to access them. If you need to look at your files remotely, doing it over Apache is probably not the best way, although with HTTP authentication you could probably sort of make it work. A better idea might be to install Webmin or Usermon, or simply transfer the files to your remote desktop via SSH.
Originally posted by allan_y i'm using http:// and i'm working remotely. as far as i know, symlinks have been allowed in httpd.conf.
i think i will just make my directory viewable by everyone and see if it works
Do you have any upstream directories that (ie /home/username) that are set to 700 or another perm level that denies access to other? If yes, your Apache user (ie www or apache) can't read down to the real directory.