linux - Why can I remove file without user permission? -


मैंने अनुमतियों की जांच करने के लिए छोटे परीक्षण किया:

  test @ comp ~ / documents $ स्पर्श test1 test @ comp ~ / documents $ ls -l-rw-r - r-- 1 टेस्ट परीक्षण 0 जुलाई 24 22:14 test1 test @ comp ~ / दस्तावेज $ chmod 044 test1 test @ comp ~ / documents $ ls -l ---- r - r-- 1 टेस्ट परीक्षा 0 जुलाई 24 22:14 test1 test @ comp ~ / दस्तावेज $ cat test1 बिल्ली: test1: अनुमति अस्वीकृत @ COMP ~ / दस्तावेज $ rm test1 rm: लिखने को हटा दें -सुरक्षित नियमित रूप से खाली फ़ाइल "test1" Y प्रश्न @ COMP ~ / दस्तावेज़ $ ls -l कुल 0   

मेरा प्रश्न यह है, क्यों जब मुझे उपयोगकर्ता पर कोई अनुमति नहीं है तो मैं फाइल नहीं पढ़ सकता, लेकिन मैं इसे निकाल सकता हूं? लिखें

फाइल को हटाने के लिए लिखने पर अनुमति निर्देशिका में है जो इस फ़ाइल को शामिल करता है। अधिक जानकारी के लिए:

Comments

Popular posts from this blog

Delphi: missing interface declarations for UI Automation methods -

php - how to change mysql_result($res, 0, "url"); to mysqli -

android - How to attach an image from an app to gmail -