ash fails to read $HOME/.profile

KP.Kirchdoerfer kapeka at bering-uclibc.de
Sun Jun 25 14:20:15 UTC 2017


HI;

Am Samstag, 24. Juni 2017, 22:03:36 schrieb Tito:
> On 06/24/2017 06:21 PM, KP.Kirchdoerfer wrote:
> > Hi;
> > 
> > I'm using busybox 1.25.1 and when loggingin as root it successfully reads
> > /root/.profile.
> > 
> > Running latest busybox snapshot this fails due to this commit
> > 
> > https://git.busybox.net/busybox/commit/shell?id=2eb0a7e1b9a579ba34e4780c9e
> > d8e74f38bc6b85
> > 
> > What can be wrong on my side and needs to be changed for a newer busybox
> > version?
> > 
> > TIA kp
> 

> Hi,
> is the HOME var set correctly in the environment after login in as
> set in the users' /etc/passwd entry?

The file question is /root/.profile:;
 
> Like e.g:
> 
> HOME='/home/tito'

env shows:
HOME=/root

> Is the /etc/passwd file entry correct?
> 
> tito:x:1000:1000:tito,,,:/home/tito:/bin/bash

Even though mine looked like this one
root:x:0:0:root:/root:/bin/sh  

I've changed to 
root:x:0:0:root,,,:/root:/bin/sh  

but makes no difference.

I've thought also adding ENV to the code is an addition and is an "either 
(~/.profile), or(ENV)"...?

regards kp

> 
> 
> Ciao,
> Tito
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox



More information about the busybox mailing list