|
@ -1,4 +1,4 @@ |
|
|
#!/bin/sh |
|
|
#!/bin/bash |
|
|
if [[ -z $(getent passwd "$1") ]]; then |
|
|
if [[ -z $(getent passwd "$1") ]]; then |
|
|
adduser "$1" --disabled-password --gecos "" --no-create-home --shell /usr/sbin/nologin |
|
|
adduser "$1" --disabled-password --gecos "" --no-create-home --shell /usr/sbin/nologin |
|
|
usermod -a -G sambashare "$1" |
|
|
usermod -a -G sambashare "$1" |
|
|