• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Adding users (command line)

 
Ranch Hand
Posts: 838
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic