Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Passwd on Digital Unix 4.0E
@ 2000-01-11  5:00 Brad Van Orden
  2000-01-11  5:00 ` Ed Wensell III
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Brad Van Orden @ 2000-01-11  5:00 UTC (permalink / raw)


Hello All,

I have two questions relating to the passwd file on Digital Unix 4.0E.  I have
two alpha workstations with this OS.  One is configured with enhanced security
and I can add a user OK with the command line adduser, but the system disables
the account until I go in with the GUI tool and enable it.  This is a little
bit of a pain since the box is about 20 miles away.  Does anyone know of a
method to enable an account with a command line?

On the second box, I am using base security.  If I use adduser, whenever it
calls useradd, I get an error message that some other process has the passwd
or group file locked (even if I am in single user mode).  I can use vipw and
add the user and manually create the directory, etc.  However, the user keeps
getting the error message that there is no directory until I put the user into
the system group in /etc/group.  Does anyone have a clue where I could start
looking for this culprit?

Regards,

Brad Van Orden



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Passwd on Digital Unix 4.0E
  2000-01-11  5:00 Passwd on Digital Unix 4.0E Brad Van Orden
@ 2000-01-11  5:00 ` Ed Wensell III
  2000-01-12  5:00   ` Nikola Milutinovic
  2000-01-13  5:00 ` Andrew Moar
  2000-01-13  5:00 ` Scott Cheadle
  2 siblings, 1 reply; 7+ messages in thread
From: Ed Wensell III @ 2000-01-11  5:00 UTC (permalink / raw)


Brad Van Orden wrote:
> 
> Hello All,
> 
> I have two questions relating to the passwd file on Digital Unix 4.0E.  I have
> two alpha workstations with this OS.  One is configured with enhanced security
> and I can add a user OK with the command line adduser, but the system disables
> the account until I go in with the GUI tool and enable it.  This is a little
> bit of a pain since the box is about 20 miles away.  Does anyone know of a
> method to enable an account with a command line?

I haven't tried it, but I've been told to use edauth... From looking at
the man page, it's fairly cryptic.

Personally, I really wish there were some good command-line enhanced
security account tools. Either that or make the regular adduser, passwd,
etc fully enhanced security aware... But if wishes were horses...

If I wanted to be stuck to a GUI account manager, I'd run NT... :)

> On the second box, I am using base security.  If I use adduser, whenever it
> calls useradd, I get an error message that some other process has the passwd
> or group file locked (even if I am in single user mode).  I can use vipw and
> add the user and manually create the directory, etc.  However, the user keeps
> getting the error message that there is no directory until I put the user into
> the system group in /etc/group.  Does anyone have a clue where I could start
> looking for this culprit?

This one is easy:
(http://ftp.digital.com/pub/Digital/dec-faq/Digital-UNIX):

	M18. Why does dxaccounts tells me that the password and 
	group files are locked?

	If a dxaccounts process exits ungracefully (e.g. if a 
	kill -9 is used) then it sometimes leaves a file in 
	/etc called .AM_is_running. Deleting this file will
	solve the problem.
                                        [Ian Lloyd]

My understanding is this is something (finally) fixed in Tru64 (5.0??).
-- 

Until soon...
Ed Wensell III
Systems and Operations Support, Pellissippi State
E-mail hint: A college with a dot net domain?



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Passwd on Digital Unix 4.0E
  2000-01-11  5:00 ` Ed Wensell III
@ 2000-01-12  5:00   ` Nikola Milutinovic
  2000-01-17  5:00     ` Tim Mooney
  0 siblings, 1 reply; 7+ messages in thread
From: Nikola Milutinovic @ 2000-01-12  5:00 UTC (permalink / raw)


Ed Wensell III wrote:
> 
> Brad Van Orden wrote:
> >
> > Hello All,
> >
> > I have two questions relating to the passwd file on Digital Unix 4.0E.  I have
> > two alpha workstations with this OS.  One is configured with enhanced security
> > and I can add a user OK with the command line adduser, but the system disables
> > the account until I go in with the GUI tool and enable it.  This is a little
> > bit of a pain since the box is about 20 miles away.  Does anyone know of a
> > method to enable an account with a command line?
> 
> I haven't tried it, but I've been told to use edauth... From looking at
> the man page, it's fairly cryptic.

The reason why newly created accounts are locked is because account deafults say
so. Either manually edit the file /etc/auth/system/defaults and change
":u_lock:" to ":@u_lock:" or do it in Account Manager -> local templates ->
Default template.

While you are there, you can change expiration and lifetime for accounts, if you
wish.

> Personally, I really wish there were some good command-line enhanced
> security account tools. Either that or make the regular adduser, passwd,
> etc fully enhanced security aware... But if wishes were horses...

(sigh)

> If I wanted to be stuck to a GUI account manager, I'd run NT... :)

:-)

>        If a dxaccounts process exits ungracefully (e.g. if a
>         kill -9 is used) then it sometimes leaves a file in
>         /etc called .AM_is_running. Deleting this file will
>         solve the problem.
>                                         [Ian Lloyd]
> 
> My understanding is this is something (finally) fixed in Tru64 (5.0??).

If an instance is running it has this file to lockout all other commands dealing
with users. Maybe if it wrote the PID of the lock owner, other commands could
check to see if that process is one of "their kind"...

