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. Ja Jūs lietojat Ubuntu Linux ir diezgan iespējams, ka kādā brīdī vai citu Jums varētu būt neapmierināts tā lūdz savu paroli, kad mēģināt veikt administratīvus uzdevumus, piemēram, instalēšanas programmas vai mainot sistēmas uzstādījumus. Ubuntu uses the sudo tool to manage administrative rights rather than letting users easily log in as the root user. Ubuntu izmanto sudo instruments, lai pārvaldītu administratīvās tiesības, nevis ļaujot lietotājiem ērti pieteiktos kā root lietotājam. This is actually a good security measure. Tas ir tiešām laba drošības pasākumu. However, if you need to perform administrative tasks frequently it can get rather annoying. Tomēr, ja Jums nepieciešams veikt administratīvos uzdevumus bieži tā var iegūt diezgan kaitinošas. Here's how you can set Ubuntu to not prompt for your password when using sudo . Lūk, kā jūs varat uzstādīt Ubuntu ne vaicāt paroli, izmantojot 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. Piezīme: Tas ir kaut kas, nav ieteicams lietot, ja jūs izmantojat savu datoru sabiedriskā vietā vai savu darbu, jo tas būs kompromiss drošību jūsu datus. You're better off setting this at your home desktop where you are likely to trust more people. Jūs labāk nosakot šo jūsu mājās darbvirsmu, kur jūs varētu uzticēties vairāk cilvēku.
Launch a terminal window and enter the following command: Uzsākt termināla logu un ievadiet šādu komandu:
# sudo visudo # Sudo visudo
Visudo is a tool used to edit the configuration file of sudo . Visudo ir līdzeklis, ko izmanto, lai rediģētu konfigurācijas fails sudo. The command will prompt your for your password. Komanda liks jūsu jūsu paroli. Enter it one last time. Ievadiet to pēdējo reizi. The configuration file will open in a text editor, most likely Nano . Konfigurācijas fails tiks atvērta teksta redaktoru, visticamāk Nano. Scroll down to the end of the document and add the following line: Ritiniet uz leju līdz beigām dokumentu un pievieno šādu rindu:
username ALL=NOPASSWD: ALL username ALL = NOPASSWD: ALL
Replace username with the username of the user you want to allow a passwordless sudo. Nomainīt lietotājvārdu ar lietotājvārdu lietotāja vēlaties atļaut passwordless sudo. So if the user is calvin , you would enter: Tātad, ja lietotājs ir Calvin, jūs ievadiet:
calvin ALL=NOPASSWD: ALL Calvin ALL = NOPASSWD: ALL
Save and exit the file. Saglabāt un izejas failu. Log out, log in as the user calvin and test out your new passwordless sudo. Log out, log in kā lietotājs Kalvina un izmēģināt savu jauno passwordless sudo.























{ 2 trackbacks } (2 trackbacks)
{ 6 comments… read them below or (6 comments ... lasīt tos zem vai add one pievienot vienu } )
Talk about circumventing security! Runāt apiet drošību!
Why not just run: Kāpēc ne tikai Nobraukums:
sudo su sudo su
in a terminal and do your root command tasks there. in terminālu un darīt savu sakņu komanda uzdevumu nav. That way: Šādā veidā:
1) You don't have to sudo each command. 1) Jums nav sudo katras komandas.
2) You only enter your password once. 2) Jūs tikai ievadīt paroli vienu reizi.
This is about as boneheaded as running Vista with no security software at all. Tas ir apmēram tikpat boneheaded kā skriešana Vista bez drošības programmatūras vispār. Why on Earth would you want to do this? Kāpēc uz Zemes jūs gribat to darīt?
Personally, I'm not a fan of Sudo, because using ones own user password just isn't secure, IMO. Personīgi es neesmu ventilatoru un sudo, jo izmantojot tiem savu lietotāja paroli, vienkārši nav droša, IMO. I just use a different distro that doesn't use Sudo by default. Es tikai izmantot dažādus distro, kas neizmanto sudo pēc noklusējuma.
You might as well run windows Jūs varētu arī darbināt 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. Kaut gan tur nav, kā šis ir tikpat bīstama kā Windows unpatched un bez lateksa uzvalkā, I gotta piekrītu citi: šis šķiet muļķīgi kaut ko neapdraudot. Especially since, as LL noted, above, Sudo already is a bit weak, security-wise. Jo īpaši tādēļ, kā LL atzīmēja iepriekš, sudo jau ir mazliet vājš, drošības gudrs. 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? Es saprotu, ideju nav Root konts iespējots ir nokļuvis "Pon, bet, ja kāds ir pietiekami tālu, manā sistēmā, ka viņi mašīnrakstīšanas gala komandas, nav tie varētu man sudo pwd?
Anyway, it's not like sudo blah blah is so hard to type. Anyway, tas nav kā sudo blah blah ir tik grūti rakstīt. 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. Bez tam, esmu ievērojis, ka sistēma nav prasīt parole vēlreiz, ja sudo komandas tiek izsniegts pietiekami tuvu, kopā (ti, sudo apt-get update [partijas apstrādes ....] sudo apt-get jauninājums ... [ tas pats ...], neatkarīgi no nākamo.
To those who question the wisdom of this – Tiem, kas apšauba gudrība Šo --
You're absolutely right, under some circumstances. Jums ir pilnīga taisnība, ar dažiem apstākļiem.
I ran Slackware (and only Slackware) from '94 to '99. I ilga Slackware (un tikai Slackware) no '94 līdz '99. I ALWAYS had a root terminal open, usually several. Es vienmēr bija saknes gala atvērtu, parasti vairākas. I would blindly issue commands not being aware of which terminal I was in. Smart? Es akli izdot komandas nav zināms, kas gala biju iekšā Smart? Maybe not. Varbūt ne. But not once did I do anything harmful to the system by mistake etc. Bet ne reizi gan es neko kaitīgu sistēmas kļūdas utt
Not everyone should follow the steps in this tutorial and disable the sudo password. Ne visiem ir jāseko šajā apmācība un atspējot sudo parole pasākumus. But for those that want to know how , the info is provided. Bet tiem, kas vēlas zināt, kā, informācija ir sniegta.
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. Kā Sukrit minēts, tas nav kaut kas jūs gribat darīt uz datora darba vietā vai jebkur, ka citi cilvēki varētu izmantot. But for a home desktop behind a firewall, for someone who knows what they're doing, it can be very useful and time saving. Bet mājas desktop aiz ugunsmūra, kāds, kas zina, ko viņi dara, tas var būt ļoti noderīga un laika ietaupījumu.
Its good to have this info out there. Tā laba, ir tas info, kas tur. I do lots of admin tasks and some development on Ubuntu and this thing makes me crazy. Man daudz admin uzdevumus un daži attīstību Ubuntu un šo lietu padara mani traku.
Also, I guess you all watch to much 24 or something. Arī es domāju, jūs visi skatās ar daudz 24 vai kaut ko. 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. Pilnīgi overblown datoru drošības crazies ir pārliecināta, citādi normāls cilvēkiem, ka pastāv draudi kādu bez 100s pār drošības procesiem savā personālajā datorā.
Leave a Comment Leave Comment