--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/4d63e54f-84ab-49d0-9fd7-d4727bc371b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
hivagrant ssh -c 'sudo su - ; cd /blah/blah'?
On Wed, Jun 28, 2017 at 7:34 PM, Alan <alan...@gmail.com> wrote:
Hi all,
I was wondering if there was a way when (everytime) I do 'vagrant ssh', to execute the following two commands automatically:
sudo su (to change the user from vagrant to root automatically).
cd /blah/blah/
Or, a way for when doing vagrant ssh, to become 'root' and then be in a particular directory.
Box: Ubuntu
Thank you,
Alan.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/4d63e54f-84ab-49d0-9fd7-d4727bc371b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Alvaro
hivagrant ssh -c 'sudo su - ; cd /blah/blah'?
On Wed, Jun 28, 2017 at 7:34 PM, Alan <alan...@gmail.com> wrote:
Hi all,
I was wondering if there was a way when (everytime) I do 'vagrant ssh', to execute the following two commands automatically:
sudo su (to change the user from vagrant to root automatically).
cd /blah/blah/
Or, a way for when doing vagrant ssh, to become 'root' and then be in a particular directory.
Box: Ubuntu
Thank you,
Alan.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/4d63e54f-84ab-49d0-9fd7-d4727bc371b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Alvaro