LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-13-2008, 03:34 AM   #1
East
Member
 
Registered: Jan 2008
Posts: 84

Rep: Reputation: 15
Help in root password


Hi all
When we install Linux, it will ask for root password.where will the password get stored and can we change the username root to anyother name(just changing the name alone)
 
Old 02-13-2008, 03:52 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you do *not* change the root username. sorry.
 
Old 02-13-2008, 04:07 AM   #3
East
Member
 
Registered: Jan 2008
Posts: 84

Original Poster
Rep: Reputation: 15
Where will be the passsword get stored?
 
Old 02-13-2008, 05:41 AM   #4
adm1329
Member
 
Registered: Mar 2004
Distribution: CentOS 5
Posts: 128

Rep: Reputation: 17
passwords are stored in your password and shadow files, they are encrypted.
 
Old 02-13-2008, 06:35 AM   #5
East
Member
 
Registered: Jan 2008
Posts: 84

Original Poster
Rep: Reputation: 15
Thanks for the replies.
When user clicks on "OK" button after giving correct password, which script will run infront?. I am trying to add a new button to that login window for my code development. is it possible.where should i change.......
 
Old 02-13-2008, 06:41 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
a password for what? what ok button? what script infront of what???
 
Old 02-13-2008, 07:40 AM   #7
East
Member
 
Registered: Jan 2008
Posts: 84

Original Poster
Rep: Reputation: 15
After giving root password (which was set during installation) in the login window, when user presses "OK" button to continue loading desktop, which script will run.
Where will the error message "invalid root name or password" is stored?
To that same window, i am trying to add a new button.
 
Old 02-13-2008, 08:09 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
When you say "login window" you are dealing with a desktop environment (KDE, Gnome, etc.) or with a display manager (gdm, kdm, etc.)

Start with the scripts linked in /etc/rc5.d. On my system, there is "dm", which calls /etc/X11/prefdm. Let's assume that your system uses kdm. You'll need to get the source code for this, install your changes, and then re-compile. Google should be able to find the source.
 
Old 02-13-2008, 08:19 AM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by East View Post
After giving root password (which was set during installation) in the login window, when user presses "OK" button to continue loading desktop, which script will run.
Where will the error message "invalid root name or password" is stored?
To that same window, i am trying to add a new button.
Root does not run X server, meaning there is no need to use graphical logins for root.
 
Old 02-13-2008, 08:44 AM   #10
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Emerson View Post
Root does not run X server, meaning there is no need to use graphical logins for root.
You can run a GUI desktop as root (although some distros disable this by default). I'm setting up an ArchLinux system as we speak. I start the Desktop (kdemod) --as root-- using "startx".
 
Old 02-13-2008, 09:51 AM   #11
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by pixellany View Post
You can run a GUI desktop as root (although some distros disable this by default). I'm setting up an ArchLinux system as we speak. I start the Desktop (kdemod) --as root-- using "startx".
Stupid thing to do. Getting into bad habits. If there was a single reason to run X as root, but there isn't. People with strong Windows background just cannot think in POSIX terms.
 
Old 02-13-2008, 01:55 PM   #12
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Now we're talking about what I SHOULD do....different question entirely. (I was only observing that it is possible.)

The example I quoted is a perfect example of when it can make sense to run a GUI as root. I am trying several different distros on a new laptop. No data, no other users. running everything as root makes it easier to do quick experiments.

My regular systems are set up in a way of which I think you would approve.

Suggest the following modification of your last sentence:

Quote:
People with strong Windows background often cannot think.
 
  


Reply



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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 04:11 AM
Password Recovery in Edubuntu 7.04 - In Terminal, Root Login : su , password : ????? farhannaeem13 Linux - Security 3 11-30-2007 09:59 AM
How to set login and password and root password in suse 10.2 sirius57 SUSE / openSUSE 8 07-24-2007 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:57 PM.

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
Open Source Consulting | Domain Registration