* Get status of an user account in Tru64 @ 2004-05-03 11:04 Soterro 2004-05-03 20:30 ` Mike Dorn 2004-05-23 8:44 ` Patrick Giblett 0 siblings, 2 replies; 7+ messages in thread From: Soterro @ 2004-05-03 11:04 UTC (permalink / raw) 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Get status of an user account in Tru64 2004-05-03 11:04 Get status of an user account in Tru64 Soterro @ 2004-05-03 20:30 ` Mike Dorn 2004-05-04 4:08 ` Eric de Redelijkheid 2004-05-23 8:44 ` Patrick Giblett 1 sibling, 1 reply; 7+ messages in thread From: Mike Dorn @ 2004-05-03 20:30 UTC (permalink / raw) Soterro wrote: > 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 If you aren't using the C2 security features, then there is no such thing as password expiration. With base security, there are only 7 fields: username, password, userid, groupid, description, home directory and shell. Locking an account, as you've noticed, just sticks the word "Nologin" in front of the encrypted password. The more sophisticated security fields that are used to track password changed dates, expiration, etc., are only available when you use the C2 security, and they are stored in a separate database. (Exactly where depends on a couple of things, particularly whether or not you're using NIS.) If you do use C2, you can get at this data using a script (if you're su), but it takes a little parsing with awk to do it. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Get status of an user account in Tru64 2004-05-03 20:30 ` Mike Dorn @ 2004-05-04 4:08 ` Eric de Redelijkheid 2004-05-04 9:21 ` Soterro 0 siblings, 1 reply; 7+ messages in thread From: Eric de Redelijkheid @ 2004-05-04 4:08 UTC (permalink / raw) Anno Domini 3-5-2004 22:30, Mike Dorn sprak aldus: > Soterro wrote: > >> 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 > > If you aren't using the C2 security features, then there is no such > thing as password expiration. With base security, there are only 7 > fields: username, password, userid, groupid, description, home > directory and shell. Locking an account, as you've noticed, just sticks > the word "Nologin" in front of the encrypted password. The more > sophisticated security fields that are used to track password changed > dates, expiration, etc., are only available when you use the C2 > security, and they are stored in a separate database. (Exactly where > depends on a couple of things, particularly whether or not you're using > NIS.) > > If you do use C2, you can get at this data using a script (if you're > su), but it takes a little parsing with awk to do it. > You mean of course enhanced security, which is not necassarily C2 security. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Get status of an user account in Tru64 2004-05-04 4:08 ` Eric de Redelijkheid @ 2004-05-04 9:21 ` Soterro 2004-05-04 15:08 ` Eric de Redelijkheid 0 siblings, 1 reply; 7+ messages in thread From: Soterro @ 2004-05-04 9:21 UTC (permalink / raw) Eric de Redelijkheid wrote: > Anno Domini 3-5-2004 22:30, Mike Dorn sprak aldus: >> more sophisticated security fields that are used to track password >> changed dates, expiration, etc., are only available when you use the >> C2 security, and they are stored in a separate database. (Exactly >> > You mean of course enhanced security, which is not necassarily C2 security. Are those enhanced security modes using the same tcb files and commands like a trusted system? S ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Get status of an user account in Tru64 2004-05-04 9:21 ` Soterro @ 2004-05-04 15:08 ` Eric de Redelijkheid 0 siblings, 0 replies; 7+ messages in thread From: Eric de Redelijkheid @ 2004-05-04 15:08 UTC (permalink / raw) Anno Domini 4-5-2004 11:21, Soterro sprak aldus: > Eric de Redelijkheid wrote: > >> Anno Domini 3-5-2004 22:30, Mike Dorn sprak aldus: >> >>> more sophisticated security fields that are used to track password >>> changed dates, expiration, etc., are only available when you use the >>> C2 security, and they are stored in a separate database. (Exactly > > >> > >> You mean of course enhanced security, which is not necassarily C2 >> security. > > > Are those enhanced security modes using the same tcb files and commands > like a trusted system? > > S Read http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/ARH95ETE/TITLE.HTM Appendix A: Enhanced Security Appendix E: C2 Level Security Configuration ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Get status of an user account in Tru64 2004-05-03 11:04 Get status of an user account in Tru64 Soterro 2004-05-03 20:30 ` Mike Dorn @ 2004-05-23 8:44 ` Patrick Giblett 2004-05-24 5:47 ` TyBreaker 1 sibling, 1 reply; 7+ messages in thread From: Patrick Giblett @ 2004-05-23 8:44 UTC (permalink / raw) 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" <soterroatyahoocom> 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Get status of an user account in Tru64 2004-05-23 8:44 ` Patrick Giblett @ 2004-05-24 5:47 ` TyBreaker 0 siblings, 0 replies; 7+ messages in thread From: TyBreaker @ 2004-05-24 5:47 UTC (permalink / raw) I believe any non-empty string less than 6 chars also invalidates it on similar algorithmic grounds. "Patrick Giblett" <Patrick.Giblett@ntlworld.com> wrote in message news:lo_rc.35$MU2.29@newsfe4-gui... > 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" <soterroatyahoocom> 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 > > ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-05-24 5:47 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-05-03 11:04 Get status of an user account in Tru64 Soterro 2004-05-03 20:30 ` Mike Dorn 2004-05-04 4:08 ` Eric de Redelijkheid 2004-05-04 9:21 ` Soterro 2004-05-04 15:08 ` Eric de Redelijkheid 2004-05-23 8:44 ` Patrick Giblett 2004-05-24 5:47 ` TyBreaker
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox