IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> libutil 的功能调整
猫猫草
post 2010-12-29 11:18:55, Wed
Post #1


猫猫猫
***

Group: Power Cat
Posts: 626
Joined: 2006-12-8
Member No.: 2



1、取消 root uid 必须为 0 的限制

在编译环境的 /usr/src/lib/libutil/passwd.c 文件中,找到

代码
if (root && id) {
              warnx("root uid should be 0");
              return (0);
      }


全部注释掉,重新编译即可

另外,对于静态引用此部分库代码的程序,如 pwd_mkdb 等,也需要在编译环境更新库文件后重新编译才能生效
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 2024-12-24 11:36