Vagrant in Mac Terminal











up vote
0
down vote

favorite












I installed CentOS vagrant on virtual box through terminal. Is there any command that I can directly switch user to vagrant from terminal?










share|improve this question
























  • When you are on a shell of the virtual machine, you would do it the same way you switch users in any suchlike environment: su vagrant.
    – DopeGhoti
    Jun 6 '17 at 15:59










  • Hi Dope, It says "Sorry"
    – Yash
    Jun 6 '17 at 16:06






  • 2




    At least it's polite, but is that literally the entirety of what you get as a response to that command?
    – DopeGhoti
    Jun 6 '17 at 16:07










  • su vagrant Password: su: Sorry
    – Yash
    Jun 6 '17 at 16:09










  • This indicates you are not using the correct password for the vagrant user.
    – DopeGhoti
    Jun 6 '17 at 16:11















up vote
0
down vote

favorite












I installed CentOS vagrant on virtual box through terminal. Is there any command that I can directly switch user to vagrant from terminal?










share|improve this question
























  • When you are on a shell of the virtual machine, you would do it the same way you switch users in any suchlike environment: su vagrant.
    – DopeGhoti
    Jun 6 '17 at 15:59










  • Hi Dope, It says "Sorry"
    – Yash
    Jun 6 '17 at 16:06






  • 2




    At least it's polite, but is that literally the entirety of what you get as a response to that command?
    – DopeGhoti
    Jun 6 '17 at 16:07










  • su vagrant Password: su: Sorry
    – Yash
    Jun 6 '17 at 16:09










  • This indicates you are not using the correct password for the vagrant user.
    – DopeGhoti
    Jun 6 '17 at 16:11













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I installed CentOS vagrant on virtual box through terminal. Is there any command that I can directly switch user to vagrant from terminal?










share|improve this question















I installed CentOS vagrant on virtual box through terminal. Is there any command that I can directly switch user to vagrant from terminal?







vagrant






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 25 at 15:10









Rui F Ribeiro

38.3k1475126




38.3k1475126










asked Jun 6 '17 at 15:57









Yash

613




613












  • When you are on a shell of the virtual machine, you would do it the same way you switch users in any suchlike environment: su vagrant.
    – DopeGhoti
    Jun 6 '17 at 15:59










  • Hi Dope, It says "Sorry"
    – Yash
    Jun 6 '17 at 16:06






  • 2




    At least it's polite, but is that literally the entirety of what you get as a response to that command?
    – DopeGhoti
    Jun 6 '17 at 16:07










  • su vagrant Password: su: Sorry
    – Yash
    Jun 6 '17 at 16:09










  • This indicates you are not using the correct password for the vagrant user.
    – DopeGhoti
    Jun 6 '17 at 16:11


















  • When you are on a shell of the virtual machine, you would do it the same way you switch users in any suchlike environment: su vagrant.
    – DopeGhoti
    Jun 6 '17 at 15:59










  • Hi Dope, It says "Sorry"
    – Yash
    Jun 6 '17 at 16:06






  • 2




    At least it's polite, but is that literally the entirety of what you get as a response to that command?
    – DopeGhoti
    Jun 6 '17 at 16:07










  • su vagrant Password: su: Sorry
    – Yash
    Jun 6 '17 at 16:09










  • This indicates you are not using the correct password for the vagrant user.
    – DopeGhoti
    Jun 6 '17 at 16:11
















When you are on a shell of the virtual machine, you would do it the same way you switch users in any suchlike environment: su vagrant.
– DopeGhoti
Jun 6 '17 at 15:59




When you are on a shell of the virtual machine, you would do it the same way you switch users in any suchlike environment: su vagrant.
– DopeGhoti
Jun 6 '17 at 15:59












Hi Dope, It says "Sorry"
– Yash
Jun 6 '17 at 16:06




Hi Dope, It says "Sorry"
– Yash
Jun 6 '17 at 16:06




2




2




At least it's polite, but is that literally the entirety of what you get as a response to that command?
– DopeGhoti
Jun 6 '17 at 16:07




At least it's polite, but is that literally the entirety of what you get as a response to that command?
– DopeGhoti
Jun 6 '17 at 16:07












su vagrant Password: su: Sorry
– Yash
Jun 6 '17 at 16:09




su vagrant Password: su: Sorry
– Yash
Jun 6 '17 at 16:09












This indicates you are not using the correct password for the vagrant user.
– DopeGhoti
Jun 6 '17 at 16:11




This indicates you are not using the correct password for the vagrant user.
– DopeGhoti
Jun 6 '17 at 16:11















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f369545%2fvagrant-in-mac-terminal%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f369545%2fvagrant-in-mac-terminal%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

サソリ

広島県道265号伴広島線

Accessing regular linux commands in Huawei's Dopra Linux