Re: script or line command to change a line
From: Leyden, Joseph (LeydenJ_at_METRO.NET)
Date: 05/26/05
- Previous message: Justin Bleistein: "Re: mksysb dvd"
- Maybe in reply to: Leyden, Joseph: "Re: script or line command to change a line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 26 May 2005 12:22:50 -0700 To: aix-l@Princeton.EDU
Thanks!
chuser maxage=0 user
was all there was to it.
Now I feel so feebleminded but thanks to your patience.
Joe
-----Original Message-----
From: Holger.VanKoll@SWISSCOM.COM [mailto:Holger.VanKoll@SWISSCOM.COM]
Sent: Thursday, May 26, 2005 11:34 AM
To: aix-l@Princeton.EDU
Subject: Re: script or line command to change a line
chuser will be happy to do this for you :-)
_____
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
Leyden, Joseph
Sent: Thursday, May 26, 2005 8:20 PM
To: aix-l@Princeton.EDU
Subject: Re: script or line command to change a line
I'm not familiar with vi, ex, awk .... but
basically I want a line change in a file.
The old line is:
maxage = 8
to
maxage = 0
only from one user (say user oracle),
in the /etc/security/users
Looks like I have to find 'oracle' first and change
the first occurence of 'maxage = 8'. (but I dont
know how to do it)
Can someone show me how this is done for free?
Thanks,
Joe
- Previous message: Justin Bleistein: "Re: mksysb dvd"
- Maybe in reply to: Leyden, Joseph: "Re: script or line command to change a line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|