Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.apps > #470
| From | "Joe Shead" <Joe@SheadProgramming.com> |
|---|---|
| Newsgroups | comp.os.linux.development.apps |
| References | <s5KdnY85luiJChHSnZ2dnUVZ_uGdnZ2d@earthlink.com><jmiu3v$is7$1@speranza.aioe.org><LaydnQXV_ti8FBLSnZ2dnUVZ_qmdnZ2d@earthlink.com><mN-dnT01Ved8ZwzSnZ2dnUVZ_tGdnZ2d@earthlink.com> <8762ctl9u9.fsf@araminta.anjou.terraraq.org.uk> |
| Subject | Re: fopen() of a read-only file for writing? |
| Date | 2012-04-23 15:24 -0600 |
| Message-ID | <97WdnXnZP570JwjSnZ2dnUVZ_t-dnZ2d@earthlink.com> (permalink) |
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" <rjk@greenend.org.uk> wrote in message
news:8762ctl9u9.fsf@araminta.anjou.terraraq.org.uk...
> "Joe Shead" <Joe@SheadProgramming.com> 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/
Back to comp.os.linux.development.apps | Previous | Next — Previous in thread | Find similar
fopen() of a read-only file for writing? "Joe Shead" <Joe@SheadProgramming.com> - 2012-04-16 17:03 -0600
Re: fopen() of a read-only file for writing? pacman@kosh.dhis.org (Alan Curry) - 2012-04-17 05:12 +0000
Re: fopen() of a read-only file for writing? "Joe Shead" <Joe@SheadProgramming.com> - 2012-04-17 01:36 -0600
Re: fopen() of a read-only file for writing? "Joe Shead" <Joe@SheadProgramming.com> - 2012-04-18 22:40 -0600
Re: fopen() of a read-only file for writing? Richard Kettlewell <rjk@greenend.org.uk> - 2012-04-19 08:57 +0100
Re: fopen() of a read-only file for writing? Rainer Weikusat <rweikusat@mssgmbh.com> - 2012-04-19 14:18 +0100
Re: fopen() of a read-only file for writing? Grant Edwards <invalid@invalid.invalid> - 2012-04-19 14:16 +0000
Re: fopen() of a read-only file for writing? "Joe Shead" <Joe@SheadProgramming.com> - 2012-04-20 19:10 -0600
Re: fopen() of a read-only file for writing? Richard Kettlewell <rjk@greenend.org.uk> - 2012-04-21 10:20 +0100
Re: fopen() of a read-only file for writing? "Joe Shead" <Joe@SheadProgramming.com> - 2012-04-22 00:07 -0600
Re: fopen() of a read-only file for writing? "Joe Shead" <Joe@SheadProgramming.com> - 2012-04-23 15:24 -0600
csiph-web