mirror of
https://github.com/lxsang/antd-tunnel-publishers
synced 2024-12-26 01:48:21 +01:00
use su instead of sudo
This commit is contained in:
parent
894dd02b5f
commit
6d5a203028
BIN
dist/antd-publishers-0.1.1a.tar.gz
vendored
BIN
dist/antd-publishers-0.1.1a.tar.gz
vendored
Binary file not shown.
@ -43,7 +43,7 @@ static vterm_proc_t* terminal_new(const char* user)
|
||||
(void)memset(cmd, 0, sizeof(cmd));
|
||||
if(user && strlen(user) > 0)
|
||||
{
|
||||
snprintf(cmd, sizeof(cmd),"TERM=linux sudo -iu %s", user);
|
||||
snprintf(cmd, sizeof(cmd),"TERM=linux su -l %s", user);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user