Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-02-2006, 06:09 PM
|
#1
|
Member
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231
Rep:
|
passwords for new users
What's the best way to set up new user accounts with a temporary password that can only be used once, so they are required to create new passwords for themselves immediately?
|
|
|
02-02-2006, 06:37 PM
|
#2
|
Senior Member
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016
Rep:
|
man passwd shows:
Code:
Password expiry information
The password aging information may be changed by the super user...
If you wish to immediately expire an account's password, you can use the
-e option. This in effect can force a user to change his/her password at
the user's next login. You can also use the -d option to delete a user's
password (make it empty). Use caution with this option since it can make
an account not require a password at all to login, leaving your system
open to intruders.
it's not really clear if that means the user has to be logged in when you do passwd -e on them, or whether you can do it when making the account (or when they are otherwise logged out), meaning they could log in once and then would have to change the pw. but if it doesn't work the way you need, you could use the option to have it expire within a day, which might be the next best thing. man passwd 
|
|
|
02-08-2006, 05:21 AM
|
#3
|
Member
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227
Rep:
|
Quote:
Originally Posted by slackhack
man passwd shows:
it's not really clear if that means the user has to be logged in when you do passwd -e on them, or whether you can do it when making the account (or when they are otherwise logged out), meaning they could log in once and then would have to change the pw. but if it doesn't work the way you need, you could use the option to have it expire within a day, which might be the next best thing. man passwd 
|
hey in my fedora core 3 passwd -e option doesn't exsist. I used chage to achieve this or passwd -x 0 <username>.
Last edited by ~=gr3p=~; 02-08-2006 at 05:24 AM.
|
|
|
All times are GMT -5. The time now is 06:48 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|