LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-02-2006, 06:09 PM   #1
r.stiltskin
Member
 
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231

Rep: Reputation: 31
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?
 
Old 02-02-2006, 06:37 PM   #2
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
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
 
Old 02-08-2006, 05:21 AM   #3
~=gr3p=~
Member
 
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Users ressetting passwords pbickerd Linux - Security 4 01-11-2006 01:05 PM
remove passwords from all users? paul_mat Linux - Networking 2 06-23-2005 05:59 PM
Cant set passwords for new users ribbones Linux - Newbie 2 09-03-2003 10:52 AM
Help with users and passwords???? graystarr Linux - Software 3 04-21-2003 09:40 AM
users/passwords scipts Anthony Programming 1 03-27-2002 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration