Functions | |
def | add_arguments |
def | main |
Variables | |
string | create_user_script |
string | help_text = "Create an account on a robot" |
string | name = "create-account" |
string | setup_user_script |
The create account command creates a new user account on the specified robot. Copyright 2015 Fetch Robotics Inc. Author: Alex Henning
def fetch_tools.commands.create_account.add_arguments | ( | parser | ) |
Definition at line 122 of file create_account.py.
def fetch_tools.commands.create_account.main | ( | args | ) |
Definition at line 36 of file create_account.py.
00001 """ 00002 echo %(fetch_password)s | sudo -S adduser %(user)s --gecos '%(fullname)s,,,' --disabled-password && 00003 echo '%(user)s:%(password)s' | sudo chpasswd && 00004 sudo usermod -G adm,audio,cdrom,sudo,dip,plugdev,lpadmin,sambashare %(user)s 00005 """
Definition at line 20 of file create_account.py.
string fetch_tools::commands::create_account::help_text = "Create an account on a robot" |
Definition at line 18 of file create_account.py.
string fetch_tools::commands::create_account::name = "create-account" |
Definition at line 17 of file create_account.py.
00001 """ 00002 export FETCH_WORKSPACE=%(remote_workspace)s 00003 export ROS_DISTRO=%(ros_distro)s 00004 echo source /opt/ros/%(ros_distro)s/setup.bash >> ~/.bashrc.d/40-ros-setup.sh 00005 echo source %(remote_workspace)s/devel/setup.bash >> ~/.bashrc.d/40-ros-setup.sh 00006 echo '%(password)s' | sudo -S echo granting root priveleges for installation 00007 bash ~/initialize.sh 00008 """
Definition at line 26 of file create_account.py.