LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-11-2009, 04:35 AM   #1
mandrakeBren
LQ Newbie
 
Registered: Jan 2009
Posts: 28

Rep: Reputation: 15
change permission of a ntfs partition


i log in as bren, then login as su,

then i mount my hdd

Code:
mount -t ntfs /dev/sda7 /windows
then the hdd is mounted to the windows folder,

i can access it in console and in mc,

because i am a new user and am not sure how to use mc or the console,

i need to change the permissions so that i can access it in GUI

thanx
 
Old 02-11-2009, 05:52 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
See the box at the bottom of this page labeled "Similar Threads"? You might want to follow a few of those links first. Then you can come back here if you still have problems.
 
Old 02-16-2009, 03:06 AM   #3
mandrakeBren
LQ Newbie
 
Registered: Jan 2009
Posts: 28

Original Poster
Rep: Reputation: 15
ok, i got it mounted in the GUI with

Code:
 mount /dev/sda7 /windows -t ntfs -r -o umask=0222
i can access the partition and have read and execute rights,

but i need to delete some of the files and can't,

i need to mount it so that i also have wright permissions
 
Old 02-16-2009, 12:34 PM   #4
Ranguvar
Member
 
Registered: Oct 2008
Location: Upstate NY
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 17
The 0222 umask allows the owner of the files write permissions, and everyone else can only read and execute.
Look inside /windows with ls -l. If the files are owned by you, you should be able to write for them.
There are plenty of guides on Linux/Unix file permissions you can Google for to help.

The other problem is that you're using the ntfs driver, which is only half-working right now. IIRC, you can read files and now just recently modify them, but you cannot delete files or make new ones.
Use the ntfs-3g driver instead (-t ntfs-3g). Your distro might not have it already, in which case you'll need to install it.
 
Old 02-16-2009, 01:31 PM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Since NTFS does not support *nix style permissions and ownership, they must be simulated with mount options. umask is the invert of the permissions you want, or more accurately, the amount that will be subtracted from permissions of 7. So if you want 775 permissions, for example, your umask will be 002.

The options uid and gid will specify the owner and group the files on the drive will be seen as having.

Also, '-r' is the read-only flag. You need to use '-w' or, as most people seem to prefer, add 'rw' to the options string. But be sure to switch to ntfs-3g first, or you'll probably destroy your partition!

Read the man pages of mount and ntfs-3g for more options.
 
Old 02-16-2009, 06:26 PM   #6
Ranguvar
Member
 
Registered: Oct 2008
Location: Upstate NY
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 17
Thanks for the info on NTFS permissions, David I didn't fully understand that.
 
Old 02-16-2009, 08:18 PM   #7
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 33
Cool

install ntfs-3g , u will be able to read ,write anything u want to windows partition , thats talk talk lot about windows insecurity hihi!!
 
Old 02-16-2009, 11:16 PM   #8
Ranguvar
Member
 
Registered: Oct 2008
Location: Upstate NY
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 17
Thumbs down

Quote:
Originally Posted by vibinlakshman View Post
install ntfs-3g , u will be able to read ,write anything u want to windows partition , thats talk talk lot about windows insecurity hihi!!
It has nothing to do with Windows security, much as I love dissing Windows. I can grab my friend's (unencrypted) hard drive, which has Linux partitions, plug it into my PC, and write to his partitions. I could even do it from Windows to some Linux partitions, but this is more a compatibility issue, nothing to do with Windows security.
 
  


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 to change permissions on an NTFS partition... PlainDave Debian 19 04-13-2007 11:08 PM
NTFS partition won't let me change files, and ideas? groovetrain Mandriva 7 10-10-2005 05:44 PM
permission of mounted NTFS partition demmylls Linux - Security 2 11-29-2003 11:08 PM
ntfs partition permission problem pdb1013 Linux - Newbie 4 07-21-2003 11:47 PM
Change permissions on NTFS partition to read for all users bax Linux - Newbie 6 05-13-2002 07:35 AM


All times are GMT -5. The time now is 02:40 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