[bmike1@localhost bmike1]$ which usrdel which: no usrdel in (/usr/X11R6/bin:/usr/local/bin:/bin:/usr/bin) [bmike1@localhost bmike1]$ locate usrdel [bmike1@localhost bmike1]$ It would seem that I don't have it? On Thursday 13 February 2003 02:46 pm, Mike Starke wrote: > 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 wan= ted > 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 th= e > /_> 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 severa= l). > /_> 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 directo= ry. > /_> Locate is going to look for all files that are owned by the specifi= ed > /_> user. Hmmmm..... now that I think about it, it should have found t= he > home /_> directory - unless for some reason its not owned by Downloadte= st.=20 > Try the /_> finger command. Using my account as an example, it would l= ook > something /_> like this: > /_> > /_> finger sbrews > /_> login: sbrews=09=09name: scott > /_> directory: /home/sbrews ... > /_> > /_> complete output not pasted - but you get the idea. Note the direct= ory > 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 > --------------------------------------------------- > 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 --=20 :-)~Mike~(-: