LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-06-2004, 04:31 PM   #1
nagromo
Member
 
Registered: Mar 2004
Location: Minnesota, USA
Distribution: Debian, Mepis
Posts: 65

Rep: Reputation: 15
Permissions and partitions


I just created a FAT32 partition in Windows, copied the contents of /home into it as root, and added the line

/dev/hda2 /home vfat user 0 0

into /etc/fstab. When I log in as root (or in Windows), I can read and modify the data just fine, but when I try to log into xfce as a regular user, it says 'Error: unable to open /home/morgan/.xfce4: permission denied.' Since FAT doesn't have file permissions and I set the user option, how can I let regular users read and write the contents?

Any suggestions are appreciated.
 
Old 09-06-2004, 05:57 PM   #2
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
You mount a vfat partition as your home directory? An interesting arrangement -- not the most secure one, but interesting nevertheless. Try this fstab line:

/dev/hda2 /home vfat user,quiet,umask=0 0 0
 
Old 09-07-2004, 08:41 PM   #3
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
you usually want to mount foreign partitions in a mount directory. mounting an external device to your home partition is bound to lead to problems because there are a lot of hidden settings there that get masked when you do something like that.

Code:
su -c "mkdir -p /mnt/windows"
the add a line to fstab

/dev/hda2 /mnt/windows vfat rw,user,umask=0222 0 0

whenever you want to access your windows files, do

Code:
mount /mnt/windows
as a regular user. leave managing the home directory up to GNU/Linux.

you can even put a link to your windows files in your home directory

Code:
ln -s /home/<username>/windows /mnt/windows

Last edited by zero79; 09-07-2004 at 08:55 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
Windows Partitions Permissions Acidx Linux - Newbie 2 10-14-2005 02:12 PM
partitions and permissions muddywaters Linux - Newbie 1 08-29-2005 03:53 PM
permissions for windows partitions hhegab Mandriva 2 01-20-2005 08:13 PM
Permissions problems for another partitions erickFis Slackware 2 02-21-2004 03:28 AM
How to allow write permissions to mounted partitions? PenguinPelt Linux - Security 1 09-24-2002 12:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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