Sshfs के साथ -o allow_other का उपयोग करने में असमर्थ (विकल्प fuse.conf में सक्षम)


20

मेरी /etc/fuse.confफाइल पर निम्नलिखित है :

# Set the maximum number of FUSE mounts allowed to non-root users.                       
# The default is 1000.                                                                   
#                                                                                        
#mount_max = 1000                                                                        

# Allow non-root users to specify the 'allow_other' or 'allow_root'                      
# mount options.                                                                         
#                                                                                        
user_allow_other    

लेकिन जब मैं विकल्प के साथ एक दूरस्थ पथ को माउंट करने का प्रयास करता हूं allow_other:

> sshfs name@server:/remote/path /local/path -o allow_other

मुझे मिला:

fusermount: failed to open /etc/fuse.conf: Permission denied
fusermount: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf

मेरे पास ट्रिपल चेक किया गया है और विकल्प user_allow_otherमेरे में अपूर्ण है fuse.conf, जैसा कि मैंने ऊपर कॉपी किया था।

मैंने भी निष्पादित किया है sudo adduser my_user_name fuse(सुनिश्चित नहीं है कि अगर यह आवश्यक है), लेकिन मुझे अभी भी वही समस्या है।

यह /etc/fuse.confफ़ाइल को सही ढंग से पार्स क्यों नहीं कर रहा है?

जवाबों:


22

एक बेहतर समाधान उपयोगकर्ता को फ्यूज समूह में जोड़ने का हो सकता है , अर्थात:

addgroup <username> fuse

5
फिर लॉग आउट करें और वापस लॉग इन करें!
— एचडीवी

1
और द्वितीयक समूह के रूप में फ्यूज करने के लिए मौजूदा उपयोगकर्ता को जोड़ें: usermod -a -G existing_user fuse# अगर addgroupआपके सिस्टम में मौजूद नहीं है
— ग्रेज़गोरज़ वियोरोज़ीकी

हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.