From e1fd58198c48249e0c265c01c2a92933c9c23cab Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Sat, 31 Mar 2012 22:06:05 -0400 Subject: [PATCH] CC-3572: pypo user should have shell set to /bin/false -fixed --- python_apps/create-pypo-user.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/python_apps/create-pypo-user.py b/python_apps/create-pypo-user.py index a071213cd..94e07d7dc 100644 --- a/python_apps/create-pypo-user.py +++ b/python_apps/create-pypo-user.py @@ -11,13 +11,7 @@ def create_user(username): if (output[0:3] != "uid"): # Make the pypo user print " * Creating user "+username - os.system("adduser --system --quiet --group --shell /bin/bash "+username) - - #set pypo password - p = os.popen('/usr/bin/passwd pypo 1>/dev/null 2>&1', 'w') - p.write('pypo\n') - p.write('pypo\n') - p.close() + os.system("adduser --system --quiet --group "+username) else: print "User already exists." #add pypo to audio group