Εάν χρησιμοποιείτε Ubuntu Linux είναι αρκετά πιθανό ότι σε κάποιο βαθμό ή άλλο που μπορεί να είχατε ματαιωθεί στη ζήτησή της τον κωδικό πρόσβασής σας κατά την προσπάθεια να εκτελεσθούν οι διοικητικοί στόχοι, όπως η εγκατάσταση των προγραμμάτων ή η αλλαγή των τοποθετήσεων συστημάτων. Το Ubuntu χρησιμοποιεί sudo εργαλείο για να διαχειριστεί τα διοικητικά δικαιώματα που αφήνουν παρά τη σύνδεση χρηστών εύκολα ως ρίζα χρήστης. Αυτό είναι πραγματικά ένα καλό μέτρο ασφάλειας. Εντούτοις, εάν πρέπει να εκτελέσετε τους διοικητικούς στόχους συχνά μπορεί να πάρει τη μάλλον ενόχληση. Εδώ είναι πώς εσείς μπορεί να θέσει Ubuntu μη σε γρήγορο για τον κωδικό πρόσβασής σας κατά το χρησιμοποίηση sudo.
Σημείωση: αυτό είναι κάτι που δεν συστήνεται εάν χρησιμοποιείτε τον υπολογιστή σας σε μια δημόσια θέση ή στην εργασία σας, δεδομένου ότι αυτό θα συμβιβάσει την ασφάλεια των στοιχείων σας. Είστε καλύτεροι θέτοντας αυτό στον εγχώριο υπολογιστή γραφείου σας όπου είναι πιθανό να εμπιστευθείτε περισσότερους ανθρώπους.
Προωθήστε ένα τελικό παράθυρο και εισάγετε την ακόλουθη εντολή:
# visudo sudo
Visudo ένα εργαλείο που χρησιμοποιείται για να εκδώσει το αρχείο διαμόρφωσης sudo . Η εντολή θα προτρέψει το σας για τον κωδικό πρόσβασής σας. Εισάγετε το ένα την τελευταία φορά. Το αρχείο διαμόρφωσης θα ανοίξει σε έναν συντάκτη κειμένων, πιθανότατα Νανο. Ο κύλινδρος κάτω στο τέλος του εγγράφου και προσθέτει την ακόλουθη γραμμή:
όνομα χρήστη ALL=NOPASSWD: ΟΛΟΙ
Αντικαταστήστε όνομα χρήστη με το όνομα χρήστη του χρήστη θέλετε να επιτρέψετε ένα passwordless sudo. Έτσι εάν ο χρήστης είναι calvin, θα εισάγατε:
calvin ALL=NOPASSWD: ΟΛΟΙ
Εκτός από και βγείτε το αρχείο. Κούτσουρο έξω, σύνδεση ως χρήστη calvin και εξετάστε το νέο passwordless sudo σας.























{ 1 trackback }
{ 5 comments… read them below or add one }
Talk about circumventing security!
Why not just run:
sudo su
in a terminal and do your root command tasks there. That way:
1) You don’t have to sudo each command.
2) You only enter your password once.
This is about as boneheaded as running Vista with no security software at all. 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. I just use a different distro that doesn’t use Sudo by default.
You might as well run windows
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. Especially since, as LL noted, above, Sudo already is a bit weak, security-wise. 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?
Anyway, it’s not like sudo blah blah is so hard to type. 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.
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. 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. 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. But for a home desktop behind a firewall, for someone who knows what they’re doing, it can be very useful and time saving.
Leave a Comment