LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting question... (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-question-720790/)

Quads 04-21-2009 09:24 PM

Mounting question...
 
I have on my hard drive a partition that I have not accessed in a long time, it has some old movies and things on it. It is formatted ext3 and mounts at /data. Well today I decide to go in there and clean some things out, and I find out that only root has read/write access in there. This is apparently related to my having reinstalled the OS some months ago.

So how do I change this?

ic_torres 04-21-2009 09:42 PM

Quote:

Originally Posted by Quads (Post 3516803)
I have on my hard drive a partition that I have not accessed in a long time, it has some old movies and things on it. It is formatted ext3 and mounts at /data. Well today I decide to go in there and clean some things out, and I find out that only root has read/write access in there. This is apparently related to my having reinstalled the OS some months ago.

So how do I change this?


since it is already mounted as rw for root. . have you tried changing the owner of the /data?

try (as root)

chown yourusername /data


i am not sure if i got the right syntax. .. update this thread of the results

Quads 04-21-2009 09:44 PM

When I use chown it appears that it does it to the folder but not to the contents. How would I do this recursively(is that the word)? There are many subdirectories and files in there.

j1alu 04-21-2009 09:47 PM

Quote:

Originally Posted by Quads (Post 3516803)
I have on my hard drive a partition that I have not accessed in a long time, it has some old movies and things on it. It is formatted ext3 and mounts at /data. Well today I decide to go in there and clean some things out, and I find out that only root has read/write access in there. This is apparently related to my having reinstalled the OS some months ago.

So how do I change this?

you could try changing the owner and group of the drive:
Code:

chown -R user_name /data
chgrp -R user_name /data

right-settings are done with chmod, but its a bit difficult.

ah:i missed your both posts:
-R should take care of all Recursive files and folders.
greetings

Quads 04-21-2009 09:49 PM

Ah, success. chgrp was the ticket. Thanks.


All times are GMT -5. The time now is 10:48 AM.