LinuxQuestions.org
Help answer threads with 0 replies.
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, 11: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, 11:47 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
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, 11:56 AM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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, 11: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


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


All times are GMT -5. The time now is 09:34 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration