unix, adding users to existing directory in centos
Clash Royale CLAN TAG#URR8PPP
up vote
-4
down vote
favorite
I'm trying to add users to an existing directory but I keep getting:
useradd: warning: the home directory already exists. Not copying any file from skel directory into it.
I want to add users to the /home/test
directory; I know this isn't a good thing to do and there are many reasons why I shouldn't do it, but I need to do it anyway.
I want to add the user alex
to the existing directory and ralf
, so I tried to change the permission of the folders so users can access it:
chmod -R 777 /home/test
And add the user to the folder:
useradd -m -d /home/test ralf
But when I try to switch to the new user it shows this:
I think it is a permission issue but I am not too sure.
linux centos users home useradd
add a comment |Â
up vote
-4
down vote
favorite
I'm trying to add users to an existing directory but I keep getting:
useradd: warning: the home directory already exists. Not copying any file from skel directory into it.
I want to add users to the /home/test
directory; I know this isn't a good thing to do and there are many reasons why I shouldn't do it, but I need to do it anyway.
I want to add the user alex
to the existing directory and ralf
, so I tried to change the permission of the folders so users can access it:
chmod -R 777 /home/test
And add the user to the folder:
useradd -m -d /home/test ralf
But when I try to switch to the new user it shows this:
I think it is a permission issue but I am not too sure.
linux centos users home useradd
What is the reason beyond this? Which result do you want to accomplish? It looks like you're trying to break the system, which is never a wise thing to do (unless for testing).
â dr01
May 29 at 7:33
add a comment |Â
up vote
-4
down vote
favorite
up vote
-4
down vote
favorite
I'm trying to add users to an existing directory but I keep getting:
useradd: warning: the home directory already exists. Not copying any file from skel directory into it.
I want to add users to the /home/test
directory; I know this isn't a good thing to do and there are many reasons why I shouldn't do it, but I need to do it anyway.
I want to add the user alex
to the existing directory and ralf
, so I tried to change the permission of the folders so users can access it:
chmod -R 777 /home/test
And add the user to the folder:
useradd -m -d /home/test ralf
But when I try to switch to the new user it shows this:
I think it is a permission issue but I am not too sure.
linux centos users home useradd
I'm trying to add users to an existing directory but I keep getting:
useradd: warning: the home directory already exists. Not copying any file from skel directory into it.
I want to add users to the /home/test
directory; I know this isn't a good thing to do and there are many reasons why I shouldn't do it, but I need to do it anyway.
I want to add the user alex
to the existing directory and ralf
, so I tried to change the permission of the folders so users can access it:
chmod -R 777 /home/test
And add the user to the folder:
useradd -m -d /home/test ralf
But when I try to switch to the new user it shows this:
I think it is a permission issue but I am not too sure.
linux centos users home useradd
edited Jun 9 at 7:12
Michael Mrozekâ¦
58k25183205
58k25183205
asked May 28 at 13:39
squishy_ralf
1
1
What is the reason beyond this? Which result do you want to accomplish? It looks like you're trying to break the system, which is never a wise thing to do (unless for testing).
â dr01
May 29 at 7:33
add a comment |Â
What is the reason beyond this? Which result do you want to accomplish? It looks like you're trying to break the system, which is never a wise thing to do (unless for testing).
â dr01
May 29 at 7:33
What is the reason beyond this? Which result do you want to accomplish? It looks like you're trying to break the system, which is never a wise thing to do (unless for testing).
â dr01
May 29 at 7:33
What is the reason beyond this? Which result do you want to accomplish? It looks like you're trying to break the system, which is never a wise thing to do (unless for testing).
â dr01
May 29 at 7:33
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
-2
down vote
From useradd(8)
:
-M, --no-create-home
Do no create the user's home directory, even if the system wide setting
from /etc/login.defs (CREATE_HOME) is set to yes.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
-2
down vote
From useradd(8)
:
-M, --no-create-home
Do no create the user's home directory, even if the system wide setting
from /etc/login.defs (CREATE_HOME) is set to yes.
add a comment |Â
up vote
-2
down vote
From useradd(8)
:
-M, --no-create-home
Do no create the user's home directory, even if the system wide setting
from /etc/login.defs (CREATE_HOME) is set to yes.
add a comment |Â
up vote
-2
down vote
up vote
-2
down vote
From useradd(8)
:
-M, --no-create-home
Do no create the user's home directory, even if the system wide setting
from /etc/login.defs (CREATE_HOME) is set to yes.
From useradd(8)
:
-M, --no-create-home
Do no create the user's home directory, even if the system wide setting
from /etc/login.defs (CREATE_HOME) is set to yes.
edited Jun 7 at 12:16
answered Jun 7 at 8:42
mcepl
972
972
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f446484%2funix-adding-users-to-existing-directory-in-centos%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
What is the reason beyond this? Which result do you want to accomplish? It looks like you're trying to break the system, which is never a wise thing to do (unless for testing).
â dr01
May 29 at 7:33