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 08-23-2003, 08:23 AM   #1
jinujose
LQ Newbie
 
Registered: Apr 2003
Location: india
Distribution: RedHat
Posts: 14

Rep: Reputation: 0
Question cannot write to windows partition


hi all,

i am using RH9. when i mount windows partions i cannot write to the partitions is logged in user is not root. i added an entry in the /etc/fstab as follows.

/dev/hda1 /mnt/win auto defaults 0 0

the things work fine if i logged as root. ie i can read/write to the windows partition(FAT32). but when i logged in as a user i can read the partition but cannot write to it. i think that the options may be changed to give write permission to all users. how can i give write permission to a mounted partion to all users.

pls help...

thanks in advance

jinujose
 
Old 08-23-2003, 08:31 AM   #2
_kossak_
Member
 
Registered: Apr 2003
Location: Minde. Portugal
Distribution: DEBIAN
Posts: 87

Rep: Reputation: 15
/dev/hda1 /mnt/win auto defaults,umask=0 0 0
 
Old 08-23-2003, 08:32 AM   #3
jinujose
LQ Newbie
 
Registered: Apr 2003
Location: india
Distribution: RedHat
Posts: 14

Original Poster
Rep: Reputation: 0
can u explain what is umask=0 0 0 ?
 
Old 08-23-2003, 11:03 AM   #4
_kossak_
Member
 
Registered: Apr 2003
Location: Minde. Portugal
Distribution: DEBIAN
Posts: 87

Rep: Reputation: 15
It's umask=0.
The other 2 zeros are the ones you already had after defaults.

umask=0 sets 777 permissions for the entire filesystem.

actually it should be umask = 000 (3 octal digits)
If you're familiar with the linux file permissions you know that 777 makes the file rwx (readable, writable and executable) for user group and other. When you mount a vfat filesystem with umask=000 you get the inverse permissions for the files - 777.

It's kinda strange but that's the way it is.

Hope you understand, if you don't you should something about the linux filesystem permissions.
 
Old 08-23-2003, 12:34 PM   #5
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Quote:
/dev/hda1 /mnt/win auto defaults,umask=0 0 0
The problem here Kossack is that youve forgot

vfat

as the entry in the 3rd field - also you dont need auto and defaults because defaults includes auto as one of its sub-options - try this

/dev/hda1 /mnt/win vfat defaults,umask=000 0 0
 
Old 08-23-2003, 12:40 PM   #6
_kossak_
Member
 
Registered: Apr 2003
Location: Minde. Portugal
Distribution: DEBIAN
Posts: 87

Rep: Reputation: 15
Yes you're right. I just wanted to show that the solution was in the umask option. I just assumed the line was correct except for the permission issue.
 
Old 08-23-2003, 10:47 PM   #7
jinujose
LQ Newbie
 
Registered: Apr 2003
Location: india
Distribution: RedHat
Posts: 14

Original Poster
Rep: Reputation: 0
It worked correctly...

Thanks kossack ... and skyline

i have another doubt. how can i set write permission to a particular user/group using the umask ? is it possible (to a windows partition)

jinujose

Last edited by jinujose; 08-24-2003 at 12:11 AM.
 
  


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 can I write to a folder on my Windows partition? wfischer Linux - General 3 06-08-2005 08:37 AM
even in windows cannot write to ntfs partition cdkeyleo Fedora 5 09-25-2004 09:40 AM
Write Access to windows partition TsuNamI Mandriva 8 04-03-2004 05:30 PM
no write access to windows partition fieke Linux - General 4 12-04-2003 09:12 AM
can't write on mounted windows partition! icecube Linux - Hardware 21 12-07-2002 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:25 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
Open Source Consulting | Domain Registration