Solved

Easy FSTAB Question - How do I set read, write, and execute permissions on a USB drive?

Posted on 2009-07-10
3
641 Views
Last Modified: 2013-12-06
I am just learning how FSTAB works. Here's currently what my line looks like in FSTAB specifying what to do with my USB drive. I just need to make sure that all users, guests, and even their pet rats for all I care to have read, write, and execute permissions on this drive automatically. I want the system (I'm using Ubuntu 9.04) to boot up and give all users and guests read, write and execute permissions for folders and files that are currently on the drive, and any other files and folders that any other use would create.

I'm using this for a server application, and this application (Fog Project) needs everything blown wide open on this drive. Please don't lecture me on security. I'm well aware of the "risks" involved with such permissions. I can lock those down after I get this thing working if I decide that is necessary. :-)

So in short, when I do ls -l I want to see everything that currently is, or ever will be, on this drive to show up in GREEN. :-) Thanks to whoever helps!

Here's my FSTAB line as it is currently:

/dev/sdb1      /images/USB_Storage auto      0       0
0
Comment
Question by:oakridgeschools
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
savone earned 350 total points
ID: 24828492

This is how you can add file and dir permissions in /etc/fstab

/dev/sdb1      /images/USB_Storage auto      file_mode=0777,dir_mode=0777           0       0


But if I remember correctly (since I was the one that helped you) you formatted this USB drive in ext3.  You should be able to set the permissions from the command line.  

chmod -R 777 * while in the top directory of the USB drive will set everything on the drive to have read write and execute for everybody.
0
 
LVL 1

Author Comment

by:oakridgeschools
ID: 24840145
I'll try this out later today. Thanks savone!
0
 
LVL 1

Author Closing Comment

by:oakridgeschools
ID: 31602281
Thank you!
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question