 |
 |
create user account -- change password @ login
|
 |
|
 |
|
Mac Enthusiast
Join Date: Nov 2001
Location: Washington, DC 20009
Status:
Offline
|
|
Is there a way to create an account through the command line that requires the user to set their own password during their initial login?
I didn't see anything like this mentioned in the useradd man pages. Thanks.
|
|
Just my $.02 :-)
Ti Powerbook 1Ghz w/ Superdrive ......and lovin' it! :)
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status:
Offline
|
|
Originally posted by milf:
Is there a way to create an account through the command line that requires the user to set their own password during their initial login?
I didn't see anything like this mentioned in the useradd man pages. Thanks.
One way I have done it is to create a script called 'firstlogin' then have an entry in .tcshrc file that calls firstlogin. firstlogin looks like this:
Code:
#!/bin/sh
echo You are logging in for the first time and are required to make a new password.
echo
passwd
rm ~/firstlogin
|
|
-DU-...etc...
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Nov 2001
Location: Washington, DC 20009
Status:
Offline
|
|
This sounds like a possible solution. What if the user aborts the password change or fails to enter the correct initial password? The user will still have access to the system and may could, possibly, never change his/her password. Is this correct?
Also, what should the entry in the .tcshrc file look like? Thanks.
|
|
Just my $.02 :-)
Ti Powerbook 1Ghz w/ Superdrive ......and lovin' it! :)
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
I'm pretty sure there is a way to do this in NetInfo manager. I was poking around and some of the accounts have an "expire" property.
I'd suggest looking to NetInfo to help you find your solution. Try creating a test account and setting the "expire" property to divverent values and see how they affect login (-1, 0, 1, 2, etc).
|
|
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Apr 2000
Status:
Offline
|
|
Originally posted by Arkham_c:
I'm pretty sure there is a way to do this in NetInfo manager. I was poking around and some of the accounts have an "expire" property.
I'd suggest looking to NetInfo to help you find your solution. Try creating a test account and setting the "expire" property to divverent values and see how they affect login (-1, 0, 1, 2, etc).
Yes, you can indeed make logins expire; I don't know about passwords, though, but I imagine it's possible.
I'll have a play around with that tomorrow, and find out.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|