LinuxQuestions.org
Review your favorite Linux distribution.
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 04-12-2006, 10:42 AM   #1
MarcusG
LQ Newbie
 
Registered: Feb 2005
Location: New York City
Distribution: Slackware
Posts: 22

Rep: Reputation: 15
fstab / permissions to web docs on usb hard drive


I am running Slackware 10.2. I am running a web site off my computer. I have a usb hard drive with lots of images. I do not want all these images on my internal hard drive web document root.

I created a symlink in the /var/www/htdocs folder to the appropriate folder in the usb hard drive. Do I need to grant special permissions in fstab to allow anonymous web contacts (i.e. non-local users) permission to view/download. The site has secure log-in, but the users are not local users. If I want people to be able to view or download these images from my site, what fstab setting should I have and what permissions should I set to the device, mount point, and the symlink?

Current fstab,

dev/sda1 /mnt/usbhda auto ro,noauto,user 0 0


Do recommend a complete alternative (with Alias instead of symlink) if this is not the best approach.

Thanks
Marcus
 
Old 04-12-2006, 08:12 PM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,353

Rep: Reputation: 91
As the option ro (read-only) is enabled, i think it's ok. But your hard drive is fat32 so you can't go deeper in permissions. Try to remove or add files on it as user or root.
 
Old 04-13-2006, 09:36 AM   #3
MarcusG
LQ Newbie
 
Registered: Feb 2005
Location: New York City
Distribution: Slackware
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for reply. Let me clarify. As root and user I can do anything I want. That is fine. Setting that up that was surprisingly easy. I want to know if outside users will be able to access chosen files. I ask this because I am getting a permission denied error when testing it from the web interface. I do not know if I am configuring the permissions correctly. If fstab has user in the permission does that indicate that a non-local user cannot access the files? Htdocs are there to be viewed on the web, but the symlink is taking the web user to another file system where permission may interfere. I am not certain of this, however. This is new to me. I hope that clarifies.
 
Old 04-13-2006, 04:58 PM   #4
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,353

Rep: Reputation: 91
Ok so you'd better reformat your drive using ReiserFS or ext2 or ext3, then you will be capable to use more fine tuning over your directories. Maybe it's possible to do this with fat32, but i can't help you more as i don't know how. Wait for other answers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
Hard Drive Upgrade Oddities (fstab/fdisk) blainehilton Linux - General 2 06-04-2005 10:28 AM
Setting permissions on an external USB hard drive so that all users can read from it? Pi Man Linux - Hardware 2 09-07-2004 09:50 PM
How do I set up proper drive permissions (fstab reamins static despite all mounts) Lechium Linux - Hardware 9 07-03-2004 09:33 AM
fstab hard drive mount eastj1974 Linux - Newbie 2 07-05-2003 02:57 AM

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

All times are GMT -5. The time now is 07:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration