Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

vigr(8) [redhat man page]

VIPW(8) 						    BSD System Manager's Manual 						   VIPW(8)

NAME
vipw, vigr -- edit the password or group files SYNOPSIS
vipw [-V] [--version] vigr [-V] [--version] DESCRIPTION
Vipw edits the password file after setting the appropriate locks, and does any necessary processing after the password file is unlocked. If the password file is already locked for editing by another user, vipw will ask you to try again later. The default editor for vipw is vi(1). Vigr edits the group file in the same manner as vipw. ENVIRONMENT
If the following environment variable exists it will be utilized by vipw: EDITOR The editor specified by the string EDITOR will be invoked instead of the default editor vi(1). SEE ALSO
passwd(1), vi(1), passwd(5) HISTORY
The vipw command appeared in 4.0BSD. The vigr command appeared in Util-Linux 2.6. Util-Linux 2.6 7 July 1996 Util-Linux 2.6

Check Out this Related Man Page

VIPW(8) 						    BSD System Manager's Manual 						   VIPW(8)

NAME
vipw -- edit the password file SYNOPSIS
vipw [-d directory] DESCRIPTION
The vipw utility edits the password file after setting the appropriate locks, and does any necessary processing after the password file is unlocked. If the password file is already locked for editing by another user, vipw will ask you to try again later. The default editor for vipw is vi(1). When run without options, vipw will work with the password files in /etc. The -d option may be used to specify an alternative directory to work with. The vipw utility performs a number of consistency checks on the password entries, and will not allow a password file with a ``mangled'' entry to be installed. If vipw rejects the new password file, the user is prompted to re-enter the edit session. Once the information has been verified, vipw uses pwd_mkdb(8) to update the user database. This is run in the background, and, at very large sites could take several minutes. Until this update is completed, the password file is unavailable for other updates and the new information is not available to programs. ENVIRONMENT
If the following environment variable exists it will be utilized by vipw: EDITOR The editor specified by the string EDITOR will be invoked instead of the default editor vi(1). This can be used to allow a script to non-interactively modify the password file. PW_SCAN_BIG_IDS See pwd_mkdb(8). SEE ALSO
chpass(1), passwd(1), passwd(5), adduser(8), pw(8), pwd_mkdb(8) HISTORY
The vipw utility appeared in 4.0BSD. BUGS
The mechanism for checking for password file modifications requires that the modification time of the password file changes. This means that in a default configuration where file system timestamps are not calculated with sub-second precision, EDITOR has to run for at least one sec- ond. Non-interactive editor scripts should invoke sleep(1) or equivalent to ensure this happens. BSD
February 14, 2012 BSD
Man Page

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

need help in shell scripting....

2011/10/10 06:30 VIDP 100630Z 30007KT 2500 HZ NSC 32/17 Q1014 NOSIG 2011/10/10 06:55 OPLA 100655Z 32005KT 5000 HZ FEW100 33/18 Q1015 NOSIG A29.98 2011/08/26 12:00 VEAT 261200Z 00000KT 4000 HZ SCT018 SCT025 FEW030CB BKN100 29/27 Q1001 NOSIG RMK CB TO SE SW 2011/08/26 08:00 VEGT 260800Z... (4 Replies)
Discussion started by: anuajay1988
4 Replies

2. Red Hat

Effects of /etc/fstab file!

Hi Folks! I accidentally overwrote in /etc/fstab file. Can you guys please tell me, what impact it would have created, when I restarted the machine(RHEL6). I executed this command : # blkid /dev/vda5 > /etc/fstab (17 Replies)
Discussion started by: nixhead
17 Replies

3. Programming

Bus Error: 10...Help please!

Hi all, I am writing a phonebook program to store names and number using a list. Here is the code for the function which allows the user to enter the name and number (where the error occurs). //THIS FUNCTION ADDS A NEW ENTRY TO THE phonebook_list void insert(void){ //variables int... (5 Replies)
Discussion started by: kdejan
5 Replies

4. UNIX for Dummies Questions & Answers

Why my find return not expected?

root@intel_5500_server:~# find / -name bin -o -name sbin /usr/bin /usr/lib64/pm-utils/bin /usr/lib64/rpm/bin /usr/sbin /bin /sbin root@intel_5500_server:~# which ovs-pki /usr/bin/ovs-pki why below command return nothing root@intel_5500_server:~# find /... (8 Replies)
Discussion started by: yanglei_fage
8 Replies

5. Homework & Coursework Questions

Network administration problem

Assuming there are 6 machines A,B,C,D,E, and F. I need to create user Lanson on machine A, Joanna on machine B, Jhonson on machine C, Levette on machine D, Jhon on machine E, and Emerson on machine F. a) Lanson, and Joanna must be in the same group. b) Levette must have all his the files... (5 Replies)
Discussion started by: Auser
5 Replies

6. Shell Programming and Scripting

PROBLEM with another binary file

Hello, I want to parse another file, i just want the ascii content, here the result of command od -bc file 0000000 036 000 024 000 000 000 377 376 377 010 060 000 060 000 060 000 036 \0 024 \0 \0 \0 377 376 377 \b 0 \0 0 \0 0 \0 0000020 060 000 062 000 106 000... (21 Replies)
Discussion started by: protocomm
21 Replies

7. UNIX for Advanced & Expert Users

Big problem: shell entry in /etc/passwd corrupted for user root

did a big mistake, changing root entry of /etc/passwd to root:x:0:0:root:/root:/usr/bin/tmux split-window -v \; attach as expected, now I can't login as root anymore. sudo ed /etc/passwd etc. doesn't work. Any idea? Use code tags to increase readability and follow the rules. (4 Replies)
Discussion started by: dodona
4 Replies