LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   .bash_profile file not created after creation of user. (https://www.linuxquestions.org/questions/linux-enterprise-47/bash_profile-file-not-created-after-creation-of-user-4175471723/)

manoj.linux 08-01-2013 06:50 AM

.bash_profile file not created after creation of user.
 
Hi,

I would like to know how to create .bash_profile for user.

I have created the user other then in /home partition.

using command

useradd -m -d /data/test1 test1

but .bash_profile was not created.

druuna 08-01-2013 07:48 AM

Using the -m option should copy all files present in /etc/skel to the newly created home directory.

Is .bash_profile present in /etc/skel?

mitofik 08-01-2013 07:50 AM

do you have anything in /etc/skel? i belive it should copy files from there to new user's home

edit: you beat me to it..

manoj.linux 08-01-2013 09:38 AM

Thanks Mitofik for timely support.


All times are GMT -5. The time now is 08:00 PM.