Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
Now despite people telling me not to, I started with linux running root (in X) and I honestly don't think I can stop it (they say power corrupts ? hehee > ) anyway as any root user knows, I'll be the target of programs telling me what I can and cannot do (namely use my root account)
Right now it's gtk-gnutella but I've tried this with wine configuration tools and such before... Now I understand it's a security risk, and an even greater one when it comes to running apps as gnutella. So I made a second user, called p2p to run all kinds of apps that didn't like my root account.
Problem is, it spits out a few xlib errors and it's over. I logged in as root (as I always do) and started x, then a terminal using su to become p2p and then I tried launching it. Failure, xlib complains.
Now is there any way I can actually do all this ? Some startup script or something ? I just want to be able to run these programs as a usr so they won't complain and I won't further cripple the security on the machine.
When you are on as root, SU doesn't work - that's for other permitted user to become root temporarily. Sign on as P2P after you (as root) have assigned permissions to the apps and files you want that user to have access to. Please don't be on line as root, but I think you know this
Sure you can, but Xlib will fail if you open any gui app such as gtk-gnutella. Someone mentioned that it had something to do with the fact that X is launched by another user (in this case : root) and therefore the su'ed user can't run anything in X....
Some apps have to be run as root (namely ethereal). Just login as your regular user, and use root sparingly. If you absolutely need to run something as root, and you've thoroughly evaluated the situation, you can run as root by:
ive honestly never had a problem running GUI progs su'd to root from x/a/e/gterm. sometimes helps if you put an & after the command. just tells the shell to 'run this and put me back on a command line'.
Code:
[root @ hivemind] /var # ethereal &
sometimes you will get some console output dumped to your root terminal, but its not really a big deal.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.