change in /etc/passwd

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aliwarid
    New Member
    • Aug 2007
    • 1

    change in /etc/passwd

    Hi All,
    Can any one tell me how can i make changes in /etc/passwd file ?
    Is it right way to make changes with "vi" command in solaris ?
    Or
    Is there any other procedure or command like for LOCKING a user "passwd -l username".

    Regards,
    -Ali S
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by aliwarid
    Hi All,
    Can any one tell me how can i make changes in /etc/passwd file ?
    Is it right way to make changes with "vi" command in solaris ?
    Or
    Is there any other procedure or command like for LOCKING a user "passwd -l username".

    Regards,
    -Ali S
    Hi Ali. You may be better served by posting in the Linux/Unix/BSD Forum.

    Hope that helps.

    Comment

    • numberwhun
      Recognized Expert Moderator Specialist
      • May 2007
      • 3467

      #3
      Originally posted by aliwarid
      Hi All,
      Can any one tell me how can i make changes in /etc/passwd file ?
      Is it right way to make changes with "vi" command in solaris ?
      Or
      Is there any other procedure or command like for LOCKING a user "passwd -l username".

      Regards,
      -Ali S
      One of the first rules of administration in *nix is you DO NOT edit the /etc/passwd file. Commonly these days, it is shadowed and editing it directly is a very bad thing.

      Depending on your version of *nix, you will want to fire up one of the user administration tools that come with your distribution.

      Regards,

      Jeff

      Comment

      Working...