วันอาทิตย์ที่ 20 กันยายน พ.ศ. 2558

แก้ปัญหา Linux, Ubuntu

  • ปัญหา /etc/sudoers.d is world writable
พิมพ์คำสั่ง pkexec chmod 0440 /etc/sudoers
  • ปัญหา Username is not in the sudoers file. This incident will be reported
  1. Allow an other user to run sudo. พิมพ์คำสั่ง sudo adduser username sudo
  2. Logging in as another user. พิมพ์คำสั่ง sudo -i -u username
  3. Enable root account for to modify etc/sudoers. พิมพ์คำสั่ง sudo -i หรือ sudo passwd root แก้ไขไฟล์ โดยเพิ่มคำสั่ง username ALL=(ALL:ALL) ALL

ไม่มีความคิดเห็น:

แสดงความคิดเห็น