LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 02-25-2006, 06:25 PM   #1
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,525

Rep: Reputation: 94
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: ------------------------------

Hi,

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 06:54 AM.
 
Old 02-27-2006, 04:26 AM   #2
TruongAn
Member
 
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, 05:07 AM   #3
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,525

Original Poster
Rep: Reputation: 94
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).
 
  


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


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