EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: NFS vxWorks UMASK
From: [email protected] (Ralph Lange)
To: [email protected] (Marty Kraimer), [email protected] (EPICS Tech-Talk)
Date: Mon, 21 Jul 1997 14:48:40 +0200 (METDST)
Hi Marty,

> At the end of our vwXorks startup files we execute the command:
> 
> dbl > some_file
> 
> If the file is written via ftp it has the protections:
> 
> -rw-r--r--
> 
> I it is written via NFS it is
> 
> -rw-r-----
> 
> Does anyone know how we can make the NFS create the file with:
> 
> -rw-r--r--

I proposed this question to my favourite WRS support engineer and the
official answer is:

[ If you supply a "mode" in the open() call, it will be the file mode -
[ default permissions otherwise.
[ 
[ nfsLib.c : 
[ 
[     createArgs.where.name = fileName;
[ 
[     pSattr = &createArgs.attributes;
[ 
[     if (mode == 0)
[         /* create a file with default permissions */
[         pSattr->mode = NFS_FSTAT_REG | DEFAULT_FILE_PERM;
[     else
[         pSattr->mode = mode;

Ralph

Replies:
Re: NFS vxWorks UMASK Marty Kraimer
References:
NFS vxWorks UMASK Marty Kraimer

Navigate by Date:
Prev: Re: database check in R3.13.0 Ralph Lange
Next: Re: NFS vxWorks Access Rights Ralph Lange
Index: 1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: NFS vxWorks UMASK Marty Kraimer
Next: Re: NFS vxWorks UMASK Marty Kraimer
Index: 1994  1995  1996  <19971998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·