How to stop Ubuntu from asking for your sudo password कैसे अपने sudo पासवर्ड के लिए पूछ रहा से Ubuntu रोकने के लिए

by Sukrit Dhandhania on May 27, 2009 Sukrit Dhandhania द्वारा 27 मई 2009 पर

लिनक्ससुरक्षा

If you use Ubuntu Linux it is quite likely that at some point or another you may have been frustrated at its asking for your password when trying to perform an administrative tasks, such as installing programs or changing system settings. यदि आप Ubuntu Linux का उपयोग काफी संभावना है कि कुछ या किसी अन्य बिंदु पर आप अपने पासवर्ड के लिए पूछ रहा जब तक एक प्रशासनिक कार्य की कोशिश कर रहा, ऐसे प्रोग्राम स्थापित या प्रणाली सेटिंग्स को बदलने के रूप में हो सकता निराश किया गया है. Ubuntu uses the sudo tool to manage administrative rights rather than letting users easily log in as the root user. Ubuntu sudo उपकरण का उपयोग करता है के लिए प्रशासनिक अधिकारों का प्रबंधन के बजाय उपयोगकर्ताओं को आसानी से दे में प्रवेश जड़ उपयोगकर्ता के रूप में. This is actually a good security measure. यह वास्तव में एक अच्छा सुरक्षा उपाय है. However, if you need to perform administrative tasks frequently it can get rather annoying. हालांकि, अगर आप को प्रशासनिक कार्य की आवश्यकता अक्सर इसे प्राप्त कर सकते हैं बल्कि कष्टप्रद. Here's how you can set Ubuntu to not prompt for your password when using sudo . यहाँ है तुम Ubuntu कैसे सेट को तुरंत अपना पासवर्ड के लिए जब sudo का उपयोग नहीं कर सकते.

Note: this is something that is not recommended if you are using your computer in a public place or at your work, as this will compromise the security of your data. नोट: इस बात की सिफारिश की है कि यदि आप किसी सार्वजनिक स्थान में आपके कंप्यूटर का उपयोग कर रहे हैं या अपने काम पर नहीं है क्योंकि यह आपके डेटा की सुरक्षा समझौता करेंगे. You're better off setting this at your home desktop where you are likely to trust more people. तुम दूर हो बेहतर अपने घर डेस्कटॉप पर इस सेटिंग जहाँ आप और अधिक लोगों को विश्वास होने की संभावना है.

Launch a terminal window and enter the following command: एक टर्मिनल विंडो लांच और निम्न कमांड दर्ज करें:

# sudo visudo # Visudo sudo

Visudo is a tool used to edit the configuration file of sudo . Visudo को sudo के विन्यास फाइल को संपादित किया उपकरण है. The command will prompt your for your password. कमांड आपके पासवर्ड के लिए संकेत होगा. Enter it one last time. यह एक आखिरी बार दर्ज करें. The configuration file will open in a text editor, most likely Nano . विन्यास फाइल एक पाठ संपादक में खोलने के सबसे नैनो की संभावना है. Scroll down to the end of the document and add the following line: दस्तावेज़ के अंत तक नीचे स्क्रॉल करें और निम्नलिखित पंक्ति जोड़ें:

username ALL=NOPASSWD: ALL उपयोगकर्ता नाम सभी NOPASSWD =: सभी

Replace username with the username of the user you want to allow a passwordless sudo. उपयोगकर्ता आप एक passwordless sudo अनुमति देना चाहते हैं के उपयोगकर्ता नाम के साथ उपयोगकर्ता नाम बदलें. So if the user is calvin , you would enter: इसलिए यदि उपयोगकर्ता केल्विन है, तो आप प्रविष्ट कर दें:

calvin ALL=NOPASSWD: ALL केल्विन सभी NOPASSWD =: सभी

Save and exit the file. फ़ाइल सहेजें और बाहर निकलें. Log out, log in as the user calvin and test out your new passwordless sudo. लॉग आउट, में प्रवेश के रूप में उपयोगकर्ता केल्विन और अपना नया passwordless sudo बाहर परीक्षा.

