LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Root user with Xwindows (https://www.linuxquestions.org/questions/linux-newbie-8/root-user-with-xwindows-739799/)

gwbaby 07-13-2009 02:00 PM

Root user with Xwindows
 
Is it possible for root to use Xwindows? if yes, how can it be because I put "root" as user and password correctly, it won't let me in.

gwbaby 07-13-2009 02:02 PM

eth1 is already down
 
I need to enable eth1 every time system boots up. Would you let me know how to fix it permanently. Which file is it, how to use that?

Thanks for your knowledge.

TB0ne 07-13-2009 02:03 PM

Quote:

Originally Posted by gwbaby (Post 3606391)
Is it possible for root to use Xwindows? if yes, how can it be because I put "root" as user and password correctly, it won't let me in.

Yes, it is.

There are different ways to do it, but since you don't say what version/distro of Linux you're using, what login manager, what desktop, in what environment, it's hard to be more specific.

jdkaye 07-13-2009 02:08 PM

Quote:

Originally Posted by gwbaby (Post 3606393)
I need to enable eth1 every time system boots up. Would you let me know how to fix it permanently. Which file is it, how to use that?

Thanks for your knowledge.

Gwbaby,
Please don't start two separate threads under one thread. If you have unrelated questions, please start a separate thread for each one. This avoids confusion in following the discussion.
Thanks,
jdk

gwbaby 07-13-2009 03:15 PM

X windows with root account
 
First, sorry that I accidently posted two different issue under one thread.

I am using Fedora 11. Basically, what I want to do is this. When I change setup or copy a file, I don't want to get error message "no permission" any more.

jefro 07-13-2009 03:27 PM

Security issue.

Use x then change to root if su or sudo doesn't work for your case.

gwbaby 07-13-2009 03:41 PM

would you explain "x"?
 
would you explain "x"?

TB0ne 07-13-2009 04:22 PM

Quote:

Originally Posted by gwbaby (Post 3606500)
would you explain "x"?

Log in as your normal user under X windows. Get to a terminal window, and type in "sudo <command>", or "su - root", and enter the root password.

jdkaye 07-13-2009 11:59 PM

gwbaby,
In general, it's not a good idea to run an x-session as root. That's why most distros make it difficult for you to do that. There are ways around these security measures but unless you really know what you're doing, I wouldn't advise using them.

What exactly are you trying to do. What does "When I change setup or copy a file" mean? You can do anything you want in your home directory. I think you are heading for disaster.
cheers,
jdk

Quads 07-14-2009 12:36 AM

Quote:

Originally Posted by jdkaye (Post 3606804)
gwbaby,
In general, it's not a good idea to run an x-session as root. That's why most distros make it difficult for you to do that. There are ways around these security measures but unless you really know what you're doing, I wouldn't advise using them.

What exactly are you trying to do. What does "When I change setup or copy a file" mean? You can do anything you want in your home directory. I think you are heading for disaster.
cheers,
jdk

Good call. When I first started with linux I had a train wreck running x as root. It even warned me when started x that it isn't a good idea. I used to make a habit out of it.

I'm telling you, do not ever log into x as root. Its way too easy to mess things up. Like yeah, it won't happen to me. All I did was click something wrong, basically miss with the mouse pointer, and adios.

Learn to use the command line. If you insist on logging in as root, you have to exit x completely, become root, and then restart x. Its easier just to use the command line really.

jdkaye 07-14-2009 01:22 AM

Quote:

Originally Posted by Quads (Post 3606833)
Good call. When I first started with linux I had a train wreck running x as root. It even warned me when started x that it isn't a good idea. I used to make a habit out of it.

I'm telling you, do not ever log into x as root. Its way too easy to mess things up. Like yeah, it won't happen to me. All I did was click something wrong, basically miss with the mouse pointer, and adios.

Learn to use the command line. If you insist on logging in as root, you have to exit x completely, become root, and then restart x. Its easier just to use the command line really.

Well said Quads! :) But you don't have to x to log in as root. You can open a terminal and execute su or you can clt-alt-F1/.../F6 in most distros and get a virtual terminal that way. Occasionally you may want to run an editor (like kate) or a filemanager as root and gksu will let you do that.
Cheers,
jdk

Quads 07-14-2009 01:28 AM

Quote:

Originally Posted by jdkaye (Post 3606867)
Well said Quads! :) But you don't have to x to log in as root. You can open a terminal and execute su or you can clt-alt-F1/.../F6 in most distros and get a virtual terminal that way. Occasionally you may want to run an editor (like kate) or a filemanager as root and gksu will let you do that.
Cheers,
jdk

Sorry...I don't have the full understanding of the differences between a virutal terminal and a 'real' terminal...

And now, of course, I know that we can run kate as root quite easily...God, I wish I would have known then, but then I wouldn't have had that good lesson about being careful with my root account, would I? ;)

gwbaby 07-14-2009 07:57 AM

Thanks for all your answers
 
2 Attachment(s)
This is my situation. I am running mysql server in Fedora 11. now it is working fine. I also installed mysql took kits (Mysql administrator) in order to control DB.

When I try to add new user, MySQL administrator blocked me, so I couldn't add it (I attached snap-shot) In that case, do i need to use command-line? I logged as root in mysql, but not from x-windows

linus72 07-14-2009 08:02 AM

Although I run as ROOT in almost all my distro's, I don't do it in Ubuntu or the major distro's

When running tinycore, puppy I run as absolute root, with all apps running as root too.
I changed the menu so XFE,XFW, and the terminal would be as root too.

in tinycore there is no "user" really.

NEVER chown / either!
I accidently did "chown -R bz /
when I meant to do chown -R bz /media/disk

total re-install onlt way to fix it.

Of course, all my boxes are test beds anyway:)

gwbaby 07-14-2009 04:10 PM

thanks for your answer.

Somehow, since I am newbie, i couldn't understand well. So, whenever I met the error "permission denied" from X windows, what is the best way?

1. I switch command line mode and log in root
2. Temporary, give a user as root previllege
3. log in X windows as root

I have not only mysql administrator utility, but also other utility, i got same situation "permission denied"

also, now i understand why every distro intentionally disable x windows loggin as root.


All times are GMT -5. The time now is 12:15 AM.