LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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



Reply
 
Search this Thread
Old 12-28-2009, 02:04 PM   #1
piyushmap
LQ Newbie
 
Registered: Aug 2007
Distribution: RedHat/Fedora/CentOS/Ubuntu
Posts: 22
Blog Entries: 1

Rep: Reputation: 1
Wink Login as a root from GUI in Fedora 12 !!!


Hi,

If You want to login as a root from GUI in Fedora 12 then you have to edit something like some files which are located to /etc/pam.d/

Open your Terminal from Applications -> System Tools -> Terminal

Now Login as a root from your terminal

Step 1 :- [map007@linuxsurgeon]$ su root
Password:-

Step 2:- Now go to your /etc/pam.d/ directory.

[root@linuxsurgeon]# cd /etc/pam.d/

Note:- First take a backup of gdm file.

cp gdm gdm.bkp ( always take backup if anything goes wrong you can correct it by original file)

Step 3 :- Now Open gdm file in your favourite editor. I am using vi as my editor.

[root@linuxsurgeon pam.d]# vi gdm

Find and Comment or remove this line into your gdm file auth required pam_succeed_if.so user != root quiet

Step 4 :- Save & Exit From that File.

[root@linuxsurgeon pam.d]# vi gdm-password

Find and Comment or remove this line into your gdm file auth required pam_succeed_if.so user != root quiet

For more details :- http://www.linuxsurgeon.org/kb/?p=67

Thank you.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 12-28-2009, 03:26 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Things are set up like that for a reason. Don't break security models without VERY good reason. Not recommended at all.
 
2 members found this post helpful.
Old 03-25-2010, 06:14 PM   #3
Sir7681
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Rep: Reputation: 1
Tired of being restricted...

I've had more than my share of lectures on why I shouldn't login as root with out a good reason, I understand the risks, and if I still choose to log in as root and take those risks, I should be allowed to do so. I'm tired of people who think they know better than I do what's best for me and my computer, and I'm tired of these same people restricting my access to my computer. worse than that, there are multiple places on the net telling how to enable logging in as root, but when you try to find info on enabling read/write access in SELinux, all you can find is people telling you that you shouldn't be logged in as root in the first place. stop telling people why they shouldn't do what they want to do, and start helping them do what they want to do, let them worry about the results.
 
1 members found this post helpful.
Old 03-25-2010, 06:42 PM   #4
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
Quote:
Originally Posted by Sir7681 View Post
I've had more than my share of lectures on why I shouldn't login as root with out a good reason, I understand the risks, and if I still choose to log in as root and take those risks, I should be allowed to do so. I'm tired of people who think they know better than I do what's best for me and my computer, and I'm tired of these same people restricting my access to my computer. worse than that, there are multiple places on the net telling how to enable logging in as root, but when you try to find info on enabling read/write access in SELinux, all you can find is people telling you that you shouldn't be logged in as root in the first place. stop telling people why they shouldn't do what they want to do, and start helping them do what they want to do, let them worry about the results.
The problem with that is that people who get rooted tend to come back here and blame\annoy us\Linux.
 
2 members found this post helpful.
Old 03-25-2010, 07:01 PM   #5
Sir7681
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Rep: Reputation: 1
Registered: Dec 2005
Posts: 7
Thanked: 1

^ obviously it's not me coming back and blaming, so it's kinda sad that I can't get the answers I need in these forums or anywhere else on the web. why are all of us who are trying to learn being punished because of them?
 
0 members found this post helpful.
Old 03-25-2010, 07:15 PM   #6
Sir7681
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Rep: Reputation: 1
Riddle me this...

If I can do anything as a normal user that I can do with root using the su command and the root password, then what's the point in disabling root in the first place? what is it really preventing? stop limiting my access based on your preferences. I'm sorry, I know I seem like I'm ranting here, but the more I look for this info and find reasons not to do it from people unwilling to help, the more pissed off I get. The reason I left Windows is because I was tired of an idiot proof OS, stop turning linux into what I was trying to get away from. I'm a 28 year old man, stop treating me like a kid and trying to protect me from myself.
 
0 members found this post helpful.
Old 03-25-2010, 07:24 PM   #7
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
You're right.
On your own personal machine you should be able to do as you wish,BUT...

If you insist on posting how to do something that is generally considered bad practice in a public forum you are going to get flamed.
My suggestion would be keeping this sort of 'advice' to yourself.
 
