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 05-04-2006, 02:46 PM   #1
windycity_linux
Member
 
Registered: Mar 2006
Distribution: rhel 5
Posts: 74

Rep: Reputation: 15
vfat partition & user log in problem


I just repartition my laptop HD with PartitionMagic and dual booting with WinXP and RedHat ES 4.0. What I want to do is create a "/" "root" partition with 29GB, a swap partition 1GB and 3GB vfat partition so I can share file between the OS. What is the best way to partition with VFAT file system? (ie. the mount point). I tried select "/tmp" or "/home" or /usr as the mount point but Disk Druid did not allow me to do so with the following error message "the mount point must be on linux file system".

so I selected "/home/mahal" as the mount point for vfat partition and later created user mahal but when I try to log in as user "mahal" the system automatically logs me out immidiately due to some permission problem. I can log in as root without any problem. So what am i doing wrong here? what are the restriction on vfat partition mount point?

thanks for your help.
 
Old 05-04-2006, 03:18 PM   #2
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
it's not a good idea to create the home directory of a user as a vfat partition. It is better just to mount it under /mnt/fat and allow rw access to this drive to users (or a specific user). If you really really want the home directory a vfat partition you can still do it, you just need to set the permissions correctly.

to create a mount point for vfat with rw access:
Code:
#mkdir /mnt/fat
#chown /mnt/fat mahal
then in /etc/fstab add:
Code:
/dev/hda<x>  /mnt/fat   vfat   users,defaults,umask=000   0 0
where <x> is the correct partition #. This will give all users rw access to the drive, if you want to limit access to just a single user, you need to set the umask permissions appropriately.

You can then mount the drive with 'mount /mnt/fat'. This will also be automaticly mounted at boot. To make home directory for hamal (not recommended) then change /mnt/fat to /home/hamal.

regards,
...drkstr

**edit**
if you do make the vfat the home dir, I strongly recomend changing the umask permissions to not allow access to the entier "users" group and restrict it the that single user: umask=077

note: umask permissions are the oposite of regular octal permissions, think of it like 777 - <permissions you want set>
**edit**

Last edited by drkstr; 05-04-2006 at 03:38 PM.
 
  


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
vfat partition user permissions trawler Linux - General 3 10-25-2005 07:34 AM
automount vfat partition with rw access for any user Simon Bridge Red Hat 12 05-26-2005 09:37 AM
user/local files for vfat partition anjanesh Fedora 2 11-12-2004 10:32 PM
Can't write to vfat partition as user sigma957 Slackware 6 07-29-2004 09:58 AM
user can't read/write (vfat) partition MykilX Slackware 6 07-04-2003 06:32 PM


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