AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  Manually Editing /etc/passwd with vi editor

    Posted Fri May 16, 2008 07:50 AM

    Originally posted by: SystemAdmin


    Hi Gurus,

    Is it recommended to manually edit /etc/passwd file using vi editor in AIX 5.3 ?

    Regards


  • 2.  Re: Manually Editing /etc/passwd with vi editor

    Posted Fri May 16, 2008 10:24 AM

    Originally posted by: orphy


    I do it but doesn't mean I would recommend it. For the most part, you can fix things in /etc/passwd with chuser/chfn so you rarely need to vi it. What are you changing in there?
    Orphy


  • 3.  Re: Manually Editing /etc/passwd with vi editor

    Posted Fri May 16, 2008 10:36 AM

    Originally posted by: tony.evans


    smit -> Will do 99% of what you need and will prevent you making any mistakes. Will also ensure everything that needs to be changed can be changed.

    chuser / chgroup / chsec -> Will do 99.9% of what you need to do, makes it hard to break things but not impossible and requires you to be aware of what settings are in what files.

    vi -> will do 100% of what you need to do, but you have to know what files to change, which files link together and the chances of breaking something are much higher.

    And if you have to ask, then the chances of breaking something are very high indeed.