how to force change of password on next login? how to do it on Mandriva 10.2? [solved]
#1
Posted 28 May 2006 - 06:11 AM
TIA!!!
btw, NIS or LDAP is not an option... :P/>
[moved from Software by spinynorman]
Mandriva 2008.1 @ hOMe
#2
Posted 28 May 2006 - 06:17 AM
passwd -e [accountname]
should work on all systems. try checking passwd options with:
man passwd
i don't understand why mandriva would remove this option...and unfortunately I don't have mandriva installed to check...
#3
Posted 28 May 2006 - 06:32 AM
Quote
-k, --keep-tokens keep non-expired authentication tokens
-d, --delete delete the password for the named account (root only)
-l, --lock lock the named account (root only)
-u, --unlock unlock the named account (root only)
-f, --force force operation
-x, --maximum=DAYS maximum password lifetime (root only)
-n, --minimum=DAYS minimum password lifetime (root only)
-w, --warning=DAYS number of days warning users receives before
password expiration (root only)
-i, --inactive=DAYS number of days after password expiration when an
account becomes disabled (root only)
-S, --status report password status on the named account (root
only)
--stdin read new tokens from stdin (root only)
Help options:
-?, --help Show this help message
--usage Display brief usage message
and in opensuse
Quote
-f Change the finger (GECOS) information
-h Change the home directory
-s Change the login shell
-g Change the group password
-k Change the password only if expired
-q Try to be quiet
-S Show the password attributes
-a Only with -S, show for all accounts
-d Delete the password for the named account
-l Locks the password entry for "account"
-u Try to unlock the password entry for "account"
-e Force the user to change password at next login
-n min Set minimum field for "account"
-x max Set maximum field for "account"
-w warn Set warn field for "account"
--service srv Use nameservice 'srv'
-D binddn Use dn "binddn" to bind to the LDAP directory
-P path Search passwd and shadow file in "path"
--stdin Read new password from stdin (root only)
--help Give this help list
--usage Give a short usage message
--version Print program version
yeah.. I dont understand why that option is not available...on mandy
This post has been edited by aioshin: 28 May 2006 - 06:33 AM
Mandriva 2008.1 @ hOMe
#4
Posted 28 May 2006 - 09:49 AM
passwd: bad argument -e: unknown option.
Sorry I can't help fix it but at least now you know it's not just you :)/>
#5
Posted 28 May 2006 - 11:27 AM
.
Is there a way to re-install the passwd util package? from source?
Mandriva 2008.1 @ hOMe
#6
Posted 28 May 2006 - 04:35 PM
#7
Posted 28 May 2006 - 06:13 PM
#8
Posted 29 May 2006 - 01:55 AM
tyme, on May 29 2006, 12:35 AM, said:
I already check the GUI passwd management of mandriva and NONE..
scarecrow, on May 29 2006, 02:13 AM, said:
#urpmi shadow-util The package(s) are already installed
I think that's what you mean.. so its been already installed.
.
Oh mandy.. mandy, what have you done?...
This post has been edited by aioshin: 29 May 2006 - 01:56 AM
Mandriva 2008.1 @ hOMe
#9
Posted 29 May 2006 - 09:31 AM
#10
Posted 29 May 2006 - 10:40 AM
Unfortunately, you can't remove passwd, since it will remove basesystem and break your system. This is what it said on mine:
urpme passwd removing package basesystem-10.1-5mdk.i586 will break your system Nothing to remove
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
My Linux Solutions | Linux Systems Limited
#11
Posted 29 May 2006 - 03:17 PM
.
hope they will add that function on their passwd-util, Suse, Xandros and Mepis have that so why not on them... though a very little function, but still, very important on a system that handles multiple users...
This post has been edited by aioshin: 29 May 2006 - 03:26 PM
Mandriva 2008.1 @ hOMe
#12
Posted 29 May 2006 - 03:35 PM
#chage -d 0 username
sorry, I really did'nt know it, but now I know
.
Thanks Guys !
This post has been edited by aioshin: 29 May 2006 - 03:48 PM
Mandriva 2008.1 @ hOMe

Help
MultiQuote









