NTFS - permission denied Topic is solved

Need help with your Linux distro? All questions are good - not all answers are -but we try

Moderator: jkerr82508

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: NTFS - permission denied

Postby viking60 » 19 Mar 2010, 19:21

Ahoy rolf
Thanks!
No suprise then that I got:

Code: Select all

ll /media/win/skriver_til_root
-rw-r--r-- 1 root root 0 2010-03-19 19:17 /media/win/skriver_til_root

Digging further...
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
rolf
Guru-Berserk
Posts: 1107
Joined: 16 Mar 2010, 16:07

Re: NTFS - permission denied

Postby rolf » 19 Mar 2010, 19:30

What's your line in /etc/fstab for that partition?
All I've got is the umask idea, if this is on the linux side. If it's on the Windows side, no idea. If your fstab is different from mine, maybe save it and try with the line I've got, your mount point, of course.

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: NTFS - permission denied

Postby viking60 » 19 Mar 2010, 19:54

Looks perfectly all right:

Code: Select all

#Entry for /dev/sda1 :
UUID=7432F81932F7DDD4 /media/win ntfs-3g defaults,umask=000 0 0

I am beginning to think could be on the Windows side (but I almost never use that side so it is strange). What I have done with the partition is; I scanned the partition with clamwin from Mandriva - well that what it is for kind off (If not - it should be:).
That might have messed things up on the Windows side.

I have done a brutal workaround so far:
I did a Chown -R Viking on the User/Viking/Documents folder. And I have all the access that i want from Linux. This user is now useless in Windows I have no rights to do anything there, so I created a new user in Win and copied the documents over there.
Works fine.
But NTFS access on the new Win user is denied - so it was just a rescue action.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: NTFS - permission denied

Postby dedanna1029 » 19 Mar 2010, 21:08

viking60 wrote:Urmph - going to Windows.....
....Back again. I think you are on to something. The folder Users/tb has a lock symbol on it. I can access it just fine from Windows.
Sharing etc does not help so I will have to check the policies etc.

Check the properties of each file itself, not the folder at once. Sometimes just one file being ownership off, and it will throw the whole folder. Anything?

Other than that, this is yours and rolf's thread, IMHO. I'll STFU now.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
rolf
Guru-Berserk
Posts: 1107
Joined: 16 Mar 2010, 16:07

Re: NTFS - permission denied

Postby rolf » 19 Mar 2010, 22:14

Code: Select all

[rolf@localhost ~]$ ll /media
[..]
drwxrwxrwx 28 root root 16384 1969-12-31 16:00 win_c/
drwxrwxrwx  1 root root  4096 2010-03-18 19:18 win_c2/
[..]
[rolf@localhost ~]$ ll /media/win_c2
total 3195028
-rwxrwxrwx 2 root root 3270828032 2009-06-06 22:03 7100.0.090421-1700_x64fre_client_en-us_retail_ultimate-grc1culxfrer_en_dvd.iso*
drwxrwxrwx 1 root root          0 2009-06-28 19:28 RECYCLER/
drwxrwxrwx 1 root root       4096 2009-06-06 20:34 System Volume Information/
-rwxrwxrwx 1 root root     851111 2009-06-06 20:54 w7key.ps*
drwxrwxrwx 1 root root       4096 2009-06-06 20:58 Windows_7_RC_64-bit_files/
-rwxrwxrwx 2 root root      15852 2009-06-06 20:58 Windows_7_RC_64-bit.html*
-rwxrwxrwx 1 root root          0 2010-03-18 19:18 writing_to_the_root*
drwxrwxrwx 1 root root       4096 2010-03-12 00:01 zyxel/


As I think I indicated, I'm unclear on the permissions/file attributes thingy in Windows, I've always thought it was not supported.

chmod -R 777 /media/win

in your case as root would give the [d]rwxrwxrwx attributes on everything like I seem to have, if it takes. However, I wonder what is your security level. Mine is just set to Standard. I think that can make a difference.

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: NTFS - permission denied  Topic is solved

Postby viking60 » 19 Mar 2010, 22:58

I have a suspicion that the chmod could fubar things on the Win side (It will work in Linux). But no risk no fun.... Here we go....
Edit:

YES!!! Sometimes life is that simple. Rolf - you are hereby appointed guru. I did chmod the Users/My_name folder (not the whole thing (there is no need) where the windows settings also are stored. My User on the Windows side is now fully functioning and I have access from Linux.
Life is good!
Thank you rolf!
Here is a recapitulation on what to do (and not to) to fix this:
When you discover that you do not have access to your documents on windows:
DO NOT:
chown -R username /media/win/User/user_name_folder. (Or any other folder)
It will break your access on the Windows side even if the user name is the same. You will have access from the Linux side.
DO:
Check your ntfs-config settings.
and

Code: Select all

chmod -R 777 /media/win/User/Your_User_Name

(Note that your path might be different like /media/windows or /media/win_c etc. you will have to check this and use yours)
Then it will work again on both sides.
Case closed :D
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
rolf
Guru-Berserk
Posts: 1107
Joined: 16 Mar 2010, 16:07

Re: NTFS - permission denied - SOLVED

Postby rolf » 20 Mar 2010, 01:51

Good job!

User avatar
dedanna1029
Sound-Berserk
Posts: 8780
Joined: 14 Mar 2010, 20:29
Contact:

Re: NTFS - permission denied - SOLVED

Postby dedanna1029 » 20 Mar 2010, 01:55

To be quite honest, and even when we weren't getting along, I'd give him credit for this. I have never in my life seen anyone as good at this stuff as Rolf is (I'm not sure even RJ was as good at this stuff as Rolf is)! He has helped me out of many a jam, with just CLI; it's actually where I learned to love it so much, is from him. :) Always admired and respected that!

Rolf, thank you. It's much appreciated!
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html


Return to “Help”