LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help in root password (https://www.linuxquestions.org/questions/linux-newbie-8/help-in-root-password-620765/)

East 02-13-2008 03:34 AM

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)

acid_kewpie 02-13-2008 03:52 AM

you do *not* change the root username. sorry.

East 02-13-2008 04:07 AM

Where will be the passsword get stored?

adm1329 02-13-2008 05:41 AM

passwords are stored in your password and shadow files, they are encrypted.

East 02-13-2008 06:35 AM

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.......

acid_kewpie 02-13-2008 06:41 AM

a password for what? what ok button? what script infront of what???

East 02-13-2008 07:40 AM

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.

pixellany 02-13-2008 08:09 AM

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.

Emerson 02-13-2008 08:19 AM

Quote:

Originally Posted by East (Post 3055606)
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.

pixellany 02-13-2008 08:44 AM

Quote:

Originally Posted by Emerson (Post 3055657)
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".

Emerson 02-13-2008 09:51 AM

Quote:

Originally Posted by pixellany (Post 3055683)
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.

pixellany 02-13-2008 01:55 PM

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.


All times are GMT -5. The time now is 09:55 PM.