jonschipp / ISLET

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

make USER option doesn't configure sudo corrently #31

Closed jonschipp closed 9 years ago

jonschipp commented 9 years ago

$ make user-config USER=training

Doesn't change the username in islet sudo policy $ cat /etc/sudoers.d/islet demo ALL = (root) NOPASSWD:/sbin/iptables -t nat -I PREROUTING -i * -p tcp --source * --dport * -j DNAT --to demo ALL = (root) NOPASSWD:/sbin/sysctl -w net.ipv4.conf._.route_localnet=1 demo ALL = (root) NOPASSWD:/bin/fgrep -q \ /var/lib/docker/repositories-_

jonschipp commented 9 years ago

Also, set apropriate USER in /etc/islet/islet.conf

chown: invalid user: ‘demo:demo’ Unable to create /var/tmp/islet.db Connection to 104.131.187.165 closed.

jonschipp commented 9 years ago

Done