标签 root 下的文章

http://vestacp.com/

输入命令在终端输入命令提示:你需要以 root 身份执行此命令

 Error: this script can only be executed by root


 

1、用root账号登陆,或者su - root切换到root账号,前提是必须有root密码;2、unzip auto_fdisk.zip,解压zip包;3、ll    查看解压的包的目录,然后 cd auto_fdisk    进入这个目录,再ll  可以看到有个auto_fdisk.sh的脚本;4、chmod 755 auto_fdisk.sh  给这个脚本可执行权限;5、bash auto_fdisk.sh  执行这个脚本。


sudo apt-get update

curl -O http://vestacp.com/pub/vst-install.sh

bash vst-install.sh --nginx yes --phpfpm yes --apache no --vsftpd yes --proftpd no --exim no --dovecot no --spamassassin no --clamav no --named no --iptables no --fail2ban no --mysql no --postgresql yes --remi no --quota no --hostname zhaoweifeng --email [email protected] --password ange

方法一:

   如果用户具有sudo权限,那么直接可以运行如下命令:

   #sudo su root

   #passwd

   #更改密码

   或者直接运行sudo passwd root命令就可以直接更改root密码。

   有关sudo su的区别:

   1.共同点:都是root用户的权限;
   2.不同点:su仅仅取得root权限,工作环境不变,还是在切换之前用户的工作环境;sudo是完全取得root的权限和root的工作环境。

   参考:http://www.cnblogs.com/ljf181275034/archive/2011/09/14/2176704.html

http://blog.chinaunix.net/uid-26853826-id-3190753.html


ubuntu下,运行时出现了root access is required for the operations you have chosen

先# su
然后输入密码
然后安装
你的权限不够。