Ubuntu 17.10 Gnome | Logout of current user and Login into another user using bash script
I'm writing a script and i'm required to completely log out of current user and login into another user, how can this be achieved?
Concidering that SU command is only switching user for bash shell console/terminal, and I actually need to switch completely to another user. That's why SU command is not what is needed for me.
I need the kind of command that kind of directly trigger "Switch User " button that can be seen in the GUI of Ubuntu's Gnome .
Example of loging-out command can be found here:
http://
I need a login command similar to the above. Where I can type password and switch/login to that user.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask BoQsc for more information if necessary.