關於 PHP, Linux, Open Source 及個人生活記載的網誌。
RSS icon
  • Ubuntu: 使 sudo 儲存密碼

    Posted on February 5th, 2006 Sam Tang No comments

    在 Ubuntu 內預設要執行只有 root 才可執行的指令時,需要使用 sudo 或 gksudo。當第一次輸入了密碼後,便不用再輸入密碼,但如果需要打開好幾個 terminal,或者原先開啟的 terminal 已經關閉,就需要再次輸入。

    如果作為伺服器,以上的密碼確認是密須的,但如果作為桌面使用,其實可以省卻這個麻煩,以下是具體方法:

    打開 /etc/sudoers,將
    Defaults !lecture,tty_tickets,!fqdn

    改成
    Defaults !lecture,!tty_tickets,!fqdn


    Leave a reply

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word