|
|
|
|
|
|
| Author |
Message |
Jack// ani *nix forums beginner
Joined: 09 Feb 2005
Posts: 9
|
Posted: Wed Feb 09, 2005 3:48 pm Post subject:
Adding a new user?
|
|
|
Hi all,
Today I installed Mandrake10.1 on my machine, everything went fine but
I skipped adding a new user. I only gave the root password, a skipped
adding a new user while installation was going on. It installed very
well and working fine, but I cannot login, when prompted for a password
at startup. I thought I may be able to login with the root password,
but none is working!! So I tried to add a new user using
"failsafe", but unfortunately it goes into some strange mode (I
have never seen before). I see this...
Telling INIT to go to single user mode
INIT: Going single user
Sh-2.05#
What should I do now??
Thanks a lot for any help |
|
| Back to top |
|
 |
Davide Bianchi *nix forums Guru
Joined: 24 Feb 2005
Posts: 373
|
Posted: Wed Feb 09, 2005 4:45 pm Post subject:
Re: Adding a new user?
|
|
|
On 2005-02-09, Jack// ani <nospam4u_jack@yahoo.com> wrote:
| Quote: | Telling INIT to go to single user mode
INIT: Going single user
Sh-2.05#
What should I do now??
|
Congratulation: when you see that, it means you've logged in and you
are root. Use passwd to change the root password, use
useradd to add a new user and passwd usernamehere to change his password.
Then restart in normal mode.
Davide
--
HAL 9000: Dave. Put down those Windows disks, Dave. DAVE! |
|
| Back to top |
|
 |
