Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
07-13-2009, 02:00 PM
|
#1
|
LQ Newbie
Registered: Jul 2009
Distribution: Fedora 11
Posts: 15
Rep:
|
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.
|
|
|
07-13-2009, 02:02 PM
|
#2
|
LQ Newbie
Registered: Jul 2009
Distribution: Fedora 11
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
07-13-2009, 02:03 PM
|
#3
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,599
|
Quote:
Originally Posted by gwbaby
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.
|
|
|
07-13-2009, 02:08 PM
|
#4
|
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465
Rep: 
|
Quote:
Originally Posted by gwbaby
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
|
|
|
07-13-2009, 03:15 PM
|
#5
|
LQ Newbie
Registered: Jul 2009
Distribution: Fedora 11
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
07-13-2009, 03:27 PM
|
#6
|
Moderator
Registered: Mar 2008
Posts: 22,350
|
Security issue.
Use x then change to root if su or sudo doesn't work for your case.
|
|
|
07-13-2009, 03:41 PM
|
#7
|
LQ Newbie
Registered: Jul 2009
Distribution: Fedora 11
Posts: 15
Original Poster
Rep:
|
would you explain "x"?
would you explain "x"?
|
|
|
07-13-2009, 04:22 PM
|
#8
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,599
|
Quote:
Originally Posted by gwbaby
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.
|
|
|
07-13-2009, 11:59 PM
|
#9
|
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465
Rep: 
|
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
|
|
|
07-14-2009, 12:36 AM
|
#10
|
Member
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203
Rep:
|
Quote:
Originally Posted by jdkaye
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.
|
|
|
07-14-2009, 01:22 AM
|
#11
|
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465
Rep: 
|
Quote:
Originally Posted by Quads
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
|
|
|
07-14-2009, 01:28 AM
|
#12
|
Member
Registered: Jul 2008
Location: Indiana
Distribution: Fedora, Ubuntu, Slackware
Posts: 203
Rep:
|
Quote:
Originally Posted by jdkaye
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? 
|
|
|
07-14-2009, 07:57 AM
|
#13
|
LQ Newbie
Registered: Jul 2009
Distribution: Fedora 11
Posts: 15
Original Poster
Rep:
|
Thanks for all your answers
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
|
|
|
07-14-2009, 08:02 AM
|
#14
|
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573
|
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 
|
|
|
07-14-2009, 04:10 PM
|
#15
|
LQ Newbie
Registered: Jul 2009
Distribution: Fedora 11
Posts: 15
Original Poster
Rep:
|
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 05:55 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|