Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpm package not creating telegraf user in centos-5 box. #994

Closed
bugcy013 opened this issue Apr 8, 2016 · 1 comment
Closed

rpm package not creating telegraf user in centos-5 box. #994

bugcy013 opened this issue Apr 8, 2016 · 1 comment

Comments

@bugcy013
Copy link

bugcy013 commented Apr 8, 2016

Hi Guys,

Have tried installed package in centos-5 machine, When I install I am getting this useradd: unrecognized option--system'` error.

]# rpm -ivh telegraf-0.12.0-1.x86_64.rpm 
Preparing...                ########################################### [100%]
   1:telegraf               ########################################### [100%]
useradd: unrecognized option `--system'
Usage: useradd [options] LOGIN

Options:
  -b, --base-dir BASE_DIR   base directory for the new user account
                home directory
  -c, --comment COMMENT     set the GECOS field for the new user account
  -d, --home-dir HOME_DIR   home directory for the new user account
  -D, --defaults        print or save modified default useradd
                configuration
  -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
  -f, --inactive INACTIVE   set password inactive after expiration
                to INACTIVE
  -g, --gid GROUP       force use GROUP for the new user account
  -G, --groups GROUPS       list of supplementary groups for the new
                user account
  -h, --help            display this help message and exit
  -k, --skel SKEL_DIR       specify an alternative skel directory
  -K, --key KEY=VALUE       overrides /etc/login.defs defaults
  -m, --create-home     create home directory for the new user
                account
  -l,                       do not add user to lastlog database file
  -M,                       do not create user's home directory(overrides /etc/login.defs)
  -r,                       create system account
  -o, --non-unique      allow create user with duplicate
                (non-unique) UID
  -p, --password PASSWORD   use encrypted password for the new user
                account
  -s, --shell SHELL     the login shell for the new user account
  -u, --uid UID             force use the UID for the new user account
  -Z, --selinux-user SEUSER use a specific SEUSER for the SELinux user mapping

chown: `telegraf:telegraf': invalid user

for simple workaround :: Before install package have created user telegraf. After I don't see the error.

@sparrc
Copy link
Contributor

sparrc commented Apr 8, 2016

I believe that we are no longer support CentOS 5, mainly because of a package checksum problem, see #734

cc @rossmcdonald

@sparrc sparrc closed this as completed Apr 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants