Changing the user name

Laszlo Papp lpapp at kde.org
Wed May 14 06:38:13 UTC 2014


On Wed, May 14, 2014 at 7:28 AM, Ralf Friedl <Ralf.Friedl at online.de> wrote:
> Laszlo Papp wrote:
>>
>> is this possible? I am looking for something like "usermod -l" on desktop.
>>
>> Alternatively, I have to look into the get/setpwent syscalls?
>
> You can also use sed to change /etc/passwd
>
> sed -i -e /s^olduser:/newuser:/ /etc/passwd

Yeah, plus I need to move (i.e. rename) the home folder and then I
think I am done. Thanks.


More information about the busybox mailing list