File: setup-user.sh

package info (click to toggle)
adios2 2.11.0%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,972 kB
  • sloc: ansic: 250,306; cpp: 189,875; yacc: 18,929; f90: 15,117; python: 8,047; perl: 7,126; sh: 3,049; lisp: 1,106; xml: 1,011; lex: 948; makefile: 598
file content (15 lines) | stat: -rwxr-xr-x 276 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

if command -v apt-get >/dev/null
then
  apt-get update
  apt-get install -y sudo
  apt-get clean
elif command -v yum >/dev/null
then
  yum install -y sudo
  yum clean all
fi 

useradd -m -s /bin/bash adios
echo "adios ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/adios