On Wed, Dec 12, 2001 at 03:42:38PM -0700, L. C. Robinson wrote: > It seems to me that it would be much easier to just change the > username on such an account. Do: > man usermod > for details. That won't take care of user's mailbox name and it's permissions nor it will change the ownership of files in user's home dir as far as I know. At least it won't work that way in all versions of Unix. > > LCR > > On Wed, 12 Dec 2001, Rafael wrote: > > > On Wed, Dec 12, 2001 at 03:44:15PM -0500, Dave Mielke wrote: > > > [quoted lines by John J. Boyer on December 12, 2001, at 14:38] > > > > > ..... deleted > > > > > > > > >How do I delete a user? > > > > > > userdel old-user-name > > > > > > >How do I stop a running daemon like fetchmail without rebooting? > > > > > > killall fetchmail > > > > > > >How can I transfer the messages in the inbox of one use to the inbox of > > > >another? > > > > > > cd /var/spool/mail > > > cat old-user-name >>new-user-name > > > rm old-user-name > > > > A safer way to move email is to stop mail daemon, > > > > mv old-user-name new-user-name > > chown new-user-name.new-user-name new-user-name > > > > that is, change the ownership to new user otherwise you won't be able to > > read it and restart the mail server. If you do it otherwise your cat > > command could mess the email box if MTA was writing into it at the same > > time. > > > > > > > > Note the two right angle brackets before new-user-name in the cat command. This > > > is important. It means append. If you only put one of them there then existing > > > messages for new-user-name will be deleted as the whole file will be replaced. > > > > > -- > L. C. Robinson > reply to no_spam+munged_lcr@onewest.net.invalid > > People buy MicroShaft for compatibility, but get incompatibility and > instability instead. This is award winning "innovation". Find > out how MS holds your data hostage with "The *Lens*"; see > "CyberSnare" at http://www.netaction.org/msoft/cybersnare.html -- Rafael