use su instead of sudo

This commit is contained in:
Dany LE 2021-10-27 16:25:53 +02:00
parent 894dd02b5f
commit 6d5a203028
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -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
{