宝塔终端切换root用户为www

111次阅读
没有评论
root@iZuf67mcw0tro6podzt9fcZ:~# su www
This account is currently not available.

解决方案有两个:

方案一、切换到用户www 命令行下执行(推荐):
Ubuntu系统:

sudo su - www -s /bin/bash

Linux系统:

su -s /bin/bash -c "ls" www

或者直接使用www用户来执行命令

sudo -u www command

方案二、修改passwd文件

文件位置:/etc/passwdwww用户ologin为bin/bash,这样就有登录权限了,但比较危险。

正文完
 0
wujingquan
版权声明:本站原创文章,由 wujingquan 于2024-07-24发表,共计263字。
转载说明:Unless otherwise specified, all articles are published by cc-4.0 protocol. Please indicate the source of reprint.
评论(没有评论)