LinuxQuestions.org
Register a domain and help support LQ
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 10-23-2005, 12:15 AM   #1
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Rep: Reputation: 37
How to mount ntfs partition so a group can write to it?


I have an NTFS partition which is mounted by fstab at bootup.

User can read from it, but not write to it.

Root can read and write to it.

I want to set the mounted NTFS parition so that a group can write to it, and then I can add users to that group.

Any ideas?
 
Old 10-23-2005, 12:20 AM   #2
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
you really shouldn't be writing to a NTFS partition. It's not safe, it may corrupt data. There are some projects that are supposed to be able to write to NTFS, but I think they are still experimental as well.
 
Old 10-23-2005, 12:33 AM   #3
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Original Poster
Rep: Reputation: 37
Sorry, just realised its not NTFS, its fat32 !
 
Old 10-23-2005, 01:26 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Use the gid and umask options to mount, e.g. if the group you want to have write access has numeric ID 500:

mount -o uid=0,gid=500,umask=002 <device> <mount point>

You can add this to the options field in /etc/fstab if you have this mount set up in there, so the options get applied whenever you mount it.

Basically:
-- MSDOS based filesystem don't do *nix style permissions, so Linux fakes it for you.
-- You use the uid and gid options to determine owner and group of files on vfat volumes.
-- The umask gives what permissions are denied. A umask of 002 denies no permissions for user and group, and denies write permission for others.
 
  


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
no write permission on NTFS mount zchoyt Linux - General 1 08-25-2005 10:10 PM
How to write to a NTFS mount aznluvsmc Fedora 4 08-11-2005 12:01 AM
cant write to a ntfs mount SlipAway172 Ubuntu 3 05-19-2005 07:16 PM
How to write ntfs mount? kthkevin Linux - Newbie 5 10-22-2004 07:29 AM
vfat partition - write permission for users group digitized_funk Linux - Newbie 8 03-19-2003 08:30 AM


All times are GMT -5. The time now is 04:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration