How can I open a VIM process with one user (using su) and then access with another user?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I want to open a VIM instance with one user account (using su), then login as another user and access the same session with that user.
Example User1:
su - user2 -c vim somefile.txt
Then I want to login as User2 and then access that VIM process created by that first user. I know it's possible but I'm not sure how to do it.
linux vim
add a comment |Â
up vote
1
down vote
favorite
I want to open a VIM instance with one user account (using su), then login as another user and access the same session with that user.
Example User1:
su - user2 -c vim somefile.txt
Then I want to login as User2 and then access that VIM process created by that first user. I know it's possible but I'm not sure how to do it.
linux vim
So, you want to open an interactive process (VIM) with one user, and then access with another user? Question: why does the first user have to use su, but not the second one?
â Time4Tea
Jan 31 at 14:17
2
tmux
orscreen
are your best bets. alternately,disown
orreptyr
or other tricks might be used. see serverfault.com/questions/24425/⦠or unix.stackexchange.com/questions/4034/⦠or a myriad of similar questions. the only difference here is running the initial process as a different user; personally i'd usesu
withtmux
.
â quixotic
Jan 31 at 15:34
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I want to open a VIM instance with one user account (using su), then login as another user and access the same session with that user.
Example User1:
su - user2 -c vim somefile.txt
Then I want to login as User2 and then access that VIM process created by that first user. I know it's possible but I'm not sure how to do it.
linux vim
I want to open a VIM instance with one user account (using su), then login as another user and access the same session with that user.
Example User1:
su - user2 -c vim somefile.txt
Then I want to login as User2 and then access that VIM process created by that first user. I know it's possible but I'm not sure how to do it.
linux vim
edited Jan 31 at 15:24
Time4Tea
866119
866119
asked Jan 31 at 13:23
Coder1975
61
61
So, you want to open an interactive process (VIM) with one user, and then access with another user? Question: why does the first user have to use su, but not the second one?
â Time4Tea
Jan 31 at 14:17
2
tmux
orscreen
are your best bets. alternately,disown
orreptyr
or other tricks might be used. see serverfault.com/questions/24425/⦠or unix.stackexchange.com/questions/4034/⦠or a myriad of similar questions. the only difference here is running the initial process as a different user; personally i'd usesu
withtmux
.
â quixotic
Jan 31 at 15:34
add a comment |Â
So, you want to open an interactive process (VIM) with one user, and then access with another user? Question: why does the first user have to use su, but not the second one?
â Time4Tea
Jan 31 at 14:17
2
tmux
orscreen
are your best bets. alternately,disown
orreptyr
or other tricks might be used. see serverfault.com/questions/24425/⦠or unix.stackexchange.com/questions/4034/⦠or a myriad of similar questions. the only difference here is running the initial process as a different user; personally i'd usesu
withtmux
.
â quixotic
Jan 31 at 15:34
So, you want to open an interactive process (VIM) with one user, and then access with another user? Question: why does the first user have to use su, but not the second one?
â Time4Tea
Jan 31 at 14:17
So, you want to open an interactive process (VIM) with one user, and then access with another user? Question: why does the first user have to use su, but not the second one?
â Time4Tea
Jan 31 at 14:17
2
2
tmux
or screen
are your best bets. alternately, disown
or reptyr
or other tricks might be used. see serverfault.com/questions/24425/⦠or unix.stackexchange.com/questions/4034/⦠or a myriad of similar questions. the only difference here is running the initial process as a different user; personally i'd use su
with tmux
.â quixotic
Jan 31 at 15:34
tmux
or screen
are your best bets. alternately, disown
or reptyr
or other tricks might be used. see serverfault.com/questions/24425/⦠or unix.stackexchange.com/questions/4034/⦠or a myriad of similar questions. the only difference here is running the initial process as a different user; personally i'd use su
with tmux
.â quixotic
Jan 31 at 15:34
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f420950%2fhow-can-i-open-a-vim-process-with-one-user-using-su-and-then-access-with-anoth%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
So, you want to open an interactive process (VIM) with one user, and then access with another user? Question: why does the first user have to use su, but not the second one?
â Time4Tea
Jan 31 at 14:17
2
tmux
orscreen
are your best bets. alternately,disown
orreptyr
or other tricks might be used. see serverfault.com/questions/24425/⦠or unix.stackexchange.com/questions/4034/⦠or a myriad of similar questions. the only difference here is running the initial process as a different user; personally i'd usesu
withtmux
.â quixotic
Jan 31 at 15:34