Quantcast
Channel: How can I create a new user but with a home directory that already exists? - Unix & Linux Stack Exchange
Browsing all 4 articles
Browse latest View live

Answer by sandeep Reddy for How can I create a new user but with a home...

$ mv /home/jerry /home/xxx$ userdel -r jerry$ rm -rf /var/spool/mail/jerry$ useradd jerry$ mv /home/xxx /home/jerryjerry home already exists so you will prompt likebash-4.1$ bash To avoid mv existing...

View Article



Answer by Gilles 'SO- stop being evil' for How can I create a new user but...

You did create a user with a home directory that already exists.adduser: warning: the home directory already exists. Not copying any file from skel directory into it. This isn't an error, it's a...

View Article

Answer by Tom Zych for How can I create a new user but with a home directory...

Well, of course. It's trying to read and execute /home/panos/.bashrc. That file belongs to user panos, and presumably is set to -rwx------ or something like that. So Jerry tries to read it and can't....

View Article

How can I create a new user but with a home directory that already exists?

Let's say I have a user called panos and he has his home directory located at /home/panos. Then, I create a another user called Tom:adduser TomIt creates a user Tom who has home dir: /home/TomThe...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images