LinuxQuestions.org
Review your favorite Linux distribution.
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, 10: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, 11:17 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
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, 11: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, 11:18 AM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
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, 01: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


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


All times are GMT -5. The time now is 04:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration