creating a user by using useradd [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












-3















am using



useradd -u 1005 -G 1006 -c hi -d /home/redhat /s /bin/bash redhat


but it's showing wrong










share|improve this question















closed as off-topic by Rui F Ribeiro, Ipor Sircer, Kusalananda, Mr Shunz, Jeff Schaller Jan 29 at 11:06


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Rui F Ribeiro, Kusalananda, Mr Shunz
If this question can be reworded to fit the rules in the help center, please edit the question.











  • 1





    It is - s, not /s

    – Rui F Ribeiro
    Jan 29 at 3:20















-3















am using



useradd -u 1005 -G 1006 -c hi -d /home/redhat /s /bin/bash redhat


but it's showing wrong










share|improve this question















closed as off-topic by Rui F Ribeiro, Ipor Sircer, Kusalananda, Mr Shunz, Jeff Schaller Jan 29 at 11:06


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Rui F Ribeiro, Kusalananda, Mr Shunz
If this question can be reworded to fit the rules in the help center, please edit the question.











  • 1





    It is - s, not /s

    – Rui F Ribeiro
    Jan 29 at 3:20













-3












-3








-3








am using



useradd -u 1005 -G 1006 -c hi -d /home/redhat /s /bin/bash redhat


but it's showing wrong










share|improve this question
















am using



useradd -u 1005 -G 1006 -c hi -d /home/redhat /s /bin/bash redhat


but it's showing wrong







linux






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 29 at 3:19









Rui F Ribeiro

40.3k1479136




40.3k1479136










asked Jan 29 at 3:14









DJ DHANUDJ DHANU

2




2




closed as off-topic by Rui F Ribeiro, Ipor Sircer, Kusalananda, Mr Shunz, Jeff Schaller Jan 29 at 11:06


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Rui F Ribeiro, Kusalananda, Mr Shunz
If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by Rui F Ribeiro, Ipor Sircer, Kusalananda, Mr Shunz, Jeff Schaller Jan 29 at 11:06


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Rui F Ribeiro, Kusalananda, Mr Shunz
If this question can be reworded to fit the rules in the help center, please edit the question.







  • 1





    It is - s, not /s

    – Rui F Ribeiro
    Jan 29 at 3:20












  • 1





    It is - s, not /s

    – Rui F Ribeiro
    Jan 29 at 3:20







1




1





It is - s, not /s

– Rui F Ribeiro
Jan 29 at 3:20





It is - s, not /s

– Rui F Ribeiro
Jan 29 at 3:20










3 Answers
3






active

oldest

votes


















1














You need -s to specify the shell, not /s.






share|improve this answer






























    0














    Use this instead



    useradd -u 1005 -G 1006 -c hi -d /home/redhat -s /bin/bash redhat





    share|improve this answer























    • am applied this command also but it's showing like [root@localhost ~]# useradd -u 1005 -G 1006 -c hi -d /home/red -s /bin/bash red useradd: group '1006' does not exist (error) [root@localhost ~]#

      – DJ DHANU
      Jan 29 at 12:52



















    -4














    Check this to add a new user called ‘test’, use the following command.



    $ useradd test


    When we add a new user in Linux with ‘useradd’ command it gets created in a locked state and to unlock that user account, we need to set a password for that account with the ‘passwd’ command.



    $ passwd test
    Changing password for user tecmint.
    New UNIX password:
    Retype new UNIX password:





    share|improve this answer































      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      You need -s to specify the shell, not /s.






      share|improve this answer



























        1














        You need -s to specify the shell, not /s.






        share|improve this answer

























          1












          1








          1







          You need -s to specify the shell, not /s.






          share|improve this answer













          You need -s to specify the shell, not /s.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 29 at 5:48









          user208145user208145

          1,34621215




          1,34621215























              0














              Use this instead



              useradd -u 1005 -G 1006 -c hi -d /home/redhat -s /bin/bash redhat





              share|improve this answer























              • am applied this command also but it's showing like [root@localhost ~]# useradd -u 1005 -G 1006 -c hi -d /home/red -s /bin/bash red useradd: group '1006' does not exist (error) [root@localhost ~]#

                – DJ DHANU
                Jan 29 at 12:52
















              0














              Use this instead



              useradd -u 1005 -G 1006 -c hi -d /home/redhat -s /bin/bash redhat





              share|improve this answer























              • am applied this command also but it's showing like [root@localhost ~]# useradd -u 1005 -G 1006 -c hi -d /home/red -s /bin/bash red useradd: group '1006' does not exist (error) [root@localhost ~]#

                – DJ DHANU
                Jan 29 at 12:52














              0












              0








              0







              Use this instead



              useradd -u 1005 -G 1006 -c hi -d /home/redhat -s /bin/bash redhat





              share|improve this answer













              Use this instead



              useradd -u 1005 -G 1006 -c hi -d /home/redhat -s /bin/bash redhat






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Jan 29 at 6:35









              BojaBoja

              1




              1












              • am applied this command also but it's showing like [root@localhost ~]# useradd -u 1005 -G 1006 -c hi -d /home/red -s /bin/bash red useradd: group '1006' does not exist (error) [root@localhost ~]#

                – DJ DHANU
                Jan 29 at 12:52


















              • am applied this command also but it's showing like [root@localhost ~]# useradd -u 1005 -G 1006 -c hi -d /home/red -s /bin/bash red useradd: group '1006' does not exist (error) [root@localhost ~]#

                – DJ DHANU
                Jan 29 at 12:52

















              am applied this command also but it's showing like [root@localhost ~]# useradd -u 1005 -G 1006 -c hi -d /home/red -s /bin/bash red useradd: group '1006' does not exist (error) [root@localhost ~]#

              – DJ DHANU
              Jan 29 at 12:52






              am applied this command also but it's showing like [root@localhost ~]# useradd -u 1005 -G 1006 -c hi -d /home/red -s /bin/bash red useradd: group '1006' does not exist (error) [root@localhost ~]#

              – DJ DHANU
              Jan 29 at 12:52












              -4














              Check this to add a new user called ‘test’, use the following command.



              $ useradd test


              When we add a new user in Linux with ‘useradd’ command it gets created in a locked state and to unlock that user account, we need to set a password for that account with the ‘passwd’ command.



              $ passwd test
              Changing password for user tecmint.
              New UNIX password:
              Retype new UNIX password:





              share|improve this answer





























                -4














                Check this to add a new user called ‘test’, use the following command.



                $ useradd test


                When we add a new user in Linux with ‘useradd’ command it gets created in a locked state and to unlock that user account, we need to set a password for that account with the ‘passwd’ command.



                $ passwd test
                Changing password for user tecmint.
                New UNIX password:
                Retype new UNIX password:





                share|improve this answer



























                  -4












                  -4








                  -4







                  Check this to add a new user called ‘test’, use the following command.



                  $ useradd test


                  When we add a new user in Linux with ‘useradd’ command it gets created in a locked state and to unlock that user account, we need to set a password for that account with the ‘passwd’ command.



                  $ passwd test
                  Changing password for user tecmint.
                  New UNIX password:
                  Retype new UNIX password:





                  share|improve this answer















                  Check this to add a new user called ‘test’, use the following command.



                  $ useradd test


                  When we add a new user in Linux with ‘useradd’ command it gets created in a locked state and to unlock that user account, we need to set a password for that account with the ‘passwd’ command.



                  $ passwd test
                  Changing password for user tecmint.
                  New UNIX password:
                  Retype new UNIX password:






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jan 29 at 4:08









                  G-Man

                  13.1k93465




                  13.1k93465










                  answered Jan 29 at 3:25









                  Kedar S. DixitKedar S. Dixit

                  11




                  11












                      Popular posts from this blog

                      Peggy Mitchell

                      Palaiologos

                      The Forum (Inglewood, California)