LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   adduser in slackware (https://www.linuxquestions.org/questions/linux-newbie-8/adduser-in-slackware-280096/)

jkassemi 01-20-2005 08:54 AM

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

xgreen 01-20-2005 09:06 AM

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

jkassemi 01-20-2005 09:26 AM

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?

Tinkster 01-20-2005 02:07 PM

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

jkassemi 01-20-2005 09:28 PM

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

xgreen 01-20-2005 10:00 PM

what is your current system date?

jkassemi 01-21-2005 02:16 AM

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.