Lew Pitcher *nix forums Guru
Joined: 21 Feb 2005
Posts: 675
|
Posted: Wed Feb 09, 2005 9:44 pm Post subject:
Re: Adding a new user?
|
|
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Davide Bianchi wrote:
| Quote: | On 2005-02-09, Jack// ani <nospam4u_jack@yahoo.com> wrote:
Telling INIT to go to single user mode
INIT: Going single user
Sh-2.05#
What should I do now??
Congratulation: when you see that, it means you've logged in and you
are root. Use passwd to change the root password, use
useradd to add a new user and passwd usernamehere to change his password.
Then restart in normal mode.
|
And I thought that /my/ answers tended to be terse. :-)
Jack, Davide's shorthand description may need some explanation. He has
described the actions you should take to solve two different problems.
First off, since the root password you initially entered seems to be no good,
Davide has suggested that you use this opportunity to set a new root password
that /will/ work for you. He suggests that, as root, you enter the
passwd
command, and answer the prompts. The program will ask you for a new root
password (and a repeat of it, to ensure that there are no typing errors), and
will set the root password to whatever you enter. If you want to know all
about the passwd command, take a look at the passwd(1) manpage ("man 1 passwd").
Next, Davide tells you how to add a new user using the useradd and passwd
commands. Before you start, you should read the useradd( manpage ("man 8
useradd") to get a feel for the sort of things that useradd will need. At a
minimum, you need to decide on the username of the new user, but you might
want to also decide on other parameters (as documented in the useradd( manpage).
For illustration purposes, let's pretend that you want to add a new user, with
the username of JackAni. First, you would
useradd JackAni
which would add the user "JackAni" to the system, build the /home/JackAni
directory and populate that directory with the default files that go into a
home directory
Next, you would
passwd JackAni
to give user JackAni a new password. This also activates the account, so that
JackAni can log on at a "login" prompt or through the GUI login window. Here,
passwd will ask the same sort of questions it did when you used it to change
root's passwd; enter the user's new password, then re-enter it.
Once you've done this, user JackAni will be able to log on (using the password
you just set), and do his work in /home/JackAni
Simple?
- --
Lew Pitcher
Master Codewright & JOAT-in-training | GPG public key available on request
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCCpI2agVFX4UWr64RAuo/AJwNIrsccK+Gqr5Nromg4B74SzWYxgCdFI76
5aJdNOZIP2O0VjDSbPsC0RU=
=o3Qb
-----END PGP SIGNATURE----- |
|
| Back to top |
|
 |
mjt *nix forums Guru
Joined: 09 Mar 2005
Posts: 961
|
Posted: Thu Feb 10, 2005 8:46 am Post subject:
Re: Adding a new user?
|
|
|
Solbu wrote:
| Quote: | One question, though.
How would the OP get from his runlevel 1 text console to a
state where he can run a GUI tool to add the user?
It is a consoll GUI, like the Midnight Commander.
|
.... no such thing as "console GUI", unless it's in graphics
mode and some application is utilizing a graphics library.
MC is a text-output application.
--
<< http://michaeljtobler.homelinux.com/ >>
In France they piss on Main Street
(In pissoirs, Mama, not cheap display). - Joni Mitchell |
|
| Back to top |
|
 |
Jack// ani *nix forums beginner
Joined: 09 Feb 2005
Posts: 9
|
Posted: Thu Feb 10, 2005 12:43 pm Post subject:
Re: Adding a new user?
|
|
|
|
Thanks, it is now working fine. So quick and easy. |
|
| Back to top |
|
 |
Solbu *nix forums beginner
Joined: 25 Mar 2005
Posts: 48
|
Posted: Thu Feb 10, 2005 12:48 pm Post subject:
Re: Adding a new user?
|
|
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On onsdag 9. februar 2005, 23:44 Lew Pitcher tried to express an opinion:
The simplest is to invoke the command 'userdrake'
which would give you a simple GUI that also sets the passwd.
- --
Solbu - http://www.solbu.net
Remove 'ugyldig' for email
PGP key ID: 0xFA687324
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQFCC2ZGT1rWTfpocyQRAoSkAKCoBCe5ifNbqp11lHNyIQY/MAIdtwCgtVAI
L15MHYnRQQUyCaVw6mzSCho=
=ogMh
-----END PGP SIGNATURE----- |
|
| Back to top |
|
 |
Lew Pitcher *nix forums Guru
Joined: 21 Feb 2005
Posts: 675
|
Posted: Thu Feb 10, 2005 2:02 pm Post subject:
Re: Adding a new user?
|
|
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Solbu wrote:
| Quote: | On onsdag 9. februar 2005, 23:44 Lew Pitcher tried to express an opinion:
Simple?
The simplest is to invoke the command 'userdrake'
which would give you a simple GUI that also sets the passwd.
|
OK. Sounds good to me.
One question, though. How would the OP get from his runlevel 1 text console to a
state where he can run a GUI tool to add the user?
(Hint: I know how I'd do it, but the OP wouldn't have known)
- --
Lew Pitcher
IT Specialist, Enterprise Data Systems,
Enterprise Technology Solutions, TD Bank Financial Group
(Opinions expressed are my own, not my employers')
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
iD8DBQFCC3eYagVFX4UWr64RArdxAJ44viPVRWdA+s0WOD65qN+T2v1PCQCgwg/3
0BnQeNfG7ElQbW9RFDSLXBI=
=ZI/Z
-----END PGP SIGNATURE----- |
|
| Back to top |
|
 |
Solbu *nix forums beginner
Joined: 25 Mar 2005
Posts: 48
|
Posted: Thu Feb 10, 2005 2:25 pm Post subject:
Re: Adding a new user?
|
|
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On torsdag 10. februar 2005, 16:02 Lew Pitcher tried to express an opinion:
| Quote: | Solbu wrote:
The simplest is to invoke the command 'userdrake'
which would give you a simple GUI that also sets the passwd.
One question, though.
How would the OP get from his runlevel 1 text console to a
state where he can run a GUI tool to add the user?
|
It is a consoll GUI, like the Midnight Commander.
- --
Solbu - http://www.solbu.net
Remove 'ugyldig' for email
PGP key ID: 0xFA687324
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQFCC30HT1rWTfpocyQRArxHAJ4se+COJr0jEKDnlktM1VSrTx0LvACfT0s7
1wy1ihwk0+Wh4v2BaL8mVWg=
=EQs8
-----END PGP SIGNATURE----- |
|
| Back to top |
|
 |
Lew Pitcher *nix forums Guru
Joined: 21 Feb 2005
Posts: 675
|
Posted: Thu Feb 10, 2005 2:39 pm Post subject:
Re: Adding a new user?
|
|
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Solbu wrote:
| Quote: | On torsdag 10. februar 2005, 16:02 Lew Pitcher tried to express an opinion:
Solbu wrote:
The simplest is to invoke the command 'userdrake'
which would give you a simple GUI that also sets the passwd.
One question, though.
How would the OP get from his runlevel 1 text console to a
state where he can run a GUI tool to add the user?
It is a consoll GUI, like the Midnight Commander.
|
OK, that's great then.
And now I know
Thanks
- --
Lew Pitcher
IT Specialist, Enterprise Data Systems,
Enterprise Technology Solutions, TD Bank Financial Group
(Opinions expressed are my own, not my employers')
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
iD8DBQFCC4BNagVFX4UWr64RAqoUAJ9ON2ZUp6l1KZMdRue6mtbnSNs2OQCg8/7H
GVUeRipNR3glbG9MLyD8HWw=
=3pVk
-----END PGP SIGNATURE----- |
|
| Back to top |
|
 |
Jack// ani *nix forums beginner
Joined: 09 Feb 2005
Posts: 9
|
Posted: Fri Feb 11, 2005 5:03 pm Post subject:
Re: Adding a new user?
|
|
|
| Quote: | (Hint: I know how I'd do it, but the OP wouldn't have known)
|
Hi Lew,
I did like to know how it is done?
Thanks |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Fri Jan 09, 2009 10:28 am | All times are GMT
|
|
Mortgage Loans | Debt Consolidation | Bankruptcy | Song Lyrics | Watch American Dad
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|