owncloud-archive / pi-image

Scripts and configurations for Raspberry PI disk images
29 stars 8 forks source link

Change default shell admin account (ubuntu/ubuntu) #29

Open oparoz opened 8 years ago

oparoz commented 8 years ago

It would be best for a unique password to be generated for shell access and presented to users the first time they boot the device, like it's currently done when using the ownCloud VM.

@enoch85 has posted this:

The soulution is here: https://github.com/enoch85/ownCloud-VM/blob/master/production/owncloud_install_production.sh#L12-L13

And here is another soultion: https://github.com/owncloud/vm/blob/master/vagrant/oc8ce/change_pass_admin.sh

  1. Root user has a strong pre-generated pass that are stored as a file inside the owncloud dir with www-data permissions so that it's accessible inside ownCloud (maybe not so safe, but an option)
  2. Same goes for the regular user (or make a simple change_pass.sh script for the regular user that can be run from SHELL