diff --git a/setup.py b/setup.py
index 55c2660..b2008ee 100644
--- a/setup.py
+++ b/setup.py
@@ -15,6 +15,7 @@
 # limitations under the License.
 
 import sys
+import os
 
 from setuptools import find_packages
 from setuptools import setup
@@ -42,7 +43,7 @@ classifiers = [
     'Operating System :: Unix',
 ]
 
-if sys.platform == 'win32':
+if not os.access('/etc', os.W_OK) or sys.platform == 'win32':
     data_files = [('etc/ryu', ['etc/ryu/ryu.conf'])]
 else:
     data_files = [('/etc/ryu', ['etc/ryu/ryu.conf'])]
