LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-25-2011, 04:51 AM   #1
idnotcrae
Member
 
Registered: May 2011
Distribution: Slackware
Posts: 121

Rep: Reputation: 0
Smile can't change permission under ntfs mounted fs


when i try to change permission for any file under mounted ntfs partitions (without any errors) it remains the same after changing.

#cat /etc/fstab
Quote:
/dev/sda3 swap swap defaults 0 0
/dev/sda4 / ext4 defaults 1 1
/dev/sda1 /win/C ntfs-3g fmask=111,dmask=000 1 0
/dev/sda5 /win/D ntfs-3g fmask=111,dmask=000 1 0
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
 
Old 07-25-2011, 05:00 AM   #2
zer0signal
Member
 
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258

Rep: Reputation: 29
Correct because it is an ntfs filesystem.. I believe it defaults to 777 when viewed from *nix.

CD into the mounted directory and do ls -l

And it should show everything as rwx rwx rwx

Last edited by zer0signal; 07-25-2011 at 05:02 AM.
 
Old 07-25-2011, 05:07 AM   #3
idnotcrae
Member
 
Registered: May 2011
Distribution: Slackware
Posts: 121

Original Poster
Rep: Reputation: 0
i guess i made the permissions for them during installation and they was read and write permission and most of them are read and write ,, but this is not the problem , it's that i can't cahnge the permissions to them
 
Old 07-25-2011, 09:56 AM   #4
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,379

Rep: Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824
Have a look at this http://slackwiki.org/Windows_Partitions and note the funny 'rw'.
 
Old 07-25-2011, 10:55 AM   #5
idnotcrae
Member
 
Registered: May 2011
Distribution: Slackware
Posts: 121

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by allend View Post
Have a look at this http://slackwiki.org/Windows_Partitions and note the funny 'rw'.
ya realy it's funny ,, but is there anyway to run a script from ntfs !!!
 
Old 07-25-2011, 11:32 AM   #6
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,379

Rep: Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824
Quote:
but is there anyway to run a script from ntfs !!!
Please give some more information on what you want to achieve.
 
Old 07-26-2011, 06:15 AM   #7
idnotcrae
Member
 
Registered: May 2011
Distribution: Slackware
Posts: 121

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by allend View Post
Please give some more information on what you want to achieve.
i can't add execution to files in ntfs partiion.
I download pkgs to ntfs partition cuz i have free space their, and i can't run the SlackBuild scripts because it don't has execute permission under that ntfs (and can't be added due to some reason uknown to me) ,i must move move the pkg to root partition and change the permission then run it.
i wanna know how to add execution to files under ntfs fs.
 
Old 07-26-2011, 09:18 AM   #8
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,379

Rep: Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824
You need to understand that the file permissions on NTFS do not map directly to Linux file system permissions.
If you need more space for your Linux, then shrink the the NTFS partition (ntfsresize is your friend) and convert that to a Linux compatible file system.
 
Old 07-26-2011, 10:39 AM   #9
idnotcrae
Member
 
Registered: May 2011
Distribution: Slackware
Posts: 121

Original Poster
Rep: Reputation: 0
i think i'll be a good friend with ntfsresize if it will not wipe my data out !! is their a chance to resize NTFS without loosing data ?
 
Old 07-26-2011, 11:26 AM   #10
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,379

Rep: Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824
From 'man ntfsresize'
Quote:
The ntfsresize program safely resizes Windows XP, Windows Server 2003, Windows 2000, Windows NT4 and Longhorn NTFS filesystems without data loss. All NTFS versions are supported, used by 32-bit and 64-bit Windows. Defragmentation is NOT required prior to resizing because the program can relocate any data if needed, without risking data integrity.
It has not failed on me yet!
 
  


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
How do I change the permission of a mounted HDD? Hardcor3 Linux - Newbie 3 03-24-2009 11:57 PM
cant have full permission on NTFS mounted drive mianmajidali Linux - Networking 1 01-28-2009 05:51 AM
permission denied while writing to mounted ntfs partitions in suse lifeafterdeath Linux - Newbie 2 11-20-2007 10:32 AM
no writing permission to mounted cifs share on windows XP ntfs folder zpcanada Linux - General 1 08-30-2006 11:30 PM
permission of mounted NTFS partition demmylls Linux - Security 2 11-29-2003 11:08 PM


All times are GMT -5. The time now is 06:47 PM.

Main Menu
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