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'm trying to setup a samba share to the DocumentRoot of the apache webserver so that I can work with the files on the webserver from a windows machine.
I've already setup samba and apache separately and they work fine. I added a samba share to /var/www/html and set everything to writable. I chmod 777 /var, /var/www, and /var/www/html so there can't be anything wrong with the permissions.
When I try to access the share a password dialog box pops up and no username/password will access the share. I've searched everywhere but can't figure out is happening. Any suggestions? Plus while we're on the subject, how should the file permissions be set for the /var/www/html directory if its a samba share as well?
When you samba in, it is looking for a samba username and password. That isn't your usual name and pass that you use to sign into the box, it is a completely seperate set of credentials. You need to specifically add a samba user account to the machine.
Another option is to allow samba to operate without asking for a password.
An even better option is not to do things the way you are, as that is hyper unsecure. 777 Permissions is just asking to get rooted. The "safe" way to make something like that to work is to go into the apache configs and allow apache to run websites out of home dirctories. That way each site has its own home directory, and since it is in a home directory, you'l have write permissions there.
The apache.conf file needs to have home directoroy websites enabled. By default it is not. For permissions, I would just make certain that the 3 user class, other, have read and execute permissions. The public_html should probably be either 775 or 755.
You can probably get around the location name with aliases or symlinks, although I'm not sure. Is there only one website on the machine?