LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-02-2011, 10:27 AM   #1
e3399
Member
 
Registered: Nov 2010
Location: China
Distribution: Fedora12
Posts: 54

Rep: Reputation: 0
How can I change file permissions in windows ntfs partition.Even root can't change it


Here is my fstab's content:
/dev/sda7 /media/e ntfs defaults 0 0
/dev/sda8 /media/f ntfs-3g silent,umask=000 0 0

[root@localhost code]# ll 2
-rwxrwxrwx. 1 root root 0 Mar 2 20:19 2
[root@localhost code]# chmod -c 100 2
mode of `2' changed to 0100 (--x------)
[root@localhost code]# ll 2
-rwxrwxrwx. 1 root root 0 Mar 2 20:19 2

Any help will be appreciated!
 
Old 03-02-2011, 10:47 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

You are using linux to change permissions on a windows filesystem. That won't work, they (linux filesystems like ext3 and windows filesystems like ntfs) are not based on the same principles.

The fact that you do see permissions and users/groups after mounting a none-linux filesystem is mere eye-candy and not very valuable.

I'm not aware of any linux/unix tools that can change permissions on ntfs.

Hope this helps.
 
Old 03-02-2011, 10:56 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The ownership and permissions of the files and directories in an NTFS filesystem are determined when mounting. All files will have the same permissions. All directories will have the same permissions.

Look at the manpage for mount.ntfs and ntfs-3g. Use the "fmask", "dmask", "uid" and "gid" options to determine the permissions.

e.g. uid="e3339",fmask=0137,dmask=0027

These options will make e3339 the owner, with permissions of 0640 for files and 0750 for directories. The `x' bit is needed for directories to enter them.
 
Old 03-02-2011, 10:54 PM   #4
e3399
Member
 
Registered: Nov 2010
Location: China
Distribution: Fedora12
Posts: 54

Original Poster
Rep: Reputation: 0
I got it.
Thank you for all your help.
 
  


Reply



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
Debian shows file permissions change when copied to a Windows partition. mazinoz Linux - Security 3 12-11-2010 07:27 PM
Why can't Root change partition permissions? moxieman99 Fedora 11 02-19-2009 10:33 AM
How to change permissions on an NTFS partition... PlainDave Debian 19 04-13-2007 11:08 PM
Can't change the read permissions on an NTFS partition as root? EOHooligan Linux - Newbie 4 01-09-2005 06:48 AM
Change permissions on NTFS partition to read for all users bax Linux - Newbie 6 05-13-2002 07:35 AM

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

All times are GMT -5. The time now is 01:44 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
Open Source Consulting | Domain Registration