鹏云翅 发表于 2007-8-31 18:45

无法拖动文件到/etc/init.d

扡动文件到/etc/init.d 时显示<br><br>Error while copying to "/etc/init.d".<br>You do not have permissions to write to this folder.<br><br>如何解决,我以用了sudo passwd root 和sudo -i 命令还是不能把文件copy到/etc/init.d下面

cnenc 发表于 2007-8-31 18:51

都提示你没有权限了。。。<br>你su ,或者用root登录吧。

鹏云翅 发表于 2007-8-31 18:53

sudo passwd root 或sudo -i就是root登录不是吗<br>

cnenc 发表于 2007-8-31 18:54

[root@NetAdmin ~]# su --help<br>用法:su [选项]... [-] [用户 [参数]...]<br>Change the effective user id and group id to that of USER.<br><br>  -, -l, --login               make the shell a login shell<br>  -c, --command=COMMAND        pass a single COMMAND to the shell with -c<br>  --session-command=COMMAND    pass a single COMMAND to the shell with -c<br>                               and do not create a new session<br>  -f, --fast                   pass -f to the shell (for csh or tcsh)<br>  -m, --preserve-environment   do not reset environment variables<br>  -p                           same as -m<br>  -s, --shell=SHELL            run SHELL if /etc/shells allows it<br>      --help     显示此帮助信息并退出<br>      --version  输出版本信息并退出<br><br>单独的 - 代表 -l。如果未给出[用户],则假定为 root。<br>

鹏云翅 发表于 2007-8-31 18:54

怎样才到登录root

cnenc 发表于 2007-8-31 18:55

普通用户的提示符为$<br>root为#

cnenc 发表于 2007-8-31 18:56

su

鹏云翅 发表于 2007-8-31 18:57

终端里显示 root@ubuntu:~# 是不是代表登录成功,但我还是不能把文件拖到/etc/init.d里<br>

cnenc 发表于 2007-8-31 19:06

是的。<br>你的/etc/init.d 权限有去改吗?<br>默认为<br>lrwxrwxrwx  1 root     root

cnenc 发表于 2007-8-31 19:06

还有,你是想cp 什么东西?

鹏云翅 发表于 2007-8-31 19:09

没有改,我今天凌晨刚装ubuntu 想开机就激活五笔,想把脚本放进/etc/init.d里还

cnenc 发表于 2007-8-31 19:11

ubuntu没有自带五笔啊?<br>

鹏云翅 发表于 2007-8-31 19:13

我也不知道,升级后才能带五笔,每次开机都要输入scim -d 麻烦,所以放脚本进/etc/init.d

cnenc 发表于 2007-8-31 19:16

ubuntu 没有用过。有没有像FC的系统管理工具?

鹏云翅 发表于 2007-8-31 19:20

FC的系统管理工具?不知道,我今天第一次用linux <br><br>fc不是是类似于 系统管理 下面的 用户和组<br>

鹏云翅 发表于 2007-8-31 19:34

用了mv 命令把文move 到/etc/init.d 下面<br>

cnenc 发表于 2007-8-31 19:44

好像是有GUI的系统管理工具吧。<br>我一般都用shell。

cctv2cctv 发表于 2007-8-31 20:48

<P><BR> 关于root 有一些不明白,听说root 有最高权限,但刚才的无法拖拉到init.d 目录下面<BR></P>
<P>如何让root 有最高权限,无论干什么都行,<BR></P>

windflush 发表于 2007-9-1 15:08

第一,Ubuntu有scim,也可以使用fcitx小企鹅,源里有。<br>第二,ubuntu是无法用root登录X,唯一的方法是字符界面登录之后用startx进入,不过这个时候一般会提示你已经有一个x实例在运行,提示remove 一个什么lock,不记得了,你把他rm掉之后startx就可以进去,就可以拖放了。<br>第三,你不能拖放的原因是,默认情况下x-window是不支持root的,你不能拖放,只能在命令行下用root权限(sudo或者su都行),然后使用cp命令才可以。<br>第四,建议使用命令行,不建议使用第二种方案。<br>

页: [1]

编程论坛