neocytrix Posted March 25, 2004 Report Share Posted March 25, 2004 Hello, Is there a command you can run as root to make a new user on a system from the command line? -Neocytrix Quote Link to comment Share on other sites More sharing options...
bvc Posted March 25, 2004 Report Share Posted March 25, 2004 adduser SE: man adduser Quote Link to comment Share on other sites More sharing options...
neocytrix Posted March 26, 2004 Author Report Share Posted March 26, 2004 Okay while were on the subject how do I delete users? And can someone explain how to make a shell account I typed adduser -s user1 and it says invalid shell, what shell do I use? Where do I specify the shell and user name? -Neocytrix Quote Link to comment Share on other sites More sharing options...
johnnyv Posted March 26, 2004 Report Share Posted March 26, 2004 How about the gui tool Userdrake? You may find it easier. If you don't have X on the computer you could also try webmin https://192.168.0.1:10000/useradmin/ - just change 192.168.0.1 to the correct ip address. Quote Link to comment Share on other sites More sharing options...
DragonMage Posted March 26, 2004 Report Share Posted March 26, 2004 Maybe it's a X-less server he is administrating, so no graphical configurator whatsoever. Anyway, the command for deleting users is userdel There are also groupadd and groupdel to manage the groups. Quote Link to comment Share on other sites More sharing options...
bvc Posted March 26, 2004 Report Share Posted March 26, 2004 you mean someone can install and run a server and not have the knowledge/ability to search either google or their hd/os/files with a search tool to find this info out? You're kidding??? You just gotta be. :P Quote Link to comment Share on other sites More sharing options...
johnnyv Posted March 26, 2004 Report Share Posted March 26, 2004 Maybe it's a X-less server he is administrating, so no graphical configurator whatsoever. Anyway, the command for deleting users is userdel There are also groupadd and groupdel to manage the groups. Thats why i mentioned that he could try webmin if there was no X, if there was another networked computer with a browser on it of course. Quote Link to comment Share on other sites More sharing options...
johnnyv Posted March 26, 2004 Report Share Posted March 26, 2004 you mean someone can install and run a server and not have the knowledge/ability to search either google or their hd/os/files with a search tool to find this info out? You're kidding??? You just gotta be. :P Welcome to the world of windows administration ;) Quote Link to comment Share on other sites More sharing options...
bvc Posted March 26, 2004 Report Share Posted March 26, 2004 you mean someone can install and run a server and not have the knowledge/ability to search either google or their hd/os/files with a search tool to find this info out? You're kidding??? You just gotta be. :P Welcome to the world of windows administration ;) I know, I see it all the time :lol: Quote Link to comment Share on other sites More sharing options...
aru Posted March 26, 2004 Report Share Posted March 26, 2004 Hello, Is there a command you can run as root to make a new user on a system from the command line? -Neocytrix Despite your question has been answered already, I'm going to give you some hints you should know in order to move yourself comfortably in a GNU/Linux file system: man is your friend. To know all about the manual pages run the command 'man man'. info is your friend too. Run 'info info' to see what that tool can do for you. when you want to know about bash builtins (that is commands that belong to bash interface, then help is your friend. More in 'help help' Ofcourse www.google.com is mandatory resource too. Commands that you should be fammiliar with in order to surf at pleasure in linux (not in order): grep/egrep/fgrep ...l vim [less / more ... BASH apropos awk / gawk / nawk ... cat tee find ... Now some advanced tricks that should help you in finding information in your own system. [-] apropos: I want to know what command allows me to add a new user in the system The strightforward way: ~$ apropos add | grep new | grep user | grep -v 3 useradd (8) - Create a new user or update default new user information ~$ So the command I was looking for was useradd. The purist way: ~$ apropos add | egrep '.[ ]{2}[^3]*(new.*user|user.*new)' useradd (8) - Create a new user or update default new user information ~$ man apropos and man grep to see what does each command and how [-] grepping the documentation that is already in your system (when apropos and hence man fails): ~$ man konsole No manual entry for konsole ~$ ~$ DOC_DIR=/usr/share/doc/ ~$ grep -lR 'konsole' $DOC_DIR | less <... list of document files containing the term 'konsole' ...> ~$ You can refine the search to the limit you'll find useful.Hope this will help you in the future and let you learn more about this wanderfull system called GNU/Linux. Ofcourse WE (www.mandrakeusers.org) are the BEST resource for learning and having fun with GUN/Linux Quote Link to comment Share on other sites More sharing options...
neocytrix Posted March 26, 2004 Author Report Share Posted March 26, 2004 Thanks :D -Neocytrix Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.