perms on file linux redhat 9 filepro 5.0
Bill Vermillion
fp at wjv.com
Tue Jun 8 07:10:47 PDT 2004
On Tue, Jun 08, 2004 at 09:56:58AM -0400, Fairlight thus spoke:
> Simon--er, no...it was Rick Henderson--said:
> > open is creating a file with 600 owned by filepro. I need this file to
> > be readable by everyone.
> > pfumask seems not to apply and using the system "chmod
> > 644"<_filename does not work either.
> Because the version of bash you have executes system commands
> as the UID, not EUID. You can't change perms on what you don't
> own.
> Look into sudo, or replace bash with ksh like Brian likes to
> advise. I would go for sudo, myself..
Since the real KSH is now available with no strings attached using
the real KSH is probably better than the pdksh that is so often
used.
And most current good shells won't let you change what you don't
own. You can take files but you can't put them, and copying
removes execute privledges.
That's as it should be to keep things secure.
--
Bill Vermillion - bv @ wjv . com
More information about the Filepro-list
mailing list