LinuxQuestions.org
Visit Jeremy's Blog.
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 03-29-2003, 01:29 PM   #1
stevenhasty
Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Slackware-current
Posts: 169

Rep: Reputation: 30
making a vfat mount point writeable for users


Running redhat 8.0 psyche. I checked out the man page on editing fstab, but I don't think this has what I want, which is to automount my shared partition (shared with windows, not a system partition) and make it writeable for users. I made it automount, but I'm not sure how to go about making it writeable. When I try to change the write permissions or group settings on the mount folder in X logged in as root, it says I don't have permission, and the same happened when I tried a chmod. The mount point, for reference, is /mnt/files and the partition is /dev/hda6 and my fstab file says this:
/dev/hda6 /mnt/files vfat auto,user 0 0
 
Old 03-29-2003, 01:35 PM   #2
loke137
Member
 
Registered: Feb 2003
Location: Brasil
Distribution: Debian Etch
Posts: 147

Rep: Reputation: 15
chmod 755 as user doesnt help?
 
Old 03-29-2003, 01:49 PM   #3
stevenhasty
Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Slackware-current
Posts: 169

Original Poster
Rep: Reputation: 30
Nope, I can't seem to give users permission to write to the mount point even from root. "Operation not permitted."
 
Old 03-29-2003, 03:16 PM   #4
loke137
Member
 
Registered: Feb 2003
Location: Brasil
Distribution: Debian Etch
Posts: 147

Rep: Reputation: 15
you are writing to vfat or NTFS( the later is not well supported, meaning only experimental!)
 
Old 03-29-2003, 03:29 PM   #5
stevenhasty
Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Slackware-current
Posts: 169

Original Poster
Rep: Reputation: 30
vfat ...
 
Old 03-29-2003, 04:24 PM   #6
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
well, first try setting 'rw' option explicitly with the others.
ie. user,auto,rw

Second, you may want to look at 'man mount'. The things that stand out the most are the entries for 'user' (and what it does), and under "Mount options for fat" you may need to set the umask explicitly.
 
Old 03-29-2003, 06:38 PM   #7
stevenhasty
Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Slackware-current
Posts: 169

Original Poster
Rep: Reputation: 30
alright, I changed the options to include gid=100,rw,users and I'm still not able to change write permissions as root or be able to write as a normal user or a user within the group assigned to the mount point. I looked in man mount, but it does not explain what values to assign to umask, other than state that the value must be an octal. What is umask and what value would I set it to?
 
Old 03-29-2003, 06:50 PM   #8
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
man umask

the easiest hack would be umask=000 and will work in most cases (unless you have serious security issues - then do the math. If you don't know how to handle the numbers also check out 'man chmod')
 
Old 03-29-2003, 06:55 PM   #9
stevenhasty
Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Slackware-current
Posts: 169

Original Poster
Rep: Reputation: 30
I had yet to learn there is a man page for all these things. From now on, I'll try that first...
 
Old 03-29-2003, 06:59 PM   #10
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
man topic
info topic
apropos topic

^all very useful. Also, the "See Also" sections are sometimes helpful to look for further info.
 
Old 03-29-2003, 07:00 PM   #11
stevenhasty
Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Slackware-current
Posts: 169

Original Poster
Rep: Reputation: 30
hmmm ... when I tried man umask all I got was a listing of bash commands. I'm going to try the umask=000 since security issues are not very important ...
 
Old 03-29-2003, 08:17 PM   #12
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Well, I was going to post you mine, but i just did a google search since I remembered there are many manpages that have been compiled for net use. For example:

http://www.hmug.org/man/2/umask.html

yeah, umask=000 should work, while umask=022 would give user writes, but no one else.
 
Old 03-29-2003, 11:01 PM   #13
stevenhasty
Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Slackware-current
Posts: 169

Original Poster
Rep: Reputation: 30
umask=000 works great. Thanks.
 
Old 03-30-2003, 03:19 PM   #14
stevenhasty
Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Slackware-current
Posts: 169

Original Poster
Rep: Reputation: 30
Alright, I've got the mount point writeable, but I can't get my permissions to stick on directories within the mount point. How would I make all files under the mount point writeable on startup?
 
Old 03-30-2003, 03:50 PM   #15
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
two things I can think of:

1. your gid/uid is funky (what is it right now?)
2. your permissions on the mounted directory are funky (ie. ls -l /mnt/windows - or whatever it may be)
 
  


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 give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
Mount point Making ??? faisalraja Linux - Newbie 3 06-08-2004 04:53 PM
Users cannot mount or access mounted windows vfat partitions (Distro: Gentoo Linux) kamel Linux - Software 6 05-15-2004 06:08 PM
What if making /var/mail world-writeable? J_Szucs Linux - Security 4 08-18-2002 09:33 AM
HELP! Error from mount: drive is write-protected... won't mount writeable. system Linux - General 2 12-27-2001 09:08 PM


All times are GMT -5. The time now is 08:57 AM.

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