jonschipp / ISLET

Isolated, Scalable, & Lightweight Environment for Training
Other
111 stars 18 forks source link

chown: invalid group: demo:islet #41

Closed jonschipp closed 9 years ago

jonschipp commented 9 years ago

Test for group and print message about adding it if it doesn't exist.

chown: invalid group: ‘demo:islet’
Fatal: /var/tmp/islet.db cannot be modified, do you have permission?
root@ip-172-31-8-142:~/islet# grep -r "do you have permission" *
bin/islet_login:  chown "${USER}:${GROUP}" "$DB" && chmod 660 "$DB" || quit "Fatal: $DB cannot be modified, do you have permission?"
jonschipp commented 9 years ago

Also print more helpful message like adding the USER or GROUP variables to output.

chown: changing ownership of ‘/var/tmp/islet.db’: Operation not permitted
Fatal: /var/tmp/islet.db cannot be modified, do you have permission?
Connection to 127.0.0.1 closed.
jonschipp commented 9 years ago

Complete https://github.com/jonschipp/ISLET/commit/8f8df2bb77af9462bdb7358128138e4990b6faab