can't read or write some files even as a root [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Re: can't read or write some files even as a root

Postby hatalar205 » Sat Jun 13, 2009 13:05

İt doesn't give any error message but when I try to open file with oowriter it says "permission denied.
Everything is your fault. Yes, I advised you but you did.
User avatar
hatalar205
Simple Hen
 
Posts: 77
Joined: Wed May 06, 2009 16:49

Re: can't read or write some files even as a root

Postby micia » Sat Jun 13, 2009 13:12

This could be because your user has no permission over the files in your external hard drive.
What I would like to know is if this is the only problem (if you open them as root, the file is opened correctly,
as expected), or if the problem is somewhere else (if you open them as root, even after the chmod has been
executed, they still won't open).

So now try to copy some file with the cp command as root to verify this.
If it works we will manage to get your user able to read and write on that USB device :)

Could you tell us how your external drive is partitioned too? (NTFS, FAT or ext partitions and such)
User avatar
micia
Sagely Hen
 
Posts: 2710
Joined: Wed Nov 26, 2008 16:41

Re: can't read or write some files even as a root

Postby hatalar205 » Sat Jun 13, 2009 13:17

I tried cp but gived the same error.
İt is partitioned as NTFS
Everything is your fault. Yes, I advised you but you did.
User avatar
hatalar205
Simple Hen
 
Posts: 77
Joined: Wed May 06, 2009 16:49

Re: can't read or write some files even as a root

Postby Fitzcarraldo » Sat Jun 13, 2009 15:15

How are you mounting your NTFS HDD? To mount it you need to do something like:

Code: Select all
# cd /mnt
# mkdir MY_HDD
# ntfs-3g /dev/<device> /mnt/MY_HDD

where <device> is the specific disk, e.g. sdb1, sdc1 or whatever it is in your case.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7329
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: can't read or write some files even as a root

Postby hatalar205 » Sat Jun 13, 2009 16:07

Again unfortunately it didn't work.
Everything is your fault. Yes, I advised you but you did.
User avatar
hatalar205
Simple Hen
 
Posts: 77
Joined: Wed May 06, 2009 16:49

Re: can't read or write some files even as a root

Postby Fitzcarraldo » Sat Jun 13, 2009 17:18

Paste in this thread the error message you are seeing when you enter the ntfs-3g command to mount the drive.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7329
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: can't read or write some files even as a root

Postby hatalar205 » Sat Jun 13, 2009 17:27

Fitzcarraldo wrote:Paste in this thread the error message you are seeing when you enter the ntfs-3g command to mount the drive.


I think I am misunderstood. I don't get any error message when I mount the drive. I mean still I can't read or write some files.
Everything is your fault. Yes, I advised you but you did.
User avatar
hatalar205
Simple Hen
 
Posts: 77
Joined: Wed May 06, 2009 16:49

Re: can't read or write some files even as a root

Postby Fitzcarraldo » Sat Jun 13, 2009 17:33

I see. Can you copy or move a new file from a different drive to that NTFS drive? Can you e.g. run a text editor and create a new file on the NTFS drive? Or is the problem restricted to only the existing files on it?
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7329
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: can't read or write some files even as a root [closed]

Postby hatalar205 » Sat Jun 13, 2009 17:46

Sorry, I have taken lots of your time. My problem is completely different. I just realized that they have been ecrypted by the windows itself. As I have formatted it, and as it is encypted as NTFS ecyption by the former windows, I think it is impossible to open them.
As a result, I made a mistake and thanks everyone who tried to help.
Everything is your fault. Yes, I advised you but you did.
User avatar
hatalar205
Simple Hen
 
Posts: 77
Joined: Wed May 06, 2009 16:49

Re: can't read or write some files even as a root [Solved]

Postby kodiakmax » Mon Jun 15, 2009 8:20

I realize this topic has been solved. However, here is some more info that may help others in with a similiar issue.

You can have permission problems on NTFS partitions if the partition was not unmouted cleanly. Example being that you just pull the plug on a USB drive instead of choosing the safely remove option. Or, you turn off the computer power before shutting down. So, make sure you cleanly unmount the partition in windows before using in linux.
If you check the wiki, use the search function and google you can find the answer to most of your questions.

Remember to mark your thread [Solved] if your issue is fixed.
User avatar
kodiakmax
Advanced Hen
 
Posts: 278
Joined: Thu Oct 16, 2008 23:46

Previous

Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 0 guests