Try : 'which userdel' On Thu, Feb 13, 2003 at 02:37:31PM -0700, Michael Havens wrote: /_[bmike1@localhost bmike1]$ man usrdel /_No manual entry for usrdel /_[bmike1@localhost bmike1]$ man delusr /_No manual entry for delusr /_[bmike1@localhost bmike1]$ man rmusr /_No manual entry for rmusr /_[bmike1@localhost bmike1]$ man usrrm /_No manual entry for usrrm /_[bmike1@localhost bmike1]$ /_ /_Well, I tried but that is the wrong command. Care to try again? /_ /_On Tuesday 11 February 2003 08:50 pm, Scott wrote: /_> On Tue, 11 Feb 2003, Michael Havens wrote: /_> > How is it done? I had created a user and decided later that I wanted it /_> > to be in another location so I dragged the users directory to the garbage /_> > gin as su and: /_> /_> Dragging the users directory to the garbage bin will only remove the /_> directory. The users account, in /etc/passwd, still exists. /_> /_> > [root@localhost bmike1]# adduser -m test -d /home2 /_> > adduser: user test exists /_> /_> There are a few ways to remove an account - all are ultimately the same in /_> the end - from a command line use userdel. IE /_> /_> userdel [-r] username /_> /_> The -r - if used - will remove the users home directory in addition to /_> removing the account. Leaving the -r off will remove the user but leave /_> the home directory intact (this is sometimes desirable). /_> /_> Another method would be to use a gui tool (I think there are several). /_> The gui tool usually works in this manner: /_> /_> Select (hilight) ther user you want to remove and click the remove button. /_> /_> Depending on the particular gui tool, you may be prompted to remove the /_> home directory, etc. /_> /_> > so I decided a new nane wasa in order because it would not accept 'test'. /_> > /_> > [root@localhost bmike1]# adduser -m Downloadtest -d /home3 /_> > /_> > and I thought "Better make sure it is where I want it. /_> > /_> > [root@localhost bmike1]# updatedb /_> > locate [root@localhost bmike1]# locate Downloadtest /_> > /var/spool/mail/Downloadtest /_> /_> This command is not ideal for finding the just created home directory. /_> Locate is going to look for all files that are owned by the specified /_> user. Hmmmm..... now that I think about it, it should have found the home /_> directory - unless for some reason its not owned by Downloadtest. Try the /_> finger command. Using my account as an example, it would look something /_> like this: /_> /_> finger sbrews /_> login: sbrews name: scott /_> directory: /home/sbrews ... /_> /_> complete output not pasted - but you get the idea. Note the directory for /_> the user. /_> /_> > Why didn't it go to /home3? /_ /_-- /_:-)~Mike~(-: /_--------------------------------------------------- /_PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us /_To subscribe, unsubscribe, or to change you mail settings: /_http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss