Re: usermod change username problem

2009-04-14 Thread Zhengquan Zhang
On Tue, Apr 14, 2009 at 08:43:28AM +0300, Andrei Popescu wrote: > AFAIK filesystems don't know about usernames, just uid. I *think* I did > it this way: > > - logout my user and switch to single user (or reboot into single user > mode) > - edit /etc/passwd /etc/group and other relevant files >

Re: usermod change username problem

2009-04-13 Thread Andrei Popescu
On Sun,12.Apr.09, 10:57:00, Zhengquan Zhang wrote: > > So basically I don't want to use olduser as my username again and want > to change 'everything' associated with olduser to become newuser. such > the home directory, spoolfile, cron, etc... and I dont want the olduser > appear again. AFAIK fi

Re: usermod change username problem

2009-04-13 Thread Giancarlo Pegoraro
Hi! Il giorno dom, 12/04/2009 alle 10.57 -0500, Zhengquan Zhang ha scritto: > Dear Debian community: > I have got a specific problem using usermod to change my previous > username olduser to newuser. > > This is what I use: > sudo usermod -l newuser -md /home/newuser olduser[:w > > newuser is t

usermod change username problem

2009-04-12 Thread Zhengquan Zhang
Dear Debian community: I have got a specific problem using usermod to change my previous username olduser to newuser. This is what I use: sudo usermod -l newuser -md /home/newuser olduser[:w newuser is the new login name and -md use /home/newuser as the new home directory and moves /home/olduser