adduser in slackware
Hello everybody. When I use the command adduser in slackware and enter an expiration date that's beyond the year 2009 I get an error stating that this is not a valid expiration date. Somebody else posted the adduser script in one of their posts, and I found the following regular expression for testing the date:
"^[[:digit:]]\{4\}[-]\?[[:digit:]]\{2\}[-]\?[[:digit:]]\{2\}$")" Now, I'm not an expert, but this should allow for dates beyond 2009, shouldn't it? If so, why is this happening, and how could I go about adding users whose accounts expire in, say, 2015? Thanks, James |
this my example of adduser.... i think you need to key in full date in a format ofYYYY-MM-DD
Login name for new user []: lin User ID ('UID') [ defaults to next available ]: Initial group [ users ]: Additional groups (comma separated) []: Home directory [ /home/lin ] Shell [ /bin/bash ] Expiry date (YYYY-MM-DD) []: 2015-01-01 |
When I enter "2015-01-01" I end up with an invalid date error. I can only enter dates prior to the year 2010... What'd'ya think?
|
Hard to say ... try without the quotes?
What version of slack is it, what's the version of the adduser script, have you made modifications to the script after the installation? Cheers, Tink |
Slack10. No modifications to the adduser script. Just did a fresh install so that I could maintain better track of my source installations... So can't get to you yet on the version #. Same thing without the quotes though... Not really a big deal, just kind of curious.
Thanks, James Kassemi |
what is your current system date?
|
Well, it was set 2004, but I set it to 2005 earlier today.
|
All times are GMT -5. The time now is 01:40 PM. |