DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #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
  #2   (View Single Post)  
Old 7th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

Try removing the user with vipw(8).
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 7th July 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default

I tried using vipw under su

this is what the system complains:

Code:
/: write failed, filesystem is full
pwd_mkdb: close: No space left on device
re-edit the password file?
Clearly I still have a lot of memory left.
What is wrong here? Is vipw's configuration file read-only which "tricked" the system to think that memory is full???
Reply With Quote
  #4   (View Single Post)  
Old 7th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

It's not complaining about being out of memory, but about the filesystem being full.
Is your root filesystem full? What's the output of:
% df -h
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #5   (View Single Post)  
Old 7th July 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default

Code:
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s4a    496M    489M    -33M   107%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad4s4e    496M    5.6M    450M     1%    /tmp
/dev/ad4s4f     49G     13G     32G    28%    /usr
/dev/ad4s4d    2.9G    160M    2.5G     6%    /var
Reply With Quote
  #6   (View Single Post)  
Old 7th July 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default

why is my /dev/ad4s4a full in capacity??
Reply With Quote
  #7   (View Single Post)  
Old 7th July 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Default

how to mass uninstall programs?
Reply With Quote
  #8   (View Single Post)  
Old 7th July 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default

Post the results of:
# find -x / -size +10M -exec du -hs {} \;
__________________
Kill your t.v.
Reply With Quote
  #9   (View Single Post)  
Old 7th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

Quote:
Originally Posted by disappearedng View Post
how to mass uninstall programs?
Packages and ports are installed to /usr/local/, as /usr/ different filesystem, this is not the cause of the problem.

See if there's anything that can be removed in /root, this is the home dir for the root user.
Also, when installing a new kernel, the old kernel is moved to /boot/kernel.old, if this directory is present, and the current kernel is working fine, then you can remove this.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Old 7th July 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

How to find where all your disk space went:
Code:
# cd /
# du -d 1 | sort -n
<check output for the largest hog>
# cd /<largest hog>
# ls -l
<check if anything jumps out>
# du -d 1 | sort -n
Repeat until you find where all the space went.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Striking difference between the Linux community and BSD windependence Off-Topic 79 6th December 2010 02:04 AM
What's the difference between these two memory modules? Carpetsmoker General Hardware 2 25th November 2008 03:13 PM
difference between jdk16 and diablo 1.6 cuongvt FreeBSD Ports and Packages 8 16th October 2008 12:17 AM
difference between rc.conf and loader.conf disappearedng FreeBSD General 5 3rd September 2008 05:54 AM


All times are GMT. The time now is 11:33 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick