LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-10-2003, 11:37 AM   #1
jhansman
Member
 
Registered: Aug 2003
Location: California's Central Coast
Distribution: Red Hat 9
Posts: 48

Rep: Reputation: 15
Changing ownership of mounted filesystem


I have a FAT32 partition I've mounted (/mnt/shared) that I cannot write to as a user. I figured all I had to do was change the ownership from root to me, but the chown command doesn't seem to want to work like it has on other folders. Is there something special I must do here? TIA!
 
Old 09-10-2003, 12:57 PM   #2
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Try this typical entry in /etc/fstab - substitute in your partition in place of the example one.

/dev/hda1 /mnt/shared vfat umask=000,defaults 0 0

if you have no luck then try:

/dev/hda1 /mnt/shared vfat umask=000,defaults,uid=501 0 0

remeber again to substitute in your partition and this time put your user id number in as one of the options.

Last edited by Skyline; 09-10-2003 at 01:02 PM.
 
Old 09-10-2003, 04:40 PM   #3
jhansman
Member
 
Registered: Aug 2003
Location: California's Central Coast
Distribution: Red Hat 9
Posts: 48

Original Poster
Rep: Reputation: 15
The first one failed, but the second example worked like a charm. Thanks a million!!
 
Old 09-10-2003, 07:22 PM   #4
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Smile

Glad to be of help.
 
Old 09-11-2003, 01:38 AM   #5
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
You can be more restrictive if you add a group and then make the appropriate changes to the umask=xxx statement

w00t!
 
  


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
Howto change the ownership of mounted smb resource?? sys7em Linux - Newbie 4 12-23-2004 03:48 PM
changing the ownership djh Slackware 3 11-08-2004 05:16 AM
Changing ownership of folders Nurfen Linux - Newbie 1 08-01-2004 01:00 PM
3 issues: Making swap, fixing partitions, changing ownership of mounted filesystem. Dunedain Linux - Newbie 2 01-27-2004 04:52 PM
Access attributes & ownership on FAT filesystem correro Linux - General 2 03-18-2003 09:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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