how to switch to another user but not in console just in the whole ubuntu?
In console shell it is easy:
su new_user then enter password. But when edit file from user home in some text editor (not in vim in console), I cannot save file. I have to switch user also somehow in ubuntu and I don't know how. |
Open the text editor as <user>.
Example: Code:
sudo geany /etc/fstab |
Does this answer work for you? (Lock the screen, switch to another user from the locked screen).
|
When you just use the su new_user, you switch to the new user but remain in same directory even if you do not have permission to read or write with the old users environment.
If you use su - new_user versus just su new_user you switch to the new users environment and are automatically moved to the new_users home directory. |
Logout and in as different user
|
I am curious as to whether any of these suggestions worked for the original poster. If so, which one(s).
|
All times are GMT -5. The time now is 10:49 PM. |