Solved

File Permissions when Importing from USB Media

Posted on 2008-06-15
6
308 Views
Last Modified: 2013-11-15
When importing files from USB media (such as a USB camera or USB flash memory stick) using the GNOME Copy/Paste feature, or dragging and dropping, the permissions for the imported files default to:

user: read-write
group: none
others: none

I need for these files to default to the following permissions:

user: read-write
group: read
others: read

I need for this to happen without any user intervention as the users of this machine are not literate enough and will not understand this procedure. It is to enable these files to be shared through the uPnP/DLNA server MediaTomb.
0
Comment
Question by:azcn2503
6 Comments
 
LVL 19

Accepted Solution

by:
http:// thevpn.guru earned 250 total points
ID: 21788445
Try to execute
umask 033

and then copy those files

If that works you can simply add that command to ~/.bashrc
0
 
LVL 35

Assisted Solution

by:torimar
torimar earned 250 total points
ID: 21788514
You may have to edit the global mount options in the Gnome schema.

Open /var/lib/gconf/defaults/%gconf-tree.xml, search for "vfat/mount options" and change umask from 077 to 033. Save and reboot.

Good luck.
0
 
LVL 1

Expert Comment

by:kevpatts
ID: 21855983
Did this work?
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Having issues meeting security compliance criteria because of those pesky USB drives? Then I can help you! This article will explain how to disable USB Mass Storage devices in Windows Server 2008 R2.
I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
The viewer will learn how to download, install, and customize fonts inside Adobe Illustrator CS6. To install and use a font: Go to dafont.com and download a premade font : Unzip it, and open it up by double-clicking: Press “Install This Font” in…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…

776 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