CC-3572: pypo user should have shell set to /bin/false

-fixed
This commit is contained in:
Martin Konecny 2012-03-31 22:06:05 -04:00
parent 926231513e
commit e1fd58198c
1 changed files with 1 additions and 7 deletions

View File

@ -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