You are not logged in.

#1 2011-12-29 19:30:14

Paanini
Member
From: Mumbai
Registered: 2011-12-29
Posts: 29
Website

[SOLVED]Can't change file permissions

Hi, I just installed Arch Linux yesterday, and I've edited /etc/fstab to automount 1 of my partitions.

 /dev/sda6 /media/Media ntfs users,defaults,umask=000 0 0

The problem is, all the files in both the drives are owned by root. I can only read (can't write / edit / delete any files or folders)

I tried

 sudo chown -R paanini:users /media/Media/ 

but it only changed ownership of the folders, not individual files. I still can't write / edit the files/folders.

So I tried

 sudo chmod -Rf a=rwx /media/Media/* 

but it didn't change the permissions at all.

What am I doing wrong?
What's the easiest way to change permissions so I can be the owner and can read / write all the files?

Thanks in advance :-)

Last edited by Paanini (2012-03-22 20:16:36)


Find me on    :     Twitter     Tumblr     Blogger

Offline

#2 2011-12-29 19:37:13

olorian
Member
Registered: 2011-12-16
Posts: 86

Re: [SOLVED]Can't change file permissions

Writing on a NTFS partition requires ntfs-3g. Try it! -)

Offline

#3 2011-12-29 19:37:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED]Can't change file permissions

Any reason you have "umask=000"

Why not just set permissions in fstab?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2011-12-31 17:35:24

Paanini
Member
From: Mumbai
Registered: 2011-12-29
Posts: 29
Website

Re: [SOLVED]Can't change file permissions

I used ntfs-3g as recommended, and it worked, thanks!

I'd copy pasted those lines from a previous Ubuntu install where they worked just fine, so I didn't bother changing them, though I was aware that writing priveleges require ntfs-3g. I'm still not owner of any of the files / folders, but I can edit and delete them as I see fit, so no harm.

Thanks again :-)


Find me on    :     Twitter     Tumblr     Blogger

Offline

#5 2011-12-31 18:38:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Can't change file permissions

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB