Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-27-2010, 02:58 AM   #1
Registered: Mar 2008
Posts: 70

Rep: Reputation: 15
mount with different file permission

Dear ALL,

i am not able to mount a pen drive (which is formatted in ext2 format) with directory permission drwxrwxrwx and file permission as -rw-rw-rw.

with Regards,
Old 03-27-2010, 03:12 AM   #2
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Remove then reattach drive.
dmesg|tail && fdisk -l
here from the machine in question.
If not able to do such, post what you can here.
Old 03-27-2010, 03:13 AM   #3
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960
"man mount" >> "Mount options for ext2"

Nope, nothing there for specifying permissions. Which is not a surprise, since ext* is a filesystem that has the ability to store posix-style permissions and ownership data for files and directories. This is unlike FAT, for example, which doesn't and therefore needs to have simulated permissions applied to it at mount-time.

So if you want different permissions for your files, do what you do for all linux filesystems--chmod them.
Old 03-27-2010, 05:34 AM   #4
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 386Reputation: 386Reputation: 386Reputation: 386
As the poster above said, ext2 has its proper posix-like permissions system. You don't set/emulate permissions at mount time, they are already stored in the fs as special properties of every given file. To change the permissions of a file, directory or even the device node or the mount point you need to chmod them conveniently.

If you plan to do a massive chmod be aware that to access directories, in addition to +r you also need +x.


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 grant permission to mount ntfs file system for normal user m.parthiban Fedora 3 02-21-2010 09:17 AM
manual mount cifs works but srcipt mount cifs has mount error (13): Permission denied CADIT Linux - Newbie 6 11-20-2009 02:48 PM
mount -t cifs permission denied by mount -t smbfs works fine humbletech99 Linux - Server 13 09-03-2009 10:17 AM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:22 PM.

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