Setup linux-apache server to access documents on NT server
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Setup linux-apache server to access documents on NT server
I want to set up my Linux-Apache web-server to access files on a NT file server. Basically I want to use my web-server as a portal for users to access/edit/create/delete documents on the NT file server through their browser.
Are there any linux products that would help me accomplish this?
Any help would be a appreciated. Thanks.
I'm not sure whay you dont want to let users access shared files on the NT box since that is how it was designed. From what you say I think you want to use samba to mount shares within the apache DocumentRoot.
Okay this is what I want to do.
I have two servers.
One is a Apache web-server running on a linux box.
The other is a NT file server.
Now, when I am on the road I want to be able to still access and manage the files on my NT server but without having to copy all of the files to my web-server thus saving disk space and I would have all my files stored in a central location.
So the web-server would act as a go-between for the on-line users and the file server. Does this make sense?
Yes I understand. That would work but I would need something a little more fancy. I would not be the only user accessing files and therefore I want file permissions to apply. So I need a way to authenticate users and to have the NT file permissions apply to the individual users.
The reason I was interested was that you may be able to use .htaccess files to protect the directories. This is how I have done it in the past. It just depends on the front end you are using. It doesn't matter how you protect the files at a system level - you will need to give the user that apache runs as full access anyway.
I create a password protected script using .htaccess. Then use perl to interprate the username that the user login with. Then use that as the dirname - eg /home/httpd/users/USERNAME/ Then using httpd.conf I can map the /home/httpd/users/ directory to http://myhost/users/
The security depends on how good your scripts are!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.