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.
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.
I have Mandrake Linux 8.2, I'm wondering if it's possible to switch between users without compeletely logging out (like win xp).... I just want to run a program and I dont have root permissions. I'm using the console to run the program, is it possible to run it as root?
umm tnx, but I really dont get what su - does, what do you mean to get full root paths?
Umm also why is it bad to log in as root? because it warned me when I did so, it said that I can mess up with system. Why would that possibly happen?
I think (really, because I really don't know) that SU doesn't stand for SUper User like I had always thought, instead I think it stands for Switch User. That is why the su - is the command rather than simply su. And since you can do a su - <user> to change to another user. Cool, I hope that helps?
I think su stands for substitute user. Anyways the - option simulates a full login by running files like .profile and .bashrc. And it sets the current working directory to the users home directory. Usually in those .profile and .bashrc files certain environment variables get set specific to a certain user. Some of these are sometimes needed to run a program.