LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
LinkBack Search this Thread
Old 08-01-2013, 06:50 AM   #1
manoj.linux
Member
 
Registered: Aug 2007
Posts: 219

Rep: Reputation: 15
Question .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.
 
Old 08-01-2013, 07:48 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
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?
 
Old 08-01-2013, 07:50 AM   #3
mitofik
LQ Newbie
 
Registered: Sep 2008
Posts: 14

Rep: Reputation: 1
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..
 
Old 08-01-2013, 09:38 AM   #4
manoj.linux
Member
 
Registered: Aug 2007
Posts: 219

Original Poster
Rep: Reputation: 15
Thanks Mitofik for timely support.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] user daemon and /var/run file creation - how about zhjim Debian 4 07-11-2013 04:59 AM
[SOLVED] How can any user remove a file created by other user with all permissions(777)? omegazafer Linux - Desktop 5 06-28-2013 02:31 AM
User Creation for a already created directory teckins Linux - Software 3 06-29-2012 08:29 AM
Running an executable file from a user created interface krisykc Linux - General 3 03-15-2007 01:54 PM
Samba user creation with text file Skorpio Linux - Networking 1 10-02-2003 10:05 AM


All times are GMT -5. The time now is 01:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration