कुछ सिस्टम उपयोगकर्ताओं के पास उनके शैल के रूप में / usr / bin / false क्यों है?

विषयसूची:

कुछ सिस्टम उपयोगकर्ताओं के पास उनके शैल के रूप में / usr / bin / false क्यों है?
कुछ सिस्टम उपयोगकर्ताओं के पास उनके शैल के रूप में / usr / bin / false क्यों है?

वीडियो: कुछ सिस्टम उपयोगकर्ताओं के पास उनके शैल के रूप में / usr / bin / false क्यों है?

वीडियो: कुछ सिस्टम उपयोगकर्ताओं के पास उनके शैल के रूप में / usr / bin / false क्यों है?
वीडियो: UNITY PLEASE STOP | How to Fix Coil Whine in the Editor - YouTube 2024, अप्रैल
Anonim
एक बार जब आप एक लिनक्स सिस्टम में खोदना शुरू कर देते हैं, तो आपको कुछ भ्रमित या अप्रत्याशित चीजें मिल सकती हैं, जैसे / usr / bin / false, उदाहरण के लिए। यह क्यों है और इसका उद्देश्य क्या है? आज के सुपर यूज़र क्यू एंड ए पोस्ट में एक जिज्ञासु पाठक के सवालों का जवाब है।
एक बार जब आप एक लिनक्स सिस्टम में खोदना शुरू कर देते हैं, तो आपको कुछ भ्रमित या अप्रत्याशित चीजें मिल सकती हैं, जैसे / usr / bin / false, उदाहरण के लिए। यह क्यों है और इसका उद्देश्य क्या है? आज के सुपर यूज़र क्यू एंड ए पोस्ट में एक जिज्ञासु पाठक के सवालों का जवाब है।

आज का प्रश्न और उत्तर सत्र हमारे पास सुपरयूसर की सौजन्य है - स्टैक एक्सचेंज का एक उपविभाग, क्यू एंड ए वेब साइट्स का एक समुदाय संचालित समूह।

प्रश्न

सुपर यूज़र रीडर उपयोगकर्ता 7326333 जानना चाहता है कि कुछ सिस्टम उपयोगकर्ताओं के पास उनके खोल के रूप में / usr / bin / false क्यों है:

Why do some system users have /usr/bin/false as their shell? What does that mean?

कुछ सिस्टम उपयोगकर्ताओं के पास उनके खोल के रूप में / usr / bin / false क्यों है?

उत्तर

सुपरयूसर योगदानकर्ता duDE, टोबी स्पीइट, और bbaassssiiee हमारे लिए जवाब है। सबसे पहले, duDE:

This helps to prevent users from logging onto a system. Sometimes you need a user account for a specific task. Nevertheless, no one should be able to interact with this account on the computer. These are, on one hand, system user accounts. On the other hand, this is an account for which FTP or POP3 access is possible, but just no direct shell login.

If you look more closely at the /etc/passwd file, you will find the /bin/false command as a login shell for many system accounts. Actually, false is not a shell, but a command that does nothing and then also ends with a status code that signals an error. The result is simple. The user logs in and immediately sees the login prompt again.

टोबी स्पीइट से जवाब का पालन किया:

These users exist to be the owner of specific files or processes and are not intended to be login accounts. If the value of the “shell” field is not listed in /etc/shells, then programs such as FTP daemons do not allow access. Additionally, for programs that do not check /etc/shells, they make use of the fact that /bin/false will immediately return and deny an interactive shell.

और bbaassssiiee से हमारा अंतिम जवाब:

Some users have /usr/bin/false, others have /sbin/nologin, or they may even have /usr/bin/passwd. They can either be system users that are needed to isolate program permissions or human users of programs that use the password files for authentication.

स्पष्टीकरण में जोड़ने के लिए कुछ है? टिप्पणियों में विचार व्यक्त करो। अन्य तकनीक-समझदार स्टैक एक्सचेंज उपयोगकर्ताओं से अधिक उत्तरों पढ़ना चाहते हैं? यहां पूर्ण चर्चा धागा देखें।

छवि क्रेडिट: ओपनस्टैक डॉक्स (ओपनस्टैक प्रोजेक्ट)

सिफारिश की: