LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 11-11-2003, 09:50 AM   #1
lawrencegoodman
Member
 
Registered: Aug 2003
Posts: 47

Rep: Reputation: 15
Permissions Problem with FAT32 Drive


I have created a drive called D in the folder windows. I want to try to change the owner (chown) from the root user to me (lawrencegoodman) because this is becoming a real pain. But I am being told I cannot do this?
Is this because it's a FAT32 formatted drive?
Is there a way around this?

Thanks,
Lawrence
 
Old 11-11-2003, 10:17 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
For fat32 drives, I think you can do it by adding entries in the /etc/fstab file. Here's an example:
Old line:

/dev/hda1 /mnt/win vfat user,umask=0,auto 0 0

New line:

/dev/hda1 /mnt/win vfat user,umask=0,auto,uid=1000,gid=1000 0 0

'user' lets users mount, 'auto' mounts on startup, 'uid=1000' gives ownership to whoever's user id is 1000, 'gid=1000' gives group ownership to the 1000th group.
 
Old 11-11-2003, 10:24 AM   #3
lawrencegoodman
Member
 
Registered: Aug 2003
Posts: 47

Original Poster
Rep: Reputation: 15
Follow-Up

So I opened etc/fstab and this is the relevant line (I think):

/dev/hda5 /windows/D vfat users,gid=users,umask=0002,iocharset=iso8859-1,code=437 0 0

How should it be changed?

Thanks!
 
Old 11-13-2003, 10:18 AM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Try
Code:
/dev/hda5 /windows/D vfat users,uid=lawrencegoodman,gid=users,umask=0002,iocharset=iso8859-1,code=437 0 0
 
Old 11-13-2003, 12:23 PM   #5
lawrencegoodman
Member
 
Registered: Aug 2003
Posts: 47

Original Poster
Rep: Reputation: 15
That seems to have worked. Can't thank you enough. Lawrence
 
  


Reply



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
Changing permissions of FAT32 drive frogrocker Ubuntu 2 12-03-2005 04:51 PM
automounting fat32 drive with correct permissions johannlo Linux - General 1 07-05-2005 08:37 PM
Problem with fat32 drive Fredy71 Linux - General 2 01-30-2005 02:55 PM
problem changing file permissions on fat32 partition coolamit78 Linux - Software 4 01-18-2004 01:44 PM
help im having problems with permissions on my fat32 drive!!! Devboy Linux - Newbie 10 07-29-2003 06:48 PM

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

All times are GMT -5. The time now is 01:11 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