Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-25-2006, 05:25 PM   #1
Senior Member
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware 14.1 (32 and 64 bit)
Posts: 1,594

Rep: Reputation: 125Reputation: 125
mounted partition loses it's permissions

SOLVED: I got it working it seems. How I did it in case anyone encounters the same problem:

I changed the permissions of the folder where I mount the partition to 1777 and the owner to root:root when it was unmounted. Not sure if this is necessary. The second step seems to make the difference: AFTER mounting the partition I once again applied permissions and ownership to the folder (= mountpoint). Now I can create more folders in there as a normal user, it seems to behave like the /tmp folder.

To complete it, my fstab entry has options set to "rw,suid,dev,exec,noauto,user,async" (same as "default", but changed auto to noauto and nouser to user) which allows me to mount it as normal user without su'ing to root.

The original post: ------------------------------


I'm getting a little bit crazy about mounting a partition. I have created a folder as mount point but can't get a normal user to get write permission in that folder's base directory. As soon as I mount the partition it's permissions look like rwxr-xr-x and it is owned by root:root.
Basically I want something like the /tmp folder -- everyone can create directories, but read and delete only his/her own stuff.

I have an external harddrive that has the one partition I want to mount. The partition (/dev/sda1) is formatted with reiserfs and I choose as mountpoint /mnt/data-a. I tried several combinations of read/write-permissions and ownership (for example [1] root:root 777 [2] tito:users 775 [3] root:users 777) and tried to apply sticky bit once when the folder was assigned to root and once when it was owned by user tito.
In my fstab I have no special options at the moment. I played with user and users, but choose to fall back to "defaults" because my /tmp folder has the same permissions and there the permissions work like I would it to work with my data folder.

Any clues why the permissions change as soon as I mount the partition and how to get the same behaviour like the /tmp folder has? Your help is higly appreciated

Last edited by titopoquito; 02-26-2006 at 05:54 AM.
Old 02-27-2006, 03:26 AM   #2
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Rep: Reputation: 33
I don't know what happend to you but the defaults options work fine for me
Old 02-27-2006, 04:07 AM   #3
Senior Member
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware 14.1 (32 and 64 bit)
Posts: 1,594

Original Poster
Rep: Reputation: 125Reputation: 125
I tried the default options, but they didn't work per se. I think the solution was to change the permissions of the folder after the partition was mounted. If I use "default" as mount option now, then it's ok (but I like my only user==myself to mount the partitions himself, so I chose the "user" option).


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 permissions on mounted partition OlRoy Linux - General 2 09-24-2004 02:22 AM
How to change permissions of a mounted partition seran Linux - General 2 08-13-2004 01:43 AM
Why don't I have permissions for my mounted samba partition ? web384 Linux - Newbie 5 04-06-2004 08:20 PM
permissions and mounted fat32 partition ianunderwood Linux - Newbie 8 06-25-2003 05:17 AM
cant change permissions on a mounted windows partition groovin Linux - Newbie 10 11-02-2002 07:15 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:39 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