Ubuntu : Domain user as local root

Join Ubuntu เข้ากับ Domain ด้วยการติดตั้ง โปรแกรมจาก likewise

sudo apt-get install likewise-open

หรืออยากไก้ GUI ด้วยก็ใช้คำสั่ง

sudo apt-get install likewise-open-gui

แล้วก็ Join ด้วยคำสั่ง

sudo domainjoin-cli join sci.com Administrator

จะทำให้สามารถใช้ user จาก domain ใน Ubuntu ของเราได้ แต่จะใช้คำสั่ง sudo ไม่ได้
ต้องเพิ่มรายชื่อ User เข้าไปใน sudoers file ก่อน ด้วยคำสั่ง

sudo visudo

จะได้ file /etc/sudoers.tmp เวลา save ให้ลบ .tmp ออก
ถ้าจะเพิ่ม user เดียว ก็เพิ่ม

domain\\user ALL=(ALL) ALL

หรือจะเพิ่มทั้ง User group ก็เพิ่ม

%domain\\User^Group ALL=(ALL) ALL

เช่น

%komkid\\Administrators ALL=(ALL) ALL

หรือ

%komkid\\Domain^Users ALL=(ALL) ALL


Written by Komkid on August 5th, 2009 with no comments.
Read more articles on Ubuntu.

Related articles

No comments

There are still no comments on this article.

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:

You have to be identified to write a comment.