首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >"apt-get install wget“安装wget的权限为1000。

"apt-get install wget“安装wget的权限为1000。
EN

Ask Ubuntu用户
提问于 2015-03-01 00:03:40
回答 1查看 2.3K关注 0票数 2

我需要安装wget,所以我使用了sudo apt-get install wget,实际上,它将它安装到/usr/bin/wget中,但是权限都是错误的(上下文的其他行):

代码语言:javascript
复制
-rwxr-xr-x  1 root   root         286 Jul  1  2014 wftopfa
----------  1 root   root      407696 Feb  7  2014 wget
-rwxr-xr-x  1 root   root       48112 Apr 10  2014 whatis

wget上没有任何用户的权限!

如果我尝试sudo wget,它将返回:

代码语言:javascript
复制
sudo: wget: command not found

如果我尝试sudo chmod 755 /usr/bin/wget,它将返回:

代码语言:javascript
复制
chmod: changing permissions of '/usr/bin/wget': Operation not permitted

这里发生了什么,我该怎么解决?

EN

回答 1

Ask Ubuntu用户

发布于 2015-03-01 00:32:56

我的朋友看到了我的留言,帮我解决了这个问题:

代码语言:javascript
复制
chattr -sia /usr/bin/wget

他建议我读man chattr来了解更多。

这使我能够做chmod

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/591225

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档