Date: Sat, 18 Jan 2014 11:45:13 -1000 From: Al Plant <noc@hdk5.net> To: Frank Leonhardt <frank2@fjl.co.uk> Cc: freebsd-questions@freebsd.org Subject: Re: Removing user from lan. Solved! Message-ID: <52DAF5E9.2050701@hdk5.net> In-Reply-To: <52DA7032.3050109@fjl.co.uk> References: <52D89B2C.3080801@hdk5.net> <20140117205006.768a233e.freebsd@edvax.de> <52D98BA6.5000100@hdk5.net> <52DA7032.3050109@fjl.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
Frank Leonhardt wrote: > On 17/01/2014 19:59, Al Plant wrote: >> Polytropon wrote: >>> On Thu, 16 Jan 2014 16:53:32 -1000, Al Plant wrote: >>>> Aloha, >>>> >>>> Could anyone please send me to a how to on removing an unwanted user >>>> from the lan on FreeBSD 9 and 8. >>>> I tried to remove the adduser file and name and I still cant use the >>>> name that was there before. >>> >>> Deleting the home directory is not sufficient, as the account >>> will still be active in files like /etc/passwd and the user >>> database. So while an interactive login might be inhibited >>> (due to a non-extisting home directory or login shell), other >>> kinds of access, like FTP and maybe even scp, may still be >>> possible. That's why the account has to be deleted entirely. >>> The "rmuser" and "pw userdel" commands can do this. They also >>> make sure the user is removed from the (generated) binary >>> databases. >>> >>> >>> >>>> I read the man page and cant see from that how to get rid off all >>>> the parts of the old account. >>> >>> You should have a look at "man rmuser" and "man pw". >>> >>> >> ############# >> >> >> Thanks, Olivier and Poly.... >> >> I finally remembered the command when you mentioned. You are great at >> helping fix mind blocks. >> >> I just used "rmuser" and the problem is gone. >> >> :) > > 'cept that won't remove mySQL (etc), Pure-FTP, SAMBA, various email and > other accounts commonly found on FreeBSD boxes. It does remove users' > files from common locations (e.g. /tmp) but not the entire disk, and it > does take care of crontabs. In other words, this only removes accounts > assuming you are running the base system only, but if you've installed > anything else you need to check them too. As I said earlier, it depends > on your configuration. > > Regards, Frank. > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > Aloha Frank, Thanks for the info. I dont use anything but base on these servers. I will add your sage advice to my file of stuff to know in case. AL ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 7.2 - 8.0 - 9* + < email: noc@hdk5.net > "All that's really worth doing is what we do for others."- Lewis Carrol
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52DAF5E9.2050701>