-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


The Friday 2007-12-28 at 09:40 +0200, Dirk Moolman wrote:

On Thu, 27 Dec 2007 15:53:11 +0200
"Dirk Moolman" <DirkM> wrote:

I am trying to setup sudo rights on a specific user (username: test), to
use the command: useradd


Please, trim the quoted part of your emails.


sudo useradd -c "JUST A TEST USER" -d /home/test -s /usr/bin/ksh test2

it only works if I enter the root passw0rd, instead of the test user's
passw0rd.   Why would this be ?   The documentation says that it will
ask for a password, but for the passw0rd of the user that is running the
sudo command.

Did you read the file? Look here:

# In the default (unconfigured) configuration, sudo asks for the root password.
# This allows use of an ordinary user account for administration of a freshly
# installed system. When configuring sudo, delete the two
# following lines:
Defaults targetpw    # ask for the password of the target user i.e. root
ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!

Do remove or comment out those two lines, as you were "told" :-p

- -- Cheers,
       Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFHiNfdtTMYHG2NR9URAgKEAJ4lOhCeaFp2eSTmVi2hBdaDj0ExXACdFPkt
Vj/Dvfo7iWLHE76KM+Pibo0=
=kfz5
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to