LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-20-2005, 08:54 AM   #1
jkassemi
Member
 
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106

Rep: Reputation: 15
Question 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
 
Old 01-20-2005, 09:06 AM   #2
xgreen
Member
 
Registered: Aug 2003
Distribution: Slackware,Ubuntu
Posts: 389

Rep: Reputation: 30
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
 
Old 01-20-2005, 09:26 AM   #3
jkassemi
Member
 
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106

Original Poster
Rep: Reputation: 15
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?
 
Old 01-20-2005, 02:07 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,988
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
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
 
Old 01-20-2005, 09:28 PM   #5
jkassemi
Member
 
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106

Original Poster
Rep: Reputation: 15
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
 
Old 01-20-2005, 10:00 PM   #6
xgreen
Member
 
Registered: Aug 2003
Distribution: Slackware,Ubuntu
Posts: 389

Rep: Reputation: 30
what is your current system date?
 
Old 01-21-2005, 02:16 AM   #7
jkassemi
Member
 
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106

Original Poster
Rep: Reputation: 15
Well, it was set 2004, but I set it to 2005 earlier today.
 
  


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
adduser jp_ Linux - General 6 10-18-2005 02:11 PM
adduser how? hraposo Slackware 8 08-20-2004 07:35 AM
adduser 64bitPlaya Slackware 2 08-13-2004 05:05 PM
adduser bally Linux - General 7 08-09-2004 01:28 PM
Adduser... Chijtska Linux - General 5 02-15-2002 07:53 AM


All times are GMT -5. The time now is 09:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration