Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 23 Apr 2012 15:24:08 -0500 From: "Joe Shead" Newsgroups: comp.os.linux.development.apps References: <8762ctl9u9.fsf@araminta.anjou.terraraq.org.uk> Subject: Re: fopen() of a read-only file for writing? Date: Mon, 23 Apr 2012 15:24:28 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.2001 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.2001 Message-ID: <97WdnXnZP570JwjSnZ2dnUVZ_t-dnZ2d@earthlink.com> Lines: 60 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.230.120.128 X-Trace: sv3-ASTQ4V5IekUCA9j8pgJA1GVu84iQfQ55ANiU18kJFum+zYYMgz5mtGifWLXjq+f4evArvCvw2LnOk9Y!z1k+KWWbwzHjOqStHSmvCa7CXzPikfDVnl6SQZ9ozVfjbbukyndPxQkOPeZ66vD5pVvfmzMLpNxT!K5qacq73miqjp93Oa57GO9K7Njxri0wzug== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3344 Xref: csiph.com comp.os.linux.development.apps:470 Ok, I changed the mount parameters in fstab from 'defaults' (hey, it was 2003) to: mount -t vfat -o user,exec,suid,rw,uid=1054,gid=269,shortname=mixed /dev/hda8 /data That worked wonders, the user and uid parts being key. I haven't checked whether suid was necessary. Now, I can work directly on the data again, as a normal user. ----- I found CAP_DAC_OVERRIDE -- definitely don't want to go there. Joe "Richard Kettlewell" wrote in message news:8762ctl9u9.fsf@araminta.anjou.terraraq.org.uk... > "Joe Shead" writes: > > So, the library resides on a FAT file system. The FAT file system has space > > in the directory for only one set of permission attributes, and I don't > > think there is any 'owner' of the file. So, when I mount that partition, > > linux has to interpret the FAT directory information in terms of linux file > > system idioms. It assigns an owner and a group to each file, and so what's > > it going to be, but root and root? > > You get to choose. See 'man mount' for details. > > > I've got it all backed up. There's no point in proceding if you don't back > > up your stuff. But, when programming, you still want to know that your > > stable utilities are the same as they are in your archived 'freeze' file. > > When I am done working on a version of the utilities, I zip them up in a > > file with a name like: spUtils01.01.02_20070820_int.zip. That's my last > > freeze, with version number and date in the file name, and in a form that > > will have them automatically order correctly alphanumerically. While working > > on it, daily backups are done in other ways. It's really nice to have each > > stable version boxed up in that zip, though. > > It sounds like you might benefit form a version control system. > > > Richard's and Grant's points------------ > > I couldn't find CAP_DAC_OVERRIDE in my info system, so I went on to other > > things. > > Start from 'man capabilities'. > > -- > http://www.greenend.org.uk/rjk/