Home » Infrastructure » Unix » Add User in Linux
Add User in Linux [message #609527] Sun, 09 March 2014 03:43 Go to next message
Messages: 3
Registered: March 2014
Location: Karnataka
Junior Member
I am trying to add a user using a shell script by this command

read -p "Enter username : ' username
useradd -g dba -G regusers -d /home/$username -m -s /bin/bash $username

useradd : Too few arguments.
Try 'useradd --help' or 'useradd --usage' for more information

gba- primary group added
regusers- secondary group added
Re: Add User in Linux [message #609533 is a reply to message #609527] Sun, 09 March 2014 10:31 Go to previous messageGo to next message
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
Try 'useradd --help' or 'useradd --usage' for more information

Please read and follow the forum guidelines, to enable us to help you:

Re: Add User in Linux [message #609535 is a reply to message #609527] Sun, 09 March 2014 14:54 Go to previous message
Michel Cadot
Messages: 68653
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

This question bears no real connection with Oracle database.
Please find a more appropriate forum.
The topic is locked. /forum/fa/448/0/
If I'm wrong, please, PM me (or report this message to a moderator, explain why you think it should be unlocked and it might be done).

Previous Topic: ColdBackUp
Next Topic: Databases created in solaris
Goto Forum:

Current Time: Thu May 23 23:52:55 CDT 2024