Solved

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

Posted on 2009-07-10
3
645 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Are you sitting there reading this and wondering how to get started with Linux? It almost seems like picking the right Linux distribution is about like picking the right college or buying a new car if you read some of the article out there. Relax… l…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

829 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