I want to start a pty and run bash with a specific user like root or testuser.
I have try to use pty.StartWithAttrs(exec.Command("bash"), nil, attr), also, I change the Uid and Gid of Credential of attr.
But the program gives none response. A bash can be run if I replace attr with nil.
Hi there,
I want to start a pty and run bash with a specific user like root or testuser. I have try to use pty.StartWithAttrs(exec.Command("bash"), nil, attr), also, I change the Uid and Gid of Credential of attr. But the program gives none response. A bash can be run if I replace attr with nil.
Any advice?
Thanks in advance :)