Related Posts: संबंधित पोस्ट:
  • An introduction to the sudo command and configuration file Sudo कमांड और विन्यास के लिए एक परिचय संचिका
  • How to enable the root user account in Ubuntu Linux कैसे Ubuntu Linux में जड़ उपयोगकर्ता खाते में सक्षम करने के लिए
  • How to change the default web browser in Ubuntu कैसे Ubuntu में डिफ़ॉल्ट वेब ब्राउज़र में बदलने के लिए
  • How to increase the screen resolutions available to Ubuntu while running in Parallels for OS X कैसे स्क्रीन Ubuntu के लिए उपलब्ध संकल्प करते हुए ओएस एक्स के लिए समानताएं में चल बढ़ाने के लिए
  • How to install, setup and use Avant Window Navigator (Awn) in Ubuntu Feisty कैसे स्थापित करें, के लिए सेटअप और Ubuntu Feisty में Avant विंडो नेविगेटर (Awn) का उपयोग करें
  • Get Simple Help tutorials just like this one in your email inbox every day - for free! बस अपने ईमेल इनबॉक्स के लिए मुफ्त हर दिन - में यह एक तरह सरल सहायता ट्यूटोरियल जाओ! Just enter your email address below: बस नीचे अपना ईमेल पता दर्ज करें:

    You can always opt out of this email subscription at any time. तुम हमेशा इस ईमेल सदस्यता से बाहर किसी भी समय विकल्प चुन सकते हैं.

    { 2 trackbacks } (2) trackbacks

    Ubuntu won't ask for your sudo password anymore - Karol Zielinski's Blog Ubuntu अपने sudo पासवर्ड के लिए अब और नहीं पूछ - करोल है Zielinski ब्लॉग जाएगा
    05.28.09 at 2:45 am 2:45 पर 05.28.09 हूँ
    Ubuntu won't ask for your sudo password anymore Ubuntu अपने sudo पासवर्ड के लिए अब और नहीं पूछूँगा
    08.17.09 at 1:57 pm 1:57 पर 08.17.09

    { 6 comments… read them below or (6 टिप्पणियाँ ... उन्हें या नीचे पढ़ें add one एक जोड़ } )

    1 1 Michael 05.27.09 at 7:28 am 7:28 पर माइकल 05.27.09 हूँ

    Talk about circumventing security! सुरक्षा circumventing के बारे में बात करो!
    Why not just run: क्यों नहीं, बस चला:

    sudo su र sudo

    in a terminal and do your root command tasks there. एक टर्मिनल में और अपने रूट कमांड वहाँ काम करते हैं. That way: इस तरह से:
    1) You don't have to sudo each command. 1) तुम एक कमांड sudo नहीं है.
    2) You only enter your password once. 2) आप केवल एक बार अपना पासवर्ड दर्ज करें.

    2 2 LinuxLover 05.27.09 at 11:10 am 11:10 पर LinuxLover 05.27.09 हूँ

    This is about as boneheaded as running Vista with no security software at all. इस बारे में सभी के रूप में कोई सुरक्षा सॉफ्टवेयर के साथ Vista चलाने के रूप में boneheaded है. Why on Earth would you want to do this? पृथ्वी पर क्यों आप ऐसा करना चाहेंगे?

    Personally, I'm not a fan of Sudo, because using ones own user password just isn't secure, IMO. निजी तौर पर, मैं Sudo के एक प्रशंसक है, क्योंकि लोगों का उपयोग कर अपने प्रयोक्ता कूटशब्द बस, IMO सुरक्षित नहीं है नहीं हूँ. I just use a different distro that doesn't use Sudo by default. मैं बस एक अलग distro का उपयोग करें कि Sudo डिफ़ॉल्ट रूप से उपयोग नहीं करता है.

    3 3 Mihc 05.27.09 at 2:02 pm 2:02 पर Mihc 05.27.09

    You might as well run windows आप के रूप में अच्छी तरह से Windows चला सकते हैं

    4 4 gyffes 05.27.09 at 5:48 pm 5:48 पर gyffes 05.27.09

    While there's no way this is as dangerous as running Windows unpatched and without a latex suit, I gotta concur with the others: this seems a silly thing to be compromising. जबकि वहाँ कोई रास्ता नहीं इस खतरनाक के रूप में चलाने unpatched Windows और लेटेक्स सूट के बिना के रूप में है, मैं अन्य लोगों के साथ सहमत: होगा, क्या यह एक मूर्खतापूर्ण बात लगता है समझौता हो. Especially since, as LL noted, above, Sudo already is a bit weak, security-wise. के बाद से विशेष रूप से, जैसा कि ऊपर उल्लेख किया ll, Sudo पहले से ही एक कमजोर सा, सुरक्षा के लिहाज से है. I understand the idea of having no Root account enabled for to be stumbled 'pon, but if someone is far enough into my system that they're typing terminal commands, aren't they likely to have my sudo pwd? मैं कोई रूट खाता रखने के विचार को समझने के लिए सक्षम 'ठोकर खाई pon, लेकिन अगर किसी ने अब तक काफी है मेरे प्रणाली में है कि वे टर्मिनल कमांड टाइप कर रहे हैं, वे मेरे sudo है की संभावना नहीं पीडब्ल्यूडी?

    Anyway, it's not like sudo blah blah is so hard to type. वैसे भी, यह sudo ब्ला ब्ला इतना प्रकार कठिन है पसंद नहीं है. Further, I've noticed that the system doesn't ask for the password again if the sudo commands are issued close enough together (say, sudo apt-get update [lots of processing....] sudo apt-get upgrade… [ditto...] whatever next. इसके अलावा, मैंने पाया है कि प्रणाली फिर अगर sudo कमांड पास पर्याप्त जारी एक साथ हैं पासवर्ड के लिए पूछने की नहीं है (कहते हैं, उपयुक्त sudo-अद्यतन मिल [प्रसंस्करण ....] sudo उपयुक्त बहुत-उन्नयन मिल ... [ ठीक इसी तरह से ...] जो अगले.

    5 5 Ross McKillop रॉस McKillop 05.27.09 at 5:58 pm 5:58 पर 05.27.09

    To those who question the wisdom of this – जो इस ज्ञान के प्रश्न --

    You're absolutely right, under some circumstances. आप बिल्कुल सही हो, कुछ परिस्थितियों में.

    I ran Slackware (and only Slackware) from '94 to '99. मैं Slackware गई (और केवल Slackware) से '94 के लिए 99. I ALWAYS had a root terminal open, usually several. मैं एक खुली जड़ टर्मिनल, आम तौर पर कई हमेशा. I would blindly issue commands not being aware of which terminal I was in. Smart? मुझे आँख बंद करके जो हुक्म के बारे में पता नहीं किया जा रहा मुद्दे टर्मिनल मैं अंदर स्मार्ट गया है? Maybe not. शायद नहीं. But not once did I do anything harmful to the system by mistake etc. लेकिन एक बार मैंने गलती से प्रणाली के लिए हानिकारक कुछ भी कर आदि

    Not everyone should follow the steps in this tutorial and disable the sudo password. हर कोई इस ट्यूटोरियल और अक्षम sudo पासवर्ड में चरणों का पालन करना चाहिए. But for those that want to know how , the info is provided. लेकिन उन लोगों को पता है कि कैसे, जानकारी प्रदान की जाती है चाहता हूँ के लिए.

    As Sukrit mentioned, this isn't something you'd want to do on a computer at work or anywhere that other people can use it. Sukrit के रूप में उल्लेख किया है, यह तुम्हें कुछ काम से कम एक कंप्यूटर या कहीं पर करना चाहता था कि दूसरे लोग इसे इस्तेमाल कर सकते हैं नहीं है. But for a home desktop behind a firewall, for someone who knows what they're doing, it can be very useful and time saving. लेकिन एक फ़ायरवॉल के पीछे एक घर डेस्कटॉप के लिए, कोई है जो जानता है कि वे क्या कर रहे हो के लिए, यह बहुत उपयोगी हो सकता है और समय की बचत.

    6 6 nanohead 07.26.09 at 11:13 am 11:13 पर 07.26.09 nanohead हूँ

    Its good to have this info out there. इसके अच्छे वहाँ इस जानकारी है. I do lots of admin tasks and some development on Ubuntu and this thing makes me crazy. मैं व्यवस्थापक कार्यों और Ubuntu पर कुछ विकास और इस बात की बहुत सारी करना मुझे पागल बना देती है.

    Also, I guess you all watch to much 24 or something. इसके अलावा, मुझे लगता है कि तुम सब कुछ 24 या कुछ और देखना. The totally overblown computer security crazies have convinced otherwise sane people that there is some kind of a threat without 100s of security processes on their personal computers. पूरी तरह से हद से ज़्यादा कंप्यूटर सुरक्षा crazies अन्यथा समझदार लोगों को आश्वस्त किया है कि वहाँ अपने निजी कंप्यूटर पर कुछ एक खतरे की सुरक्षा प्रक्रियाओं के 100s बिना किसी तरह का है.

    Leave a Comment एक टिप्पणी छोड़ दो

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> आप ये HTML टैग और विशेषताएँ: <a href="" उपयोग title=""> <abbr title=""> <acronym कर सकते हैं <blockquote title=""> <b> cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>