Re: [Freedos-user] Trouble setting up dosemu
I added ,gid=1000 in the fstab umounted re:mounted. now group is root, user is john, but I still cannot write to this fs. On 05/12/2013 06:44 AM, Eric Auer wrote: > Hi! > >> I tried to chown while it was mounted and the response was "operation >> not permitted". that is why I did it umounted. can I incorporate the >> -o uid=john into the fstab, as I am not performing a separate mount >> command., or should I not mount it all in fstab, but use "unix mount >> etc." in my autoexec.bat? > Yes you can do that in fstab: Put the options in the column which > usually says "defaults". For example a floppy drive can have: > > /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,nosuid,nodev 0 0 > > That means autodetect filesystem type (e.g. vfat) and use options > rw,user,noauto,exec,nosuid,nodev so let all users who have access > to the /dev/fd0 device mount it without needing sudo, disable all > device-files or suid-files on floppy (security risk) but allow > executables, do not automatically mount, mount for read and write. > > Another example: > > /dev/sda9 /mnt/e vfat defaults,utf8,umask=007,gid=1000,noexec 0 1 > > This assumes that john has user ID 1000, check by running "id" ;-) > > Eric > > > > -- > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > ___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user > > -- Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Trouble setting up dosemu
Hi! > I tried to chown while it was mounted and the response was "operation > not permitted". that is why I did it umounted. can I incorporate the > -o uid=john into the fstab, as I am not performing a separate mount > command., or should I not mount it all in fstab, but use "unix mount > etc." in my autoexec.bat? Yes you can do that in fstab: Put the options in the column which usually says "defaults". For example a floppy drive can have: /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,nosuid,nodev 0 0 That means autodetect filesystem type (e.g. vfat) and use options rw,user,noauto,exec,nosuid,nodev so let all users who have access to the /dev/fd0 device mount it without needing sudo, disable all device-files or suid-files on floppy (security risk) but allow executables, do not automatically mount, mount for read and write. Another example: /dev/sda9 /mnt/e vfat defaults,utf8,umask=007,gid=1000,noexec 0 1 This assumes that john has user ID 1000, check by running "id" ;-) Eric -- Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Trouble setting up dosemu
I tried to chown while it was mounted and the response was "operation not permitted". that is why I did it umounted. can I incorporate the -o uid=john into the fstab, as I am not performing a separate mount command., or should I not mount it all in fstab, but use "unix mount etc." in my autoexec.bat? On 05/12/2013 05:16 AM, Eric Auer wrote: > Hi! > > If you mount something to a directory, it shows up there > instead of the directory. This is why chown *before* the > mount has no effect. You could chown *after* the mount, > or use the -o uid=john option for mount. Mount also has > many other options, but avoid making things too complex. > > Eric > >> I sudo umount /dev/sda9, then sudo chown john:john /mnt/e >> verify that is now john:john >> then, . . . I sudo mount /dev/sda9 /mnt/e >> and look at e with dir and its now root:root > > -- > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > ___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user > > -- Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Trouble setting up dosemu
Hi! If you mount something to a directory, it shows up there instead of the directory. This is why chown *before* the mount has no effect. You could chown *after* the mount, or use the -o uid=john option for mount. Mount also has many other options, but avoid making things too complex. Eric > I sudo umount /dev/sda9, then sudo chown john:john /mnt/e > verify that is now john:john > then, . . . I sudo mount /dev/sda9 /mnt/e > and look at e with dir and its now root:root -- Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
[Freedos-user] Trouble setting up dosemu
I am attempting to mount a fat32 partition (4.xGB) to /mnt/e e is my "e:" drive (in autoexec.bat, I lredir e: linux\fs\mnt\e). I cannot write to it from dos. I found that the directory e is owned by john:john (me) why I have my own group, I don't know. I sudo umount /dev/sda9, then sudo chown john:john /mnt/e verify that is now john:john then, . . . I sudo mount /dev/sda9 /mnt/e and look at e with dir and its now root:root help! John -- Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user