[Tfug] How do you remove a file from a USB vfat - in c

Robert Hunter hunter at tfug.org
Fri Nov 9 06:51:40 MST 2007


On Nov 8, 2007 1:35 PM, jblais <joe.blais at pti-instruments.com> wrote:
> No error,
> It did seem to work when I was running everything as root
> Then to run as a kiosk  (/home/user/.gnome2/session file and
> /etc/gdm/options.conf do the trick) I need to run as user, but to access IO
> and mount USB and open serial ports, I need some apps to be owned by root
> though they are run by a user. When these guys create files and such, they
> are owned by root, so I do a bunch of chown/fchown to fix that, then....

You should be able to specify uid/gid as mount options;  That should
fix problems with permissions.

>
> But the file does at times seem to be gone, and they are definitely nuked to
> 0 length.  I'm checking on my unmount not to see that the force unmount
> isn't the problem.

That is truly odd.

>
> Anyway, it looks slick powering up and just going into a full screen app
> with no login or anything, and when it shuts down, no desktop for users to
> mess with (the script just has a loop to restart the app if anything does go
> south)

Sweet!

-- 
RH




More information about the tfug mailing list