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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-23-2003, 08:23 AM
|
#1
|
LQ Newbie
Registered: Apr 2003
Location: india
Distribution: RedHat
Posts: 14
Rep:
|
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
|
|
|
08-23-2003, 08:31 AM
|
#2
|
Member
Registered: Apr 2003
Location: Minde. Portugal
Distribution: DEBIAN
Posts: 87
Rep:
|
/dev/hda1 /mnt/win auto defaults,umask=0 0 0
|
|
|
08-23-2003, 08:32 AM
|
#3
|
LQ Newbie
Registered: Apr 2003
Location: india
Distribution: RedHat
Posts: 14
Original Poster
Rep:
|
can u explain what is umask=0 0 0 ?
|
|
|
08-23-2003, 11:03 AM
|
#4
|
Member
Registered: Apr 2003
Location: Minde. Portugal
Distribution: DEBIAN
Posts: 87
Rep:
|
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.
|
|
|
08-23-2003, 12:34 PM
|
#5
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
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
|
|
|
08-23-2003, 12:40 PM
|
#6
|
Member
Registered: Apr 2003
Location: Minde. Portugal
Distribution: DEBIAN
Posts: 87
Rep:
|
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.
|
|
|
08-23-2003, 10:47 PM
|
#7
|
LQ Newbie
Registered: Apr 2003
Location: india
Distribution: RedHat
Posts: 14
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 03:38 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|