Solved

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

Posted on 2009-07-10
3
636 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now