Open thienhoang23 opened 6 years ago
Root should definitely not be 700! I wonder why that happened ... can you cpio -ivt < initramfs.linux_amd64.cpio and see what it shows there?
It shows root as 700
My / is 0700 in the repo.
I think you need to work your way back to why the original uinit dologin() function is failing. That's the key to this whole mess.
So do this: change cmds/uinit.go to NOT run the dologin command. The run it by hand and it should fail. The ls -l / and see what the mode on bbin is chmod 755 /bbin and try again. Then if that fails, check / and try again.
I changed cmds/uinit.go to not run the dologin command.
installcommand: trying to build {cmdName: wingo, Path [$PATH], err exit status 1, out can't load package: package github.com/u-root/wingo: open /src/github.com/u-root/wingo/cmd_hacks.go: permission denied }
well this is a good first step. The permissions on / are wrong and we need to know why. So let's focus on that.
Commit id: 511cf6fc999ba6e8f9982103864430b9d56c4baf
Build Machine Configurations:
Steps for reproduction:
Ctrl-U
Ctrl-Alt-backspace
to exit X11X11 user startup: fork/exec /bbin/uinit: permission denied
The following are results of some further investigation after the above reproduction steps:
ls -a -l /
in the test Chromebook show that /, /go, /lib, /tcz, /usr owned by the user who built the usb stick on the build machine (in this case, userid: 533858, groupid: 5762). Furthermore, the permission on / is 700When I did
chmod 755 /
as a root and ranuinit -login
, I got the following output:Upon entering
ls -a -l /src/github.com/u-root/wingo
, I found cmd_hacks.go and a lot other .go files all have permission 640Upon changing the permissions in all the files in the /src/github.com/u-root/wingo directory tree to 755, running
uinit -login
again generated the following message:Cannot mount AppImage, please check your FUSE setup. You might still be able to extract the contents of this AppImage If you it with the --appimage-extract option. See https://github.com/AppImage/AppImageKit/wiki/FUSE for more information Failed to open libnotify
open dir error: No such file or directory installcommand: trying to build {cmdName: wingo, Path [$PATH], err exit status 1, out go install github.com/u-root/wingo/vendeor/github.com/BurntSushi/xgbutil/xrect: mkdir /pkg/linux_amd64/github.com/u-root/wingo: permission denied go install go/token: mkdir go/pkg/linux_amd64/go/: permission denied go install go install github.com/u-root/wingo/vendeor/github.com/BurntSushi/xgbutil/xrect: mkdir go/pkg/linux_amd64/go/: permission denied [more go install permission denied error] }
Welcome to NiChrome! Welcome to NiChrome! Starting up user mode processes Run wingo Run flwm Run AppChrome Run chrome aterm: can't open display :0 x11 user failed: X11 start /usr/local/bin/aterm []: exit startus 1 X11 user startup: exit status 1 wait: exit status 1
installcommand: trying to build {cmdName: wingo, Path [$PATH], err exit status 1, out go install github.com/u-root/wingo: open /ubin/wingo: permission denied