creating a user by using useradd [closed]

Clash Royale CLAN TAG#URR8PPP
am using
useradd -u 1005 -G 1006 -c hi -d /home/redhat /s /bin/bash redhat
but it's showing wrong
linux
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
add a comment |
am using
useradd -u 1005 -G 1006 -c hi -d /home/redhat /s /bin/bash redhat
but it's showing wrong
linux
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
1
It is - s, not /s
– Rui F Ribeiro
Jan 29 at 3:20
add a comment |
am using
useradd -u 1005 -G 1006 -c hi -d /home/redhat /s /bin/bash redhat
but it's showing wrong
linux
am using
useradd -u 1005 -G 1006 -c hi -d /home/redhat /s /bin/bash redhat
but it's showing wrong
linux
linux
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
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
1
It is - s, not /s
– Rui F Ribeiro
Jan 29 at 3:20
add a comment |
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
add a comment |
3 Answers
3
active
oldest
votes
You need -s to specify the shell, not /s.
add a comment |
Use this instead
useradd -u 1005 -G 1006 -c hi -d /home/redhat -s /bin/bash redhat
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
add a comment |
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:
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You need -s to specify the shell, not /s.
add a comment |
You need -s to specify the shell, not /s.
add a comment |
You need -s to specify the shell, not /s.
You need -s to specify the shell, not /s.
answered Jan 29 at 5:48
user208145user208145
1,34621215
1,34621215
add a comment |
add a comment |
Use this instead
useradd -u 1005 -G 1006 -c hi -d /home/redhat -s /bin/bash redhat
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
add a comment |
Use this instead
useradd -u 1005 -G 1006 -c hi -d /home/redhat -s /bin/bash redhat
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
add a comment |
Use this instead
useradd -u 1005 -G 1006 -c hi -d /home/redhat -s /bin/bash redhat
Use this instead
useradd -u 1005 -G 1006 -c hi -d /home/redhat -s /bin/bash redhat
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
add a comment |
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
add a comment |
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:
add a comment |
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:
add a comment |
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:
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:
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
add a comment |
add a comment |
1
It is - s, not /s
– Rui F Ribeiro
Jan 29 at 3:20