strongloop / strong-service-install

Create/install system service for a given app
Other
7 stars 3 forks source link

(blocked) slc cli - "slc pm-install" error on SLES11(Z system) #11

Open jisoolee opened 8 years ago

jisoolee commented 8 years ago

Error adding user strong-pm:

/usr/sbin/useradd: unrecognized option '--user-group' Try useradd --help' oruseradd --usage' for more information.

Error installing service 'strong-pm': Command failed: /usr/sbin/useradd --home /var/lib/strong-pm --shell /bin/false --skel /dev/null --create-home --user-group --system -G strong-pm /usr/sbin/useradd: unrecognized option '--user-group' Try useradd --help' oruseradd --usage' for more information.

rmg commented 8 years ago

@JISOOLEE could you provide the output from running useradd --help on this server? It would be helpful for adding support.

jisoolee commented 8 years ago

@rmg nodebot1@wslnx036:~/jay> useradd --help Absolute path to 'useradd' is '/usr/sbin/useradd', so it might be intended to be run only by user with superuser privileges (eg. root). -bash: useradd: command not found nodebot1@wslnx036:~/jay> sudo useradd --help root's password: sudo: useradd: command not found

rmg commented 8 years ago

It does get run as root.. the output I want is from sudo /usr/sbin/useradd --help.

jisoolee commented 8 years ago

@rmg Oh, my bad. I made silly mistakes.

Usage: useradd ... useradd - create a new user

-c comment Set the GECOS field for the new account --show-defaults Print default values --save-defaults Save modified default values -D binddn Use dn "binddn" to bind to the LDAP directory -d homedir Home directory for the new user -e expire Date on which the new account will be disabled -f inactive Days after a password expires until account is disabled -G group,... List of supplementary groups -g gid Name/number of the users primary group -k skeldir Specify an alternative skel directory -m Create home directory for the new user -o Allow duplicate (non-unique) UID -P path Search passwd, shadow and group file in "path" -p password Encrypted password as returned by crypt(3) -u uid Force the new userid to be the given number -U umask Umask value used for creating home directory -r, --system Create a system account -s shell Name of the user's login shell --service srv Add account to nameservice 'srv' --help Give this help list --usage Give a short usage message -v, --version Print program version Valid services for --service are: files, ldap

rmg commented 8 years ago

This can be fixed, but it is blocked in #13 since even if the useradd call worked, it still wouldn't produce a useable system because SUSE11 doesn't use Upstart or systemd, which are the only ones we support.

sam-github commented 8 years ago

Blocked on https://github.com/strongloop-internal/scrum-nodeops/issues/148