Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-04-2008, 04:56 PM   #1
LQ Newbie
Registered: Feb 2008
Distribution: openSUSE 10.3
Posts: 2

Rep: Reputation: 0
Question File permission problems?

Im running openSUSE 10.3 and i have a sata harddrive that i want to mount temporarily so i can read files off it

(enter password)
mount /dev/sda1/ /mnt
chown "username" /mnt

now i can see all my files but when i try to open a document it tells me i dont have permission

apparently i own the /mnt directory but root still owns all the files inside of it... bogus

so how do i make myself the owner of the directory AND its contents?

I just installed linux last night and my brain hurts from all this googling haha :P
Old 06-04-2008, 05:03 PM   #2
Senior Member
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
Use the -R option on chown... That makes it go through every folder and file in /mnt and change the owner.
Old 06-04-2008, 05:12 PM   #3
LQ Newbie
Registered: Feb 2008
Distribution: openSUSE 10.3
Posts: 2

Original Poster
Rep: Reputation: 0
ok i used the -R option and now all of the sub directories are owned by me, but still all my files are owned by root and i cannot open them...

here is the output of "ls -l" for the main directory and for an example file inside of that directory

drwxrwxrwx 1 luk3 users 12288 2008-06-03 15:24 sata

drwxrwxrwx 1 luk3 root 4096 2008-06-03 15:34 DOCUMENT.txt

according to the file permission i should be able to read write and execute the files correct? what the heck is going on

did i mount the drive wrong or what?

Last edited by lukthree; 06-05-2008 at 08:36 AM.


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
regarding file permission for db2 backup image file lx4all Linux - General 1 12-13-2007 04:37 PM
Changing file permission, How to edit a file? rainchild Linux - Newbie 8 01-14-2007 11:18 PM
change file permission of a mouse device file permanently alexandre_fs Linux - General 5 01-09-2007 07:30 AM
file permission problems on nfs-share Falafel Linux - Networking 3 12-05-2006 02:57 PM
Problems unzipping a *.tar.gz file --permission denied? mfarley Linux - Newbie 3 07-22-2003 06:07 PM > Forums > Linux Forums > Linux - Newbie

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