LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Permissions and partitions (https://www.linuxquestions.org/questions/debian-26/permissions-and-partitions-227419/)

nagromo 09-06-2004 04:31 PM

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.

Dead Parrot 09-06-2004 05:57 PM

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

zero79 09-07-2004 08:41 PM

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


All times are GMT -5. The time now is 05:57 AM.