• Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding users (command line)  RSS feed

 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically the subject says it all. How do you add users in Linux at the command line? Basically I'm telnetting in and I wanted to create users that way. I've tried using useradd but it doesn't seem to like that. Anyone have any suggestions? Thanks.

Rob
 
Tim Holloway
Saloon Keeper
Posts: 18799
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think there's no less than 3 commands: useradd, adduser, and another whose name escapes me. Plus probably a "redhat-configure-user" command for the Red Hat platform.

Some of the above names are aliases, so there's fewer actual add user programs than commands.

It's common for install programs (such as RPM) to create user accounts, so you're not exactly doing anything exotic. Most likely you just need to make sure that the useradd command is in your path (or explicitly, a la "/sbin/useradd") and that you RTFMP'd (read the foolish man page) to get the options right.

And, of course, the "--help" option is you good friend in Linux
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!