Unable to execute command after setting up profile for root login

Asked by sayantan on 2016-05-18

While creating a terminal profile i have used custom commands 'expect -c 'spawn su - ;expect Password:;send "your-password\n";interact' to login into root

Now in layouts i am not able to execute any other commands.

Question information

Language:
English Edit question
Status:
Answered
For:
Terminator Edit question
Assignee:
No assignee Edit question
Last query:
2016-05-18
Last reply:
2016-05-24

Probably because you have not understood that the custom command ***replaces*** the bash command. Perhaps:
expect -c 'spawn sudo bash; expect "Password:"; send "your-password\n"; interact'

Please note that hard-coding your passwords like this is a huge security risk, by the way.

Can you help with this problem?

Provide an answer of your own, or ask sayantan for more information if necessary.

To post a message you must log in.