Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I like to have different user-profiles on my laptop according to what kind of work I'm doing. E.g. an account for studies, an account for specific dev-projects, one for banking etc. etc.
I normally just log in to an account witch is configured with my fav. window-manager and then just use terminals with an ssh-session and X-forwarding to work on the specific projects with a seperate user.
But is ssh with X-forwarding the best (only) way to do it? Or are there alternatives that doesn't suffer from the overhead provided by encrypting all the traffic (mainly the X-connection)?
you can use sudo user in terminal or gksu -uuser (usually in gnome) (there is a similar command for KDE), if you just want to start apps with the rights of different users
did you mean that?
you can use sudo user in terminal or gksu -uuser (usually in gnome) (there is a similar command for KDE), if you just want to start apps with the rights of different users
did you mean that?
No, what I meant was more like getting full access to an account through a terminal with X-forwarding. sudo only allows me to execute a command with the right of another user.
I was thinking more in the lines of 'su', but with a X-connection.
You can switch to a tty (e.g. press ctrl+alt+F1), login as the user for your needs, and start a new session for another user by tying in startx -- :1. To get back to the standart session, on my system I press ctrl+alt+F7 (could be ctrl+alt+F5 or ctrl+alt+F6 or something, shouldn't hurt to try all Fx-keys as they only switch the sessions). To switch to the extra session, I press (again, on my system) ctrl+alt+F8.
Most desktops (I think KDE, Gnome and XFCE all do) have some extra function to start such a session without the CLI fuss.
Does this help?
Edit: I just tried the system->log out->switch user menu in Gnome. It opens a new gdm interface where a new user can login, just what I ment above. (Posted before so I wouldn't have to type the text again in case the current session was shut down)
You can switch to a tty (e.g. press ctrl+alt+F1), login as the user for your needs, and start a new session for another user by tying in startx -- :1. To get back to the standart session, on my system I press ctrl+alt+F7 (could be ctrl+alt+F5 or ctrl+alt+F6 or something, shouldn't hurt to try all Fx-keys as they only switch the sessions). To switch to the extra session, I press (again, on my system) ctrl+alt+F8.
Most desktops (I think KDE, Gnome and XFCE all do) have some extra function to start such a session without the CLI fuss.
Does this help?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.