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
<1997>
1998
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
<1997>
1998
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
|