vipw(8) System Manager's Manual vipw(8)NAME
vipw - Edits the /etc/passwd file
SYNOPSIS
/usr/sbin/vipw
DESCRIPTION
You use the vipw command to edit the /etc/passwd file with the editor defined in the EDITOR environment variable. If the variable is not
set, the default editor is vi.
The vipw command performs basic consistency checks on the edited file. If a hashed indexed passwd existed previously, the vipw command
uses the mkpasswd command to create recreate it.
The command must not be used on systems that use extended security attributes since it cannot set or change them. You must be root to run
this command. Only root and security administrators should have execute access to this command.
Since the vipw command cannot effectively change all the attributes of users, it should not be used in a secure environment.
The vipw command accesses the following files, and requires the listed permissions:
------------------------------
Permissions File
------------------------------
rw /etc/passwd
rw /etc/passwd.pag
rw /etc/passwd.dir
rw /etc/ptmp
rw /etc/ptmp.pag
rw /etc/ptmp.dir
------------------------------
EXAMPLE
To edit the /etc/passwd file, type the following command and add the required line entry: vipw
FILES
Specifies the command path
RELATED INFORMATION
Commands: passwd(1), passwd(4), adduser(8), mkpasswd(8) delim off
vipw(8)
Check Out this Related Man Page
vipw(1B) SunOS/BSD Compatibility Package Commands vipw(1B)NAME
vipw - edit the password file
SYNOPSIS
/usr/ucb/vipw
DESCRIPTION
vipw edits the password file while setting the appropriate locks, and does any necessary processing after the password file is unlocked. If
the password file is already being edited, then you will be told to try again later. The vi(1) editor will be used unless the environment
variable VISUAL or EDITOR indicates an alternate editor.
vipw performs a number of consistency checks on the password entry for root, and will not allow a password file with a "mangled" root entry
to be installed. It also checks the /etc/shells file to verify the login shell for root.
FILES
/etc/ptmp
/etc/shells
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO passwd(1), vi(1), passwd(4), attributes(5)SunOS 5.11 14 Sep 1992 vipw(1B)
Anyone know how to change the location of the MOTD file from the default /etc/motd?
An annoying person with root access has found out how to edit the file and change my MOTDs.
Help me. (14 Replies)
Good Day
Our HP box was hacked and the passwd file has been altered,there are only 2 user accounts active,and these dont have any administrative rights.I need to edit the passwd file to correct the su and root entries.
Does any body have any suggestions as to how i can do this with out the root... (10 Replies)
Hi All,
I have AIX 5.1 & I forgot the root password. I find out the solution is to boot in single-mode and remove the root password from the /etc/passwd file. My question is how to boot in single-mode? Also is there any password required when booting in this mode? (9 Replies)
hi
i have a RHEL 4 and have forgot root passwd
tried to boot in by singel user and then changing the passwd but it's not letting me do that ......throwing some weird error as .......manipulation
i also tried to make a new user from CLI but even though it's not letting me in from that user as... (12 Replies)
My goal is to protect the /etc/passwd from unauthorized viewing. I wish ti change the permissions of the file to :
-r--r----- 1 root bin
so only root or accounts of the "bin" group could query this sensitive file. All our other processes have been ajusted to not need any info from... (16 Replies)
Hi friends, i need a favour from u all i made a small change in home pc it is INTEL i had change /etc/passwd i just change the shell for the root instead of sh i kept bash and i had taken back up of the file /etc/passwd. now the problem is i am not able to log in as a root i got a error NO Shell... (10 Replies)
hi guys
I'm having these problems with these commands and I have not idea why
# passwd
If 'passwd' is not a typo you can run the following command to lookup the package that contains the binary:
command-not-found passwd
-bash: passwd: command not found
# useradd temp
Warning:... (15 Replies)
Hi!
i've been searching a way to display the users who are in the /etc/passwd directory...using ls or grep or cat command should do it?i can't find a way to get this right..i mean none of the preview commands function sounded good to me to use... (9 Replies)
Hi ,
I want to go out of vi editor temporarily and execute a command in command prompt and again going back to the editor . Is it possible . Any help on this is really helpful.
1. Need to open vi
2. Temporarily come out and execute a command and go back to vi editor (6 Replies)
Hi there!
I'm new to Unix and haven't done command line stuff since MS-Dos and Turbo Pascal (hah!),
I would love some help figuring out this basic command (what I assume is basic).
I'd like to add a User to the permissions of all files in a folder and all files in all subfolders, as well... (9 Replies)