I try to log into photon as a non-root user from a boot script with the
This what my ph script look like:
test -a /dev/photon
if [ $? -eq 0 ]; then
if test ! -z “$LOGNAME”; then
Photon -g -l’phlogin2 “-Sphshutdown -l” -n’ &
devi-hirun kbd fd -d/dev/kbd ps2 mousedev
The user already exist and I manage to log into photon “successfully”.
The problem is that the user’s home path is not set and has root
If I log on as this non-root user by using the command line login
procedure, everything works fine and this user definitely do not have
What am I doing wrong?
It’s interesting that I have created a serious security gap in my system
where a non-root user can sucessfully log in and have root priviledges.