# Data directory write privilege on different storage

**URL:** <https://forums.foundationdb.org/t/data-directory-write-privilege-on-different-storage/2733>\
**Category:** Running FoundationDB\
**Created:** [June 7, 2021, 1:14pm UTC](https://forums.foundationdb.org/t/data-directory-write-privilege-on-different-storage/2733 "2021-06-07T13:14:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tangerine](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/tangerine/32/1084_2.png) [@tangerine](https://forums.foundationdb.org/u/tangerine)\
**Post date:** [June 7, 2021, 1:14pm UTC](https://forums.foundationdb.org/t/data-directory-write-privilege-on-different-storage/2733/1 "2021-06-07T13:14:18Z")

</div>

Hi,  
I have two storageclass in my ocp.  
I have a dynamic nfs storageclass and a local disk storageclass.  
When I use the same deployment file with the same securityContext, I can write to the data dir on the NFS one but cannot touch on the local disk one. I have tried readOnlyRootFilesystem to false but still cannot get the local disk storageclass to be writeable but no such issue with my nfs one. So, what could I have been missing?
