View Single Post
  #1   (View Single Post)  
Old 7th July 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default Difference between chpass and pw

Hi everyone,
I added this user account vftp to my freebsd by mistake. I want to delete it and this is what is being reported.
:
Code:
[root@ /usr/home]# ls
disappearedng
[root@ /usr/home]# rmuser vftp
Matching password entry:

vftp:*:1003:1004::0:0:User &:/usr/home/vftp-c:/sbin/nologin

Is this the entry you wish to remove? yes
Remove user's home directory (/usr/home/vftp-c)? no
Removing user (vftp): passwdpw: user 'vftp' does not exist: No such file or directory
.
[root@ /usr/home]# pw userdel vftp
pw: user 'vftp' does not exist: No such file or directory

[root@ /usr/home]# chpass vftp
This is my chpass vftp
Code:
#Changing user information for vftp.
Login: vftp
Password: *LOCKED**
Uid [#]: 1003
Gid [# or name]: 1004
Change [month day year]:
Expire [month day year]:
Class:
Home directory: /usr/home/vftp-c
Shell: /sbin/nologin
Full Name: User &
Office Location:
Office Phone:
Home Phone:
Other information:
~
Apparently, I can't delete vftp because it doesn't exist. However, chpass shows that the login vftp exists.

How can i completely remove everything related to vftp?
Reply With Quote