From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,5ed1576afd890c50 X-Google-Attributes: gidfa528,public Path: controlnews3.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed.stueberl.de!newsrout1.ntli.net!news-in.ntli.net!newspeer1-win.server.ntli.net!newsfe4-gui.POSTED!53ab2750!not-for-mail From: "Patrick Giblett" Newsgroups: comp.unix.tru64 References: <409626c6$0$24308$4d4ef98e@read.news.ch.uu.net> Subject: Re: Get status of an user account in Tru64 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Message-ID: Date: Sun, 23 May 2004 09:44:47 +0100 NNTP-Posting-Host: 81.111.251.24 X-Trace: newsfe4-gui 1085305489 81.111.251.24 (Sun, 23 May 2004 09:44:49 GMT) NNTP-Posting-Date: Sun, 23 May 2004 09:44:49 GMT Organization: NTL Xref: controlnews3.google.com comp.unix.tru64:64 If you don't turn on the trusted features then there is no such thing as password expiry What you have in /etc/passwd & /etc/group is it. I believe than putting a * in the login field invalidates the MD5 hashinf algorythm for password validation and hence stops login. There may be otheways but this seems to be the standard way to do it "Soterro" wrote in message news:409626c6$0$24308$4d4ef98e@read.news.ch.uu.net... > Hello, > > I'm interested to know if there's a way to ask for the status of a > certain user account from within a script. The machine is not having the > trusted features enabled. My question is not related to a specific > version of Tru64, I would appreciate something that works since 4.0F or > such if possible of course. > > As far as I noticed, the administrative lock puts a 'Nologin' string in > front of the password entry in the passwd file, so this could be a > hands-on solution. However I don't know where to look whether the > account (and its password) is expired. > > Is there a command allowing to get the user's status or do I have to > parse myself some (which?) configuration files? dxaccounts doesnt say > anything about expiration, by the way (and wouldn't be a solution anyway > as I can't use it from a script). > > Thanks a lot, > S