View previous topic :: View next topic |
Author |
Message |
punit n00b
Joined: 06 Jan 2008 Posts: 7 Location: Nepal
|
Posted: Thu Jan 24, 2008 6:02 am Post subject: getting following error while changing the root password |
|
|
punit ~ # echo "root123" | passwd --stdin
passwd: unrecognised option `--stdin'
Usage: passwd [options] [LOGIN]
Options:
-a, --all report password status on all accounts
-d, --delete delete the password for the named account
-e, --expire force expire the password for the named account
-h, --help display this help message and exit
-k, --keep-tokens change password only if expired
-i, --inactive INACTIVE set password inactive after expiration
to INACTIVE
-l, --lock lock the named account
-n, --mindays MIN_DAYS set minimum number of days before password
change to MIN_DAYS
-q, --quiet quiet mode
-r, --repository REPOSITORY change password in REPOSITORY repository
-S, --status report password status on the named account
-u, --unlock unlock the named account
-w, --warndays WARN_DAYS set expiration warning days to WARN_DAYS
-x, --maxdays MAX_DAYS set maximim number of days before password
change to MAX_DAYS
Debian 4.0n megy most, Ubuntu 7.04en fog futni, ott is ezt valaszolja csak magyarul. |
|
Back to top |
|
|
misterbob05 Tux's lil' helper
Joined: 28 Apr 2007 Posts: 90
|
Posted: Thu Jan 24, 2008 6:11 am Post subject: |
|
|
unless im missing something
there is no --stidn option thats why its spitting that back at you
and if you even try -stidn it still wont work because -t isnt a valid option
no if you just use -Sidn all those are valid options for passwd
dont know what the output will be thou |
|
Back to top |
|
|
punit n00b
Joined: 06 Jan 2008 Posts: 7 Location: Nepal
|
Posted: Thu Jan 24, 2008 3:26 pm Post subject: |
|
|
i used --stdin for standard input. The above command works for other distros such as Suse, Centos , etc.... and in UNIX.
so i was quite curious why it failed in gentoo.....
any special case with gentoo...?????
Anyways thank you for your reply. |
|
Back to top |
|
|
psycho_seba n00b
Joined: 17 Dec 2003 Posts: 64 Location: Argentina
|
Posted: Thu Jan 24, 2008 3:43 pm Post subject: |
|
|
man chpasswd |
|
Back to top |
|
|
AdShea n00b
Joined: 10 Mar 2005 Posts: 62
|
Posted: Thu Jan 24, 2008 6:56 pm Post subject: |
|
|
Why would you do that as root anyway? Your new root password would then be sitting on the process table for some length of time, while this might not be a problem, any other user/process can then find your password. |
|
Back to top |
|
|
punit n00b
Joined: 06 Jan 2008 Posts: 7 Location: Nepal
|
Posted: Fri Jan 25, 2008 4:49 pm Post subject: |
|
|
i was just curious as it worked in other distros...
Thanks anyways for ur suggestions... |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Fri Jan 25, 2008 6:07 pm Post subject: |
|
|
Moved from Documentation, Tips & Tricks to Other Things Gentoo, since DT&T isn't a support forum. _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9691 Location: almost Mile High in the USA
|
Posted: Fri Jan 25, 2008 7:27 pm Post subject: |
|
|
/usr/sbin/usermod (gentoo?) is another option for what you're after... using it, is an exercise left to the reader. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
8086 n00b
Joined: 12 Dec 2007 Posts: 52
|
Posted: Fri Jan 25, 2008 7:36 pm Post subject: |
|
|
What do you mean by "UNIX" when you say it works in UNIX? |
|
Back to top |
|
|
|