For some reasons, we often change user logins.
At machine 1, for example, we change login name from A to B.
Usually we'd like to type "vipw" and replace A with B at the editor screen, then quit editor with "wq".
I know that "pw usermod A -l B" cold also get the same result.
Is there any difference between these two methods?
It says that "vipw" will lock the user database until finish.
How about "pw" ?
At machine 1, for example, we change login name from A to B.
Usually we'd like to type "vipw" and replace A with B at the editor screen, then quit editor with "wq".
I know that "pw usermod A -l B" cold also get the same result.
Is there any difference between these two methods?
It says that "vipw" will lock the user database until finish.
How about "pw" ?