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.
normally to "su" you need to be part of the "wheel" group... make sure that the username you use in X is part of the wheel group. That should fix the problem..
/etc/group should look something similar to this
wheel::10h34r3d,jhigdon
Originally posted by dzt when im in X to browse my root dir I am givin the su command in a shell window
but then I still cant gain root privs in X window
whutsup?
What are you trying to do?
Try something like
su -c konqueror
if this is what you're using.
Originally posted by ph34r3d
normally to "su" you need to be part of the "wheel" group... make sure that the username you use in X is part of the wheel group.
Normally in what distro? Not inSlack, that's for sure :}
Are you trying to launch X apps after you su to root? If yes, then you probably need to do something similar to the following:
xhost + localhost
su -
DISPLAY=localhost:0.0
export DISPLAY
then launch X apps
Note the hyphen in stickman's syntax of the su command- that's usually the key. Issued by itself, the su command does not give you a true root login shell, which means that you do not have full root powers. When issued with the "-" or "-l" (lower-case L) options, you do get a full root login shell.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.