Tropenhitze

Kannst du das spüren?

ntfs-3g default write permission for users on openSuSE 11.2

with 4 comments

After you have installed openSuSE 11.2, you may find that by default only the root user is allowed to write to windows NTFS based partitions. To give all users the write permission to NTFS partitions, open Terminal and type

cat /etc/fstab

It may display something like

/dev/sda1 /windows/C ntfs-3g   users,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0

Here you can see the partition sda1 mounted to /windows/C by default. In order to change the default write permission to all users, you have to replace(explained here) the above line with the one below and save and reboot.

/dev/sda1 /windows/C ntfs-3g defaults,umask=0  0  0

But before making the changes, create a backup (explained) of the existing fstab file, so that you can use it later if you’ve messed it up. To do that, type,

sudo cp /etc/fstab /etc/fstab.bak

Type the root password when prompted and proceed ahead

Note:-

I use the vi editor here. If you are not familiar with using it, don’t worry.  It’s just like a normal editor except for some minor differences which you’ll learn here for the purposes of this tutorial.

Now type,

sudo vi /etc/fstab

type i and the editor changes to insert mode.

go to the line that has the ntfs partition entry, which looks something like I said before

/dev/sda1 /windows/C ntfs-3g   users,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0

and replace it with(note that the blank space between the last 3 zeros are necessary)

/dev/sda1 /windows/C ntfs-3g defaults,umask=0  0  0

After you have finished modifying the line, press the ESC key on the keyboard and type : (colon)

type wq followed by enter and verify the changes for once by typing the following command before exiting the terminal and rebooting the system

cat /etc/fstab

From the next boot onwards, all users can read/write windows NTFS partitions.

Please leave a comment if this tutorial was useful to you or if you have any suggestions on improving it.


Advertisements

4 Responses

Subscribe to comments with RSS.

  1. Good dispatch and this enter helped me alot in my college assignement. Thank you on your information.

    WP Themes

    February 14, 2010 at 11:55 AM

  2. An sich eine super Story, ich frag mich nur, ob dies auch ständig umsetzbar sein wird!

    Laly Mister

    February 3, 2011 at 11:07 PM

    • Der Eintrag in der Datei /etc/fstab bedeudet, dass diese Änderung ständig umsetzbar ist. Übrigens, vielen Dank für Ihren Kommentar.

      Ragavan N

      February 4, 2011 at 7:25 AM

  3. Gleiches problem bei mir in 11.4. Ich möchte meine externen ntfs-usb drives genauso mounten wie die fat-usb drives. KDE-geräteüberwachung. Suse blockiert das irgendwie.
    geht mit aber mandriva oder sabayon.
    Bin leider zum dumm für policykit (nehme an das das da drin steckt).
    kann jemand bitte helfen?
    das ist ein familien-pc ich kann nicht von allen verlangen fstab zu editieren oder root zu werden nur um ein usb drive reinzustecken.
    Danke
    husten

    husten

    July 1, 2011 at 6:30 PM


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: