MandrivaUsers.org : how to force change of password on next login? - MandrivaUsers.org

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

how to force change of password on next login? how to do it on Mandriva 10.2? [solved]

#1 User is offline   aioshin 

  • MUB Addict
  • Group: Members
  • Posts: 816
  • Joined: 23-August 04

Posted 28 May 2006 - 06:11 AM

ok.. Im still on LE 2005, and dont find that option on it, ( I dont know if 2006 have this).. on xandros, it has an option on GUI passwd management to force the user to change the passwd on the next login... on cli.. -e option is used on the command "passwd".. same with OpenSuse, it has the -e option to do the same on cli... how should I do it on mandriva? any Idea? (man page says nothing about it...)

TIA!!!

btw, NIS or LDAP is not an option... :P/>

[moved from Software by spinynorman]
Mandriva 2008.1 @wORk
Mandriva 2008.1 @ hOMe
0

#2 User is offline   tyme 

  • Serial Slacker
  • View blog
  • Group: Platinum
  • Posts: 13,309
  • Joined: 24-October 02

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

#3 User is offline   aioshin 

  • MUB Addict
  • Group: Members
  • Posts: 816
  • Joined: 23-August 04

Posted 28 May 2006 - 06:32 AM

here''s the output of passwd --help on Mandriva 2005 and they are similar with centos (an RHClone)

Quote

Usage: passwd [OPTION...] <accountName>
-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

passwd - change password information

-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 @wORk
Mandriva 2008.1 @ hOMe
0

#4 User is offline   neddie 

  • Moo
  • Group: Members
  • Posts: 2,095
  • Joined: 28-April 05

Posted 28 May 2006 - 09:49 AM

I also have 2005 and I haven't got the -e option either. It's not in the help, it's not in the man, and when I try it I get the error:
passwd: bad argument -e: unknown option
.
Sorry I can't help fix it but at least now you know it's not just you :)/>
Dell 510m, Mandriva 2009.0, KDE 3
Shuttle K48, Debian Squeeze, Gnome
linux.activityworkshop.net
0

#5 User is offline   aioshin 

  • MUB Addict
  • Group: Members
  • Posts: 816
  • Joined: 23-August 04

Posted 28 May 2006 - 11:27 AM

I dont get it... might be that RedHat does not have that option either.. as i've mentioned above.. the output of command "passwd --help" on my Mandriva 2005 and on My Centos Box are similar.. does not have the -e option... Centos is a Clone of redhat.. but why?
.
Is there a way to re-install the passwd util package? from source?
Mandriva 2008.1 @wORk
Mandriva 2008.1 @ hOMe
0

#6 User is offline   tyme 

  • Serial Slacker
  • View blog
  • Group: Platinum
  • Posts: 13,309
  • Joined: 24-October 02

Posted 28 May 2006 - 04:35 PM

did you check in the user configuration program (GUI) that mandriva provides? maybe they have the option hidden in there.
0

#7 User is offline   scarecrow 

  • Platinum
  • Group: Platinum
  • Posts: 5,157
  • Joined: 16-February 05

Posted 28 May 2006 - 06:13 PM

Are you sure the "shadow" package is installed? (it isn't by default in some distros).
0

#8 User is offline   aioshin 

  • MUB Addict
  • Group: Members
  • Posts: 816
  • Joined: 23-August 04

Posted 29 May 2006 - 01:55 AM

View Posttyme, on May 29 2006, 12:35 AM, said:

did you check in the user configuration program (GUI) that mandriva provides? maybe they have the option hidden in there.


I already check the GUI passwd management of mandriva and NONE..

View Postscarecrow, on May 29 2006, 02:13 AM, said:

Are you sure the "shadow" package is installed? (it isn't by default in some distros).


#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 @wORk
Mandriva 2008.1 @ hOMe
0

#9 User is offline   arctic 

  • Platinum
  • View blog
  • Group: Global Moderator
  • Posts: 8,192
  • Joined: 11-June 04

Posted 29 May 2006 - 09:31 AM

Couldn't find it either... Only thing available was the old "change password after XX days" function. :unsure:/>
Mageia 1
0

#10 User is offline   ianw1974 

  • Platinum
  • View blog
  • Group: Admin
  • Posts: 14,049
  • Joined: 09-March 05

Posted 29 May 2006 - 10:40 AM

I can confirm Red Hat doesn't have it either. So it's not just Mandy that have done it.

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

Ian Walker

Light travels faster than sound. This is why some people appear bright until you hear them speak.........

Posted Image2 x systems installed with Ubuntu 14.04 x86_64 (Laptop and Desktop)
Posted Image1 x systems installed with Gentoo x86_64 (Desktop)

My Linux Solutions | Linux Systems Limited
0

#11 User is offline   aioshin 

  • MUB Addict
  • Group: Members
  • Posts: 816
  • Joined: 23-August 04

Posted 29 May 2006 - 03:17 PM

mandy, redhat, centos, have'nt check FC about it, but I dont understand why that option is not available on them, is that particular function, on them some kind of vulnerability? :unsure:/>
.
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 @wORk
Mandriva 2008.1 @ hOMe
0

#12 User is offline   aioshin 

  • MUB Addict
  • Group: Members
  • Posts: 816
  • Joined: 23-August 04

Posted 29 May 2006 - 03:35 PM

eh... to them... disregard the request..(but just incase they would like to, its better).. . got an answer from a certain guy. though different command but sort of have the same effect ..

#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 @wORk
Mandriva 2008.1 @ hOMe
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users