LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-22-2005, 03:48 PM   #1
nodisk
LQ Newbie
 
Registered: Dec 2005
Posts: 10

Rep: Reputation: 0
file permissions on usb drive


i plugged in a usb thumb drive into an ubuntu machine and wrote a test file to it. then i changed permissions for the file so that no one could read, write, or execute it. however, when i unplugged the device and then plugged it in again, the permissions i had set were not there anymore. is there some way to retain permissions on files even when the usb drive has been unplugged? any suggestions on how permissions can be retained on other kinds of devices, such as floppy, zip, cd, etc?
 
Old 12-22-2005, 04:01 PM   #2
DarkElf109
Member
 
Registered: Dec 2005
Location: Phoenix, AZ
Distribution: Ubuntu, Debian, Gentoo
Posts: 43

Rep: Reputation: 15
AFAIK, to retain permissions, you'll have to reformat the drive with a file system that supports permissioning. You could also tar the file(s) that you want to retain permissions to, and store the tar.* on the USB drive, but that gets to be more of a hassle.
 
Old 12-22-2005, 04:18 PM   #3
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
the usb thumb drives mostly come with fat32 filesystem which does not have any concept of permissions. You could just save it as it...I have not tried creating another filesystem on the usb thumb drive. The same goes with tar. Although, you can easily maintain permissions on a CD.

Tux,
 
Old 12-22-2005, 04:25 PM   #4
DarkElf109
Member
 
Registered: Dec 2005
Location: Phoenix, AZ
Distribution: Ubuntu, Debian, Gentoo
Posts: 43

Rep: Reputation: 15
Quote:
I have not tried creating another filesystem on the usb thumb drive.
One of the methods of installing DSL on a USB drive is to create a boot partition on the drive itself, using a separate filesystem, so I know it can be done. However, if you use Ext2/3, if you don't have the right system drivers in Windows (I know that there's at least one driver for Ext2), you won't be able to access the drive. I'm not sure about Macs, either. But if you work in a Linux-only environment, I don't see any problems.
 
Old 12-26-2005, 10:42 PM   #5
nitinatindore
Member
 
Registered: Dec 2004
Location: India
Distribution: Mandrake, Mandriva, PclinuxOS
Posts: 114

Rep: Reputation: 15
You could always create two partitions on the thumb drive, one with FAT & other with ext2/3. Your permissinos will be preserved on ext2/3 file system.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How To detect USB drive device file kr123 Programming 0 12-08-2005 12:01 AM
USB Drive in 8.3 File Format dkpw Slackware 4 03-21-2005 05:31 PM
USB/ntfs drive and user permissions FC3noob Linux - Newbie 1 02-16-2005 10:37 AM
Usb drive file sync pembo13 Linux - General 2 11-11-2004 09:56 PM
Setting permissions on an external USB hard drive so that all users can read from it? Pi Man Linux - Hardware 2 09-07-2004 09:50 PM


All times are GMT -5. The time now is 12:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration