找回密码
 FreeOZ用户注册
查看: 1842|回复: 8
打印 上一主题 下一主题

[学习深造] 删除文件/目录需要sudo

[复制链接]
跳转到指定楼层
1#
发表于 22-3-2016 13:03:45 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?FreeOZ用户注册

x
我安装了ubuntu server linux最新版本

lsb_release -a

Distributor ID:        Ubuntu
Description:        Ubuntu 15.10
Release:        15.10
Codename:        wily

很奇怪,在我使用普通的用户名登录hello,在/home/hello中的文件和目录需要我用sudo rm来删除,我想应该不需要sudo,如何解决这问题啊?
回复  

使用道具 举报

2#
发表于 23-3-2016 05:13:38 | 只看该作者
Try
chmod 777 /home/hello
回复  

使用道具 举报

3#
 楼主| 发表于 23-3-2016 06:21:33 | 只看该作者
superopengl 发表于 23-3-2016 06:13
Try
chmod 777 /home/hello

But that will allow others modify my files, no security
回复  

使用道具 举报

4#
 楼主| 发表于 23-3-2016 06:23:14 | 只看该作者
Here is my current folder value /home/hello
drwxr-xr-x
回复  

使用道具 举报

5#
 楼主| 发表于 23-3-2016 06:26:22 | 只看该作者
superopengl 发表于 23-3-2016 06:13
Try
chmod 777 /home/hello

I tried and it still the same. And it requires sudo to remove files.
回复  

使用道具 举报

6#
 楼主| 发表于 23-3-2016 06:27:05 | 只看该作者
I installed trash-cli. Is it possible that utility cause issue?
回复  

使用道具 举报

7#
发表于 23-3-2016 06:33:08 | 只看该作者
回复  

使用道具 举报

8#
 楼主| 发表于 23-3-2016 06:34:27 | 只看该作者
DDD888 发表于 23-3-2016 07:27
I installed trash-cli. Is it possible that utility cause issue?

I found the problem. It is the trash-cli cause the problem. After uninstall it, my sudo issue goes away.
回复  

使用道具 举报

9#
 楼主| 发表于 23-3-2016 06:37:04 | 只看该作者
superopengl 发表于 23-3-2016 07:33
See if this helps http://superuser.com/questions/331121/linux-cannot-remove-owned-file-with-777-perm ...

Thanks

I think it is not my case.
回复  

使用道具 举报

您需要登录后才可以回帖 登录 | FreeOZ用户注册

本版积分规则

小黑屋|手机版|Archiver|FreeOZ论坛

GMT+10, 19-9-2025 17:38 , Processed in 0.015078 second(s), 24 queries , Gzip On, Redis On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表