默认的centos用户名是root。所以我想更改root 但我收到此错误消息
#usermod -l newuser root
**usermod: user root is currently used by process 1**
答案 0 :(得分:0)
您无法使用async void On_Share(object sender, EventArgs e)
{
if (CrossConnectivity.Current.IsConnected)
{
var message = "Check out this";
var title = "Share this";
await CrossShare.Current.Share(new ShareMessage { Text = message, Title = title}, new ShareOptions { ExcludedUIActivityTypes = new[] { ShareUIActivityType.PostToFacebook } });
}
else
{
NoInternetLabel.IsVisible = true;
}
}
来更改当前已记录的用户或正在运行的进程。
首先需要创建其他用户。
答案 1 :(得分:-1)
用户名存储在/ etc / passwd中,但这可能会产生副作用......你的目标是什么?
比照:https://unix.stackexchange.com/questions/8447/how-do-you-rename-root& http://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/