Sudo许可问题

时间:2014-01-30 22:43:15

标签: node.js sudo

运行sudo make install时遇到权限问题。这对我来说毫无意义,因为我希望sudo有权做任何事情。

sudo与非sudo执行的示例:

node.js make也使用它,但是我单独运行它。

[tydup13@kirk node]$ stat /home/tydup13/git/node/out/Release/obj.target/deps/cares/libcares.a 
  File: ‘/home/tydup13/git/node/out/Release/obj.target/deps/cares/libcares.a’
  Size: 740904      Blocks: 1448       IO Block: 1048576 regular file
Device: 27h/39d Inode: 116264377   Links: 2
Access: (0664/-rw-rw-r--)  Uid: (13993/ tydup13)   Gid: (13993/ tydup13)
Context: system_u:object_r:nfs_t:s0
Access: 2014-01-30 15:31:52.473071581 -0700
Modify: 2014-01-30 15:29:08.425186992 -0700
Change: 2014-01-30 15:29:08.567191219 -0700
 Birth: -
[tydup13@kirk node]$ sudo stat /home/tydup13/git/node/out/Release/obj.target/deps/cares/libcares.a 
stat: cannot stat ‘/home/tydup13/git/node/out/Release/obj.target/deps/cares/libcares.a’: Permission denied

1 个答案:

答案 0 :(得分:0)

我发现sudo在我使用的计算机上被压扁,并且不允许sudo跨越用户界限以确保安全。有用且烦人的同时。