[maemo-developers] [maemo-developers] busybox, sh and $HOME

From: william maddler news at maddler.net
Date: Fri Feb 9 03:42:17 EET 2007
Tryed that already, but nothing. sh/xterm keeps $HOME=/home/user

I really have no idea... and looks like it doesn't look at .profile

damn

young dave wrote:
> Hi,
> I guess you need reboot the device.
> 
> under our N770's osso-xterm ,
> 1. sudo gainroot
> 2. mkdir /media/mmc1/user
> 3. usermod -d /media/mmc1/user user
> 4. reboot
> 
> Regards
> dave
> 
> Then the user home directory changed to /media/mmc1/user.
> 
> 2007/2/9, william maddler <news at maddler.net>:
>> Ok, maybe it's me, but this thing is driving me nut!
>> I have in my /etc/passwd:
>>
>> user:XXXXXXXXXXXX:29999:29999::/media/mmc3/user:/bin/sh
>>
>> which is supposed to make /media/mmc3/user the home for user. And unless
>> I'me a complete demented, that should be ok.
>>
>> Now, if I ssh from outside and do
>>
>> echo $HOME
>>
>> I get the correct response: /media/mmc3/user
>>
>> but if I try from inside Xterm on  N800 the result is...
>>
>> /home/user
>>
>> !!!
>>
>> Am I wrong, is it normal?!
>>
>> DOH!
>>
>> _______________________________________________
>> maemo-developers mailing list
>> maemo-developers at maemo.org
>> https://maemo.org/mailman/listinfo/maemo-developers
>>
> 



More information about the maemo-developers mailing list