- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- useradd: warning: the home directory already exist...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2011 05:17 AM
07-11-2011 05:17 AM
useradd: warning: the home directory already exists
I'm trying to create a user in Linux by specifying the home directory with option -d. But I'm getting the below error:
[root@test123 ~]# useradd -c "Admin" -s /bin/ksh -d /oracle -g dba oracle123
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
What is the reason for the files not being copied from the /etc/skel directory?
- Tags:
- useradd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2011 06:10 AM
07-11-2011 06:10 AM
Re: useradd: warning: the home directory already exists
>What is the reason for the files not being copied from the /etc/skel directory?
Most likely because it thought you already did that and didn't want to destroy your customizations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2011 12:23 AM
07-12-2011 12:23 AM
Re: useradd: warning: the home directory already exists
Does it affect an user if the files .bash_profile and .bash_logout are not copied form the /etc/skel diretory in linux?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2011 10:55 AM
07-13-2011 10:55 AM
Re: useradd: warning: the home directory already exists
>Does it affect an user if the files .bash_profile and .bash_logout are not copied form the /etc/skel directory in linux?
If the user uses bash. :-)
And of course how much customization is done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2011 07:36 PM
07-13-2011 07:36 PM
Re: useradd: warning: the home directory already exists
Hi,
Default values for account creation defined in /etc/default/useradd file RHEL . Simply open this file using a text editor:
# vi /etc/default/useradd
The default home directory defined by HOME variable, find line that read as follows:
HOME=/home
Replace with:
HOME=/etc/skel
Hope this can help
Thanks
BR
Naj
____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!