Nix.
-- 
The angle of the dangle is proportional to the heat of the meat.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Passwd on Digital Unix 4.0E
  2000-01-11  5:00 Passwd on Digital Unix 4.0E Brad Van Orden
  2000-01-11  5:00 ` Ed Wensell III
@ 2000-01-13  5:00 ` Andrew Moar
  2000-01-13  5:00 ` Scott Cheadle
  2 siblings, 0 replies; 7+ messages in thread
From: Andrew Moar @ 2000-01-13  5:00 UTC (permalink / raw)


In article <387B816F.8A65D030@netisi.com>,
	Brad Van Orden <Brad.VanOrden@netisi.com> writes:
> 
> I have two questions relating to the passwd file on Digital Unix 4.0E.  I have
> two alpha workstations with this OS.  One is configured with enhanced security
> and I can add a user OK with the command line adduser, but the system disables
> the account until I go in with the GUI tool and enable it.  This is a little
> bit of a pain since the box is about 20 miles away.  Does anyone know of a
> method to enable an account with a command line?

usermod is your friend...

usermod -D -x administrative_lock_applied=0    - to change the default or

usermod -x administrative_lock_applied=0 <username>  -to change a user

And yes, you do have to type out the entire "administrative_lock_appied" - 
anyone would think this is VMS ;-)

Andrew
-- 
        Andrew Moar : Ph +61 3 9479 1505  email A.Moar@latrobe.edu.au
         Unix Environment Specialist, Information Technology Services
                    La Trobe University, Melbourne



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Passwd on Digital Unix 4.0E
  2000-01-11  5:00 Passwd on Digital Unix 4.0E Brad Van Orden
  2000-01-11  5:00 ` Ed Wensell III
  2000-01-13  5:00 ` Andrew Moar
@ 2000-01-13  5:00 ` Scott Cheadle
  2 siblings, 0 replies; 7+ messages in thread
From: Scott Cheadle @ 2000-01-13  5:00 UTC (permalink / raw)


For the TCB Box, type

echo "`edauth -g <Insert username here>`u_lock@" | edauth -s

Regards,

Scott Cheadle.


Brad Van Orden wrote:

> Hello All,
>
> I have two questions relating to the passwd file on Digital Unix 4.0E.  I have
> two alpha workstations with this OS.  One is configured with enhanced security
> and I can add a user OK with the command line adduser, but the system disables
> the account until I go in with the GUI tool and enable it.  This is a little
> bit of a pain since the box is about 20 miles away.  Does anyone know of a
> method to enable an account with a command line?
>
> On the second box, I am using base security.  If I use adduser, whenever it
> calls useradd, I get an error message that some other process has the passwd
> or group file locked (even if I am in single user mode).  I can use vipw and
> add the user and manually create the directory, etc.  However, the user keeps
> getting the error message that there is no directory until I put the user into
> the system group in /etc/group.  Does anyone have a clue where I could start
> looking for this culprit?
>
> Regards,
>
> Brad Van Orden




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Passwd on Digital Unix 4.0E
  2000-01-12  5:00   ` Nikola Milutinovic
@ 2000-01-17  5:00     ` Tim Mooney
  2000-01-18  5:00       ` Nikola Milutinovic
  0 siblings, 1 reply; 7+ messages in thread
From: Tim Mooney @ 2000-01-17  5:00 UTC (permalink / raw)


In article <387C4463.44C2F5F8@ev.co.yu>,
Nikola Milutinovic  <Nikola.Milutinovic@ev.co.yu> wrote:
> 
> The reason why newly created accounts are locked is because account deafults say
> so. Either manually edit the file /etc/auth/system/defaults and change
> ":u_lock:" to ":@u_lock:" or do it in Account Manager -> local templates ->
> Default template.

Nikola-

Unfortunately, I don't think that's correct.  useradd completely ignores the
settings for u_lock in the defaults database.  It *does* honor whatever you
set up as the Default template, though (i.e. in root's .sysman/Account_defaults
file).

This is documented in the release notes for recent versions of Tru64, e.g.
4.0F's 4.3.7.4 section.

Tim
-- 
Tim Mooney                              mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J1, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Passwd on Digital Unix 4.0E
  2000-01-17  5:00     ` Tim Mooney
@ 2000-01-18  5:00       ` Nikola Milutinovic
  0 siblings, 0 replies; 7+ messages in thread
From: Nikola Milutinovic @ 2000-01-18  5:00 UTC (permalink / raw)


Tim Mooney wrote:
> 
> In article <387C4463.44C2F5F8@ev.co.yu>,
> Nikola Milutinovic  <Nikola.Milutinovic@ev.co.yu> wrote:
> >
> > The reason why newly created accounts are locked is because account deafults say
> > so. Either manually edit the file /etc/auth/system/defaults and change
> > ":u_lock:" to ":@u_lock:" or do it in Account Manager -> local templates ->
> > Default template.
> 
> Nikola-
> 
> Unfortunately, I don't think that's correct.  useradd completely ignores the
> settings for u_lock in the defaults database.  It *does* honor whatever you
> set up as the Default template, though (i.e. in root's .sysman/Account_defaults
> file).

Tim, I agree that both "dxaccounts -> Local Templates -> Default" and "useradd
-D" make desired changes, but it has to be stored somewhere. I've just checked,
after making modifications to Default template, those changes WERE reflected in
/etc/auth/system/defaults. Is there another file which stores this?

If there isn't, then simply editing this file should be enough. Or, if you want
to be absolutely correct, use "edauth -dd"

> This is documented in the release notes for recent versions of Tru64, e.g.
> 4.0F's 4.3.7.4 section.

I'm running DU 4.0D, what's the change in F?

Nix.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2000-01-18  5:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-11  5:00 Passwd on Digital Unix 4.0E Brad Van Orden
2000-01-11  5:00 ` Ed Wensell III
2000-01-12  5:00   ` Nikola Milutinovic
2000-01-17  5:00     ` Tim Mooney
2000-01-18  5:00       ` Nikola Milutinovic
2000-01-13  5:00 ` Andrew Moar
2000-01-13  5:00 ` Scott Cheadle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox