RespawnDespair / wifibroadcast-image-builder

Image builder for the EZ-Wifibroadcast project
MIT License
20 stars 22 forks source link

File system "ro" after ssh connection #40

Closed Yes21 closed 6 years ago

Yes21 commented 6 years ago

When connected via ssh, the file system remains "read only" ( in 1.6rc6 it becomes writable when a ssh connection is open).

To make the system rw manually you can just type rw.

RespawnDespair commented 6 years ago

this part in the main.sh should run the 'rw' command and show a welcome text. I have never hooked up the pi via ethernet directly so i can't confirm myself.

*) # all other ttys used for interactive login
    if [ "$CAM" == "0" ]; then
        echo "Welcome to EZ-Wifibroadcast 1.6 (RX) - type 'ro' to switch filesystems back to read-only"
        rw
    else
        echo "Welcome to EZ-Wifibroadcast 1.6 (TX) - type 'ro' to switch filesystems back to read-only"
        rw
    fi

If someone can confirm this does not work as expected i will set something up. Are you using a router or...?

Yes21 commented 6 years ago

I can't confirm this issue. The file system is rw when ssh.

I think my problem was that with 1.6rc6, I could ssh with root@192.168.0.18. With your image I can't anymore log with root@192.168.0.18, but only with pi@192.168.0.18. So I've to sudo each time I want to do something ...

When I connect via ssh, I doesn't see "Welcome to EZ-Wifibroadcast 1.6 (RX or TX)". But I see :

Linux wbc 4.14.54-v7+ #3 SMP Tue Oct 16 11:31:46 CEST 2018 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Oct 23 17:04:48 2018 from 192.168.0.17

SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.

pi@wbc(rw):~$
RespawnDespair commented 6 years ago

No thread necromancy here, but in the latest image-builder the filesystem should be readonly...Haven't checked to be honest.

rodizio1 commented 6 years ago

In the original 1.6RC6 image, root is allowed to login via ssh and the password is set to "raspberry" also for root, (see /etc/ssh/sshd_config), maybe that is not the case in the image builder images?