2 members found this post helpful.
Old 03-25-2010, 07:26 PM   #8
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,236

Rep: Reputation: 545Reputation: 545Reputation: 545Reputation: 545Reputation: 545Reputation: 545
Quote:
Originally Posted by Sir7681 View Post
If I can do anything as a normal user that I can do with root using the su command and the root password, then what's the point in disabling root in the first place?
Because ALL processes run with root credentials while you are interacting with those programs, even the ones you are unaware of. But you made perfectly clear that you want to run as root, who are we to know better?

jlinkels
 
Old 03-25-2010, 07:40 PM   #9
Sir7681
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Rep: Reputation: 1
I'm not posting advice, I'm asking for it...and actually, I wasn't even asking for it. I was looking for the information in previous posts BEFORE asking, so I wouldn't ask a question that's already been answered. I've always been able to find what I needed to know in these forums up til now. I've always respected the members of this forum and their assistance up til now. now, I'm finding it hard to respect anybody who's refusing to give info based on their own preferences. that's okay, If I can't get any answers from the place that's very name implies answers, I'll go find the answers myself. It'll take longer, but in the end, I'll have what I want instead of what someone else thinks I should have. I still think it's a shame to turn so many people away with out answers to questions about root users just because YOU'RE not comfortable with the idea. I won't be back.
 
0 members found this post helpful.
Old 03-27-2010, 12:22 AM   #10
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 36
At the learning stage being a root user is what most learners want to be. Otherwise, things will be annoying.
I think experts of this forum should first find out whether a person is using his home PC or his office desktop before advising whether to log in as root or not.
 
Old 03-27-2010, 12:29 AM   #11
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
SEcurity isn't there to prevent you from being in control; it's there to prevent you from screwing up.
 
Old 09-08-2011, 10:45 AM   #12
Sir7681
LQ Newbie
 
Registered: Dec 2005
Posts: 11

Rep: Reputation: 1
for those who DO want to know, the answers can be found here.

http://www.cyberciti.biz/faq/how-can-i-log-in-as-root/
 
Old 09-08-2011, 10:50 AM   #13
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
The real problem is, if your machine gets compromised while running as root,
your box will harm other people.

Kind regards
 
1 members found this post helpful.
Old 09-08-2011, 11:03 AM   #14
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 266

Rep: Reputation: 90
I used to log in as root...all the time! I didn't want to be annoyed with putting in the root password every time I wanted to do something. But here is what I learned:

1. It takes a lot LESS time to enter the root password than it does to reload Linux... :c)
2. It's nice to be root when learning, BUT, after you feel like you have advanced in your learning, you have to RETRAIN yourself to not be root all of the time. You will learn this practice from your own mistakes...and people here are just trying to help you avoid the pot holes that MOST of us have fallen into.

One other point, if you are trying to teach yourself Linux in order to obtain employment as a Linux Administrator, you want to teach yourself proper business practices. Its one thig to toast your own equipment, but taking down a production server due in a business environment will get you fired!!

Good luck with your learning....
 
Old 09-08-2011, 04:08 PM   #15
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,111

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
I have to admit i used to be guilty of logging on as root all the time (when i first started using Linux there was no security in place actively preventing this), but then security measures started being put in place that made it harder to do so and some programs (I.E. Vlc) nowadays outright refuse to even RUN if you are root, unfortunately this lack of being able to log into a gui as root is one stumbling block for would be windows converts who have been brought up on the mindset that you need administrative privileges to do anything useful on a machine (since microsoft until reletively recently encouraged such a train of though, and even now their implementation of temporary privilege escalation instead of being always admin leaves sommat to be desired)

either way, I torched my machine countless times in the learning process (something that might have been avoided had i not been always running as root), You are of course free to torch your machine as many times as you wish (it's your machine afterall), just don't come crying to us that the train crashed because you put a suitcase on the dead man switch and went to the bathroom while the train was moving.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gui root login in fedora 11 av.dubey Linux - Newbie 18 10-13-2009 01:38 AM
Root login for GUI ashwini.naidu Linux - Newbie 5 12-22-2008 05:55 AM
root login to GUI Red Barchetta Linux - Newbie 1 03-19-2007 05:58 AM
Can't login as root in GUI ashutosh mehra Linux - Desktop 3 08-28-2006 07:07 PM
GUI root login? LinuxSeeker Linux - General 6 02-15-2004 10:02 AM


All times are GMT -5. The time now is 03:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration