LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-30-2012, 09:36 PM   #1
LittleMaster
Member
 
Registered: Jun 2012
Posts: 121
Blog Entries: 1

Rep: Reputation: Disabled
Need help to modify the default user home dir


hi
i have user already exists in follwoing path

useradd -d /prod/server/London LittleMaster

i have to change the default user path to /prod/users/Russia with same username

mkdir -p /prod/users/Russia

I HAVE EXECUTE FOLLOWING COMMAND BUT IT FAILS

usermod -m -d /prod/users/Russia LittleMaster

Someone can give any sort of ideas ehere im making mistake in changing default home dir
 
Old 11-30-2012, 09:52 PM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
According to the man page you should have made directory /prod/users/ but not /prod/users/Russia before running usermod.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
user home dir doesn't create when new user add dev_mohamed Linux - Software 3 01-12-2007 01:08 AM
locking a user in his home dir codewolf Linux - Security 6 05-11-2006 07:42 PM
Modify default user settings Fedora Core 4 klnasveschuk Fedora 1 07-22-2005 08:43 AM
how can modify user login's default directory? jsnch Solaris / OpenSolaris 5 07-03-2005 05:43 PM
default web dir for user varala_kanth Linux - Newbie 3 06-09-2004 04:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:00 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration