LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Moving files to Windows partition... (http://www.linuxquestions.org/questions/linux-general-1/moving-files-to-windows-partition-27638/)

frkstein 08-10-2002 12:31 PM

Moving files to Windows partition...
 
I store certain types of files in the Windows partition of my dual boot box. For instance, I store my digital photos there because Windows has better drivers for printing photo quality pictures. Now my problem. I can move pictures over to the windows partiition without a problem. I can just login as root. But, my wife doesn't have this privelege. Is there a way that I can make her part of a group that will have priveleges to write to the windows partition?

neo77777 08-10-2002 12:47 PM

in your /etc/fstab add the option
user to windows partition(s), umask=000 (and optionally exec if you want to execute anything that is stored on win partition(s)) to allow all users on your system to mount/umount, read-write, [exec] on windows partitions so it'll look something like this
/dev/hda1 /mount_point vfat user,exec,umask=000 0 0

Config 08-10-2002 12:49 PM

In your /etc/fstab file, you need to change the following:
if your partition is /dev/hda3, the line should look like this:
/dev/hda3 <somewhere> vfat user,rw
You can leave the last two rows as they are. Important is the rw, that stands for read-write access. With the option user, other users can mount the drive without root access.

<edit>
Now you were faster than me Neo :tisk: :p :p :p - I don't like it :D
</edit>

frkstein 08-10-2002 02:46 PM

Thx!!!!
 
It worked!!!! Thanks guys!!!!

Calum 08-10-2002 04:02 PM

just out of interest (and i know how dumb this sounds) but what exactly does the umask bit do? is it a mode type number? (like you know, 777 for full priveleges and so on)

humour me, i'm having a slow day! :)

neo77777 08-10-2002 06:05 PM

Umask actually defines your default permissions when you create files/directories. It substructs octal numbers. For instance, umask=000 is equal to chmod 666 umask=002 is chmod 664.
Quote:

Now you were faster than me Neo - I don't like it
:D :D :D

MasterC 08-11-2002 01:01 AM

I actually asked this a while back, for a massively in depth response, check it out (from linuxcool):
http://www.linuxquestions.org/questi...ighlight=umask

Good reading, and is very cool to know.


All times are GMT -5. The time now is 03:48 PM.