Solved

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

Posted on 2009-07-10
3
646 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Title # Comments Views Activity
How to setup xrdp on Redhat? 2 226
how to run my script during boot in rhel 7 14 525
liboauth-php x oauth-1.2.3 3 97
Use CRON to save a copy of an open file 1 69
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…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

679 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