LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-21-2009, 09:24 PM   #1
Quads
Member
 
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203

Rep: Reputation: 34
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?
 
Old 04-21-2009, 09:42 PM   #2
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Rep: Reputation: 34
Quote:
Originally Posted by Quads View Post
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
 
Old 04-21-2009, 09:44 PM   #3
Quads
Member
 
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203

Original Poster
Rep: Reputation: 34
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.
 
Old 04-21-2009, 09:47 PM   #4
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
Quote:
Originally Posted by Quads View Post
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

Last edited by j1alu; 04-21-2009 at 09:48 PM.
 
Old 04-21-2009, 09:49 PM   #5
Quads
Member
 
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203

Original Poster
Rep: Reputation: 34
Ah, success. chgrp was the ticket. Thanks.
 
  


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
mounting question mokku Linux - Newbie 3 05-09-2008 10:13 AM
mounting question andy1974 Linux - Hardware 9 04-01-2008 08:31 AM
mounting question scales Ubuntu 3 03-02-2006 03:03 PM
mounting question Haloony Linux - Newbie 2 01-08-2006 04:05 PM
Question about mounting johnlong_03 Slackware 4 08-01-2004 01:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration