Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Managing accounts, etc., without using the CDE interface.
@ 1997-06-23  4:00 Donald G. Marchlenski
  1997-06-24  4:00 ` Juergen Schroeder
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Donald G. Marchlenski @ 1997-06-23  4:00 UTC (permalink / raw)



I am running DU 4.0a

I tried to modify a user's default shell to ksh by editing the /etc/passwd file
but the change wasn't recognized when the user logged in and he was still in
the bourne shell.  I had to run the GUI account management program from the CDE
to make the change stick.  There is a file called /etc/passwd.pag that
apparently has something to do with this.

Has anyone run across this?  Does the GUI system management keep me from simply
managing my system through the old methods of editing files, etc.?  In this
case it seems to be that way.  /etc/passwd.pag is a binary file that I assume
must be changed by the CDE account manager program.

Thanks,
Don Marchlenski
The Ohio State University at Newark
and
Central Ohio Technical College



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

* Re: Managing accounts, etc., without using the CDE interface.
  1997-06-23  4:00 Managing accounts, etc., without using the CDE interface Donald G. Marchlenski
@ 1997-06-24  4:00 ` Juergen Schroeder
  1997-06-24  4:00 ` Matt Cheek
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Juergen Schroeder @ 1997-06-24  4:00 UTC (permalink / raw)



Donald G. Marchlenski (march@ohstpy.mps.ohio-state.edu) wrote:
: 
: I tried to modify a user's default shell to ksh by editing the /etc/passwd file
: but the change wasn't recognized when the user logged in and he was still in
: the bourne shell.  I had to run the GUI account management program from the CDE
: to make the change stick.  There is a file called /etc/passwd.pag that
: apparently has something to do with this.
: 
: Has anyone run across this?  Does the GUI system management keep me from simply
: managing my system through the old methods of editing files, etc.?  In this
: case it seems to be that way.  /etc/passwd.pag is a binary file that I assume
: must be changed by the CDE account manager program.

If you play around with an editor on the passwd  file  you  have  to  do
"mkpasswd"  which updates the binary passwd file. (But I thought that is
only valid for the passwords ...).

Better is to use vipw which calls your default editor, opens  and  locks
the passwd file and calls mkpasswd after editing.

Juergen



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

* Re: Managing accounts, etc., without using the CDE interface.
  1997-06-23  4:00 Managing accounts, etc., without using the CDE interface Donald G. Marchlenski
  1997-06-24  4:00 ` Juergen Schroeder
@ 1997-06-24  4:00 ` Matt Cheek
  1997-07-01  4:00   ` Dan Duncan
  1997-06-25  4:00 ` Tim Mooney
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 7+ messages in thread
From: Matt Cheek @ 1997-06-24  4:00 UTC (permalink / raw)



Donald G. Marchlenski (march@ohstpy.mps.ohio-state.edu) wrote:
: I am running DU 4.0a

: I tried to modify a user's default shell to ksh by editing the /etc/passwd
: file but the change wasn't recognized when the user logged in and he was
: still in the bourne shell.  I had to run the GUI account management program
: from the CDE to make the change stick.  There is a file called
: /etc/passwd.pag that apparently has something to do with this.

: Does the GUI system management keep me from simply managing my system
: through the old methods of editing files, etc.?

: /etc/passwd.pag is a binary file that I assume must be changed by the
: CDE account manager program.

Don,

I suspect you edited the /etc/passwd file directly (e.g. vi /etc/passwd).
If so, you are correct that the changes were not propogated to the 
/etc/passwd.dir AND /etc/passwd.pag files. You can still edit the
/etc/passwd file to make quick changes, you just either need to:

a) run the mkpasswd(8) command to update the hashed password database
(/etc/passwd.dir and /etc/passwd.pag)

or

b) use the vipw(8) command to edit /etc/passwd and when you exit from
vi, the hashed password database file will be automatically updated.

Hope this helps.
Matt
--
MCI Telecommunications       | Matthew.Cheek@MCI.Com
2424 Garden of the Gods Road | MCI Mail: 201-2666
Colorado Springs, CO  80919  | Tel: (719) 535-6677



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

* Re: Managing accounts, etc., without using the CDE interface.
  1997-06-23  4:00 Managing accounts, etc., without using the CDE interface Donald G. Marchlenski
  1997-06-24  4:00 ` Juergen Schroeder
  1997-06-24  4:00 ` Matt Cheek
@ 1997-06-25  4:00 ` Tim Mooney
  1997-06-26  4:00 ` Robert Lowe
  1997-06-27  4:00 ` Paul Henderson
  4 siblings, 0 replies; 7+ messages in thread
From: Tim Mooney @ 1997-06-25  4:00 UTC (permalink / raw)



In article <1997Jun23.182715.10460@ohstpy>,
Donald G. Marchlenski <march@ohstpy.mps.ohio-state.edu> wrote:
> I am running DU 4.0a
> 
> I tried to modify a user's default shell to ksh by editing the /etc/passwd file
> but the change wasn't recognized when the user logged in and he was still in
> the bourne shell.  I had to run the GUI account management program from the CDE
> to make the change stick.  There is a file called /etc/passwd.pag that
> apparently has something to do with this.

Don-

Either use vipw (which locks the password file and rebuilds the hashed passwd
database) or use the 4.x usermod command, which is non-interactive.

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: Managing accounts, etc., without using the CDE interface.
  1997-06-23  4:00 Managing accounts, etc., without using the CDE interface Donald G. Marchlenski
                   ` (2 preceding siblings ...)
  1997-06-25  4:00 ` Tim Mooney
@ 1997-06-26  4:00 ` Robert Lowe
  1997-06-27  4:00 ` Paul Henderson
  4 siblings, 0 replies; 7+ messages in thread
From: Robert Lowe @ 1997-06-26  4:00 UTC (permalink / raw)



Donald G. Marchlenski wrote:
> 
> I am running DU 4.0a
> 
> I tried to modify a user's default shell to ksh by editing the /etc/passwd file
> but ...

What's wrong with:

# chsh joeuser

???

-Robert



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

* Re: Managing accounts, etc., without using the CDE interface.
  1997-06-23  4:00 Managing accounts, etc., without using the CDE interface Donald G. Marchlenski
                   ` (3 preceding siblings ...)
  1997-06-26  4:00 ` Robert Lowe
@ 1997-06-27  4:00 ` Paul Henderson
  4 siblings, 0 replies; 7+ messages in thread
From: Paul Henderson @ 1997-06-27  4:00 UTC (permalink / raw)
  To: Donald G. Marchlenski


Donald G. Marchlenski wrote:
> 
> I tried to modify a user's default shell to ksh by editing the /etc/passwd file
> but the change wasn't recognized when the user logged in and he was still in
> the bourne shell.  I had to run the GUI account management program from the CDE
> to make the change stick.  There is a file called /etc/passwd.pag that
> apparently has something to do with this.
> 

When designing the CDE/SysMan management tools, we made a decision to
NEVER preclude the traditional methods of editing, command line
modification, etc. Unlike some of our rivals who create binary databases
of system information, we decided that was not acceptable. So we always
use the traditional underlying files that all of you know and love ;-)

In the case of accounts, the better way to propogate a change is to use
vipw to edit, or do a mkpasswd after the straight edit. This is a
security feature.



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

* Re: Managing accounts, etc., without using the CDE interface.
  1997-06-24  4:00 ` Matt Cheek
@ 1997-07-01  4:00   ` Dan Duncan
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Duncan @ 1997-07-01  4:00 UTC (permalink / raw)



->Donald G. Marchlenski (march@ohstpy.mps.ohio-state.edu) wrote:
->: I tried to modify a user's default shell to ksh by editing the /etc/passwd
->: file but the change wasn't recognized when the user logged in and he was
->: still in the bourne shell.  I had to run the GUI account management program

And the BOFH answer you can give the user is:
man chsh

-DanD

--
#  Dan D (kd4igw)  dand@rmii.com    dand@frottage.com  http://rmii.com/~dand
#  Of all the strange 'crimes' that human beings have legislated out of nothing,
#  'blasphemy' is the most amazing- with 'obscenity' and 'indecent exposure' 
#  fighting it out for second and third place.  -Lazarus Long



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

end of thread, other threads:[~1997-07-01  4:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-06-23  4:00 Managing accounts, etc., without using the CDE interface Donald G. Marchlenski
1997-06-24  4:00 ` Juergen Schroeder
1997-06-24  4:00 ` Matt Cheek
1997-07-01  4:00   ` Dan Duncan
1997-06-25  4:00 ` Tim Mooney
1997-06-26  4:00 ` Robert Lowe
1997-06-27  4:00 ` Paul Henderson

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