LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 10-11-2012, 12:30 PM   #1
arnold.king
LQ Newbie
 
Registered: Sep 2012
Location: China
Distribution: fedora
Posts: 8

Rep: Reputation: Disabled
how to change the default aoto mounted usb permission for linux


hi all:
as we know , when usb flash disk plug in and aotu mounted , the default permission of the usb flash disk is 700. that means others have no permission . the question: how to make others have rean/write permission for the aotu mounted usb flash disk ? thanks !!

Last edited by arnold.king; 10-11-2012 at 12:31 PM.
 
Old 10-11-2012, 01:12 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791
If you type "man automount" and "man autofs" you can get more details on how automounts are setup. It is automount that is setup typically to mount CDs, floppies and other removable media.

From my CentOS box when I type "man autofs" it pulls up the manual page from section 8 (equivalent to typing "man 8 autofs). The "SEE ALSO" there references the man page in section 5 so I typed "man 5 autofs" and found the following:

Quote:
If you use the automounter for a filesystem without access permissions
(like vfat), users usually canít write on such a filesystem because it
is mounted as user root. You can solve this problem by passing the
option gid=<gid>, e.g. gid=floppy. The filesystem is then mounted as
group floppy instead of root. Then you can add the users to this group,
and they can write to the filesystem. Hereís an example entry for an
autofs map:

floppy-vfat -fstype=vfat,sync,gid=floppy,umask=002 :/dev/fd0
 
1 members found this post helpful.
Old 10-11-2012, 01:23 PM   #3
flirek
LQ Newbie
 
Registered: Sep 2011
Posts: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by arnold.king View Post
hi all:
as we know , when usb flash disk plug in and aotu mounted , the default permission of the usb flash disk is 700. that means others have no permission . the question: how to make others have rean/write permission for the aotu mounted usb flash disk ? thanks !!
try add umask=022 at 4th field in /etc/fstab for that mountpoint

some example:
label="my_usb_stick" /mnt/usb vfat auto,user,umask=022 0 0
 
1 members found this post helpful.
  


Reply

Tags
auto, permission, usb


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
can't change permission under ntfs mounted fs idnotcrae Slackware 9 07-26-2011 12:26 PM
cant change permission under ntfs mounted partitions idnotcrae Slackware 1 07-25-2011 11:51 AM
How do I change the permission of a mounted HDD? Hardcor3 Linux - Newbie 3 03-25-2009 12:57 AM
FC3 : how to change permission of directories where filesystems are mounted ? minnie Fedora 1 07-08-2005 12:23 PM


All times are GMT -5. The time now is 07:19 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration