LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ext3 without mount point unreadable (https://www.linuxquestions.org/questions/linux-newbie-8/ext3-without-mount-point-unreadable-893437/)

Arelatensis 07-24-2011 06:24 AM

ext3 without mount point unreadable
 
Hi all!
Now I have created a ext3 partition for store date, but I had not make any mount point for these partition. I still can mount partition (graphically through Dophin, or in console) in my Mandriva 2010.2,but i can not access to its content as ordinary user (permission denied), only as root.
May be it was a bad mind to use ext3 fs for storing date.
Thanks.

syg00 07-24-2011 06:32 AM

Maybe not - the f/s type (ext3 here) has nothing to do with it. Have a look at the permissions of the mount point, and/or Dolphin config (not a KDE user, so just guessing).

ongte 07-24-2011 09:06 AM

This is all to do with permissions. Since you chose ext3 which is permission aware. You DO have to make sure the mount point belongs to your normal user or has the right permission to everyone to write to it.

Here's an example of what you need to do.
Mount the partition in the terminal:
Code:

# mount /dev/sda6 /mnt/data
# ls -l /mnt
drwxr-xr-x 6 root  root  4096 2011-06-13 22:28 data/

Lets say your username is 'arel', make the mountpoint be owned by 'arel'.
Code:

# chown arel.arel /mnt/data
# ls -l /mnt
drwxr-xr-x 6 arel  arel  4096 2011-07-13 22:28 data/

If the existing data all belongs to root. You may need to change the owner of all the file & folders.
If you want every user to be able to write into this partition. You also need to change the permissions of the mountpoint.
Code:

# chown -R arel.arel /mnt/data/*
# chmod 777 /mnt/data


Arelatensis 07-27-2011 12:20 PM

"This is all to do with permissions. Since you chose ext3 which is permission aware. You DO have to make sure the mount point belongs to your normal user or has the right permission to everyone to write to it."


Thanks. That is was, that I suspected. Now I'm sure.

Arelatensis 08-23-2011 05:38 PM

Is it important, who creates a partition?. When it is created with gparted or KDEpartition manager, or, in my case, with Mandriva's diskdrake, which all is launched only under root, the created partition will belong only to root.

But, when I created a partition through the Windows utility Paragon, it will accessed by anyone. On my another machine I have two Linux OpenSuse and Aptosid, and I can free access as normal user, from Aptosid to Suse's partitions (/ and /home) and vice versa. Therefore, when a partition is creates by a third part, becomes it accessible for anyone?

EDDY1 08-23-2011 07:53 PM

That's the purpose of the chown cmd example give by: ongte
Quote:

Lets say your username is 'arel', make the mountpoint be owned by 'arel'.
Code:

# chown arel.arel /mnt/data
# ls -l /mnt
drwxr-xr-x 6 arel arel 4096 2011-07-13 22:28 data/


All times are GMT -5. The time now is 11:20 AM.