tag:blogger.com,1999:blog-11296977.post3973123017717928333..comments2023-12-24T11:42:43.913-08:00Comments on Anil's Technica: How to change your home directory in linux/unixAnil Kumarhttp://www.blogger.com/profile/06680189239008360541noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-11296977.post-78226978625626699762018-06-17T08:27:21.158-07:002018-06-17T08:27:21.158-07:00There may be noticeably a bundle to find out about...There may be noticeably a bundle to find out about this. I assume you made certain nice factors in features also. <a href="https://online-casinos.us.org" rel="nofollow">bovada casino</a>eddyshaw9272711https://www.blogger.com/profile/10395218228610050609noreply@blogger.comtag:blogger.com,1999:blog-11296977.post-46787713353793341122013-08-14T09:26:48.039-07:002013-08-14T09:26:48.039-07:00Thank you very much, your article was very usefull...Thank you very much, your article was very usefull!Anonymoushttps://www.blogger.com/profile/10426966029967739153noreply@blogger.comtag:blogger.com,1999:blog-11296977.post-27289474842590325832012-05-30T05:18:06.077-07:002012-05-30T05:18:06.077-07:00@topytopper Just log in with another user and then...@topytopper Just log in with another user and then run the command.<br /><br />You can use this command to see what users are defined on the system:<br />awk -F: '{ print $1 }' /etc/passwd<br /><br />If you don't have another account you may need to create one before you can change the home directory?<br /><br />Someone cmiiwJamesR404http://www.twitter.com/jamesr404noreply@blogger.comtag:blogger.com,1999:blog-11296977.post-1294280855145958112012-04-13T09:08:05.682-07:002012-04-13T09:08:05.682-07:00usermod won't let me change my home directory ...usermod won't let me change my home directory because it keeps saying I am logged in.tonytopperhttps://www.blogger.com/profile/07440209610736188305noreply@blogger.comtag:blogger.com,1999:blog-11296977.post-47005705476449092902011-06-21T21:01:14.701-07:002011-06-21T21:01:14.701-07:00Thanks...Your post helped me to do what i wanted b...Thanks...Your post helped me to do what i wanted badlySatyanarayanannoreply@blogger.comtag:blogger.com,1999:blog-11296977.post-76642781732981630122010-04-14T06:38:08.205-07:002010-04-14T06:38:08.205-07:00Its a very good question.It help to us.
For Change...Its a very good question.It help to us.<br />For Change Working Directory.<br /><br />cd / go to the root directory<br />cd go to your login (home) directory<br />cd ~username go to username's login (home) directory<br /> not allowed in the Bourne shell<br />cd ~username/directory go to username's indicated directory<br />cd .. go up one directory level from here<br />cd ../.. go up two directory levels from here<br />cd /full/path/name/from/root change directory to absolute path named <br /> note the leading slash<br />cd path/from/current/directory change directory to path relative to here. <br /> note there is no leading slash<br />You should check <a href="http://www.adminkernel.com/linux/" rel="nofollow">this link</a> and you get more informationAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-11296977.post-36988966931588279452009-10-08T11:56:05.561-07:002009-10-08T11:56:05.561-07:00Guys, you've forgoten the flag "m" i...Guys, you've forgoten the flag "m" is to move the files and content from the old home directory to the new. So the correct scripts is: <br /><br />sudo usermod -md /my/new/home userid;<br /><br />Note: don't use "sudo" if you are logged as root. <br /><br />best regardsModeradorhttps://www.blogger.com/profile/11155631884128450287noreply@blogger.comtag:blogger.com,1999:blog-11296977.post-80380526750827508002009-10-08T11:50:58.331-07:002009-10-08T11:50:58.331-07:00This comment has been removed by the author.Moderadorhttps://www.blogger.com/profile/11155631884128450287noreply@blogger.comtag:blogger.com,1999:blog-11296977.post-52490566827524162472009-04-02T11:44:00.000-07:002009-04-02T11:44:00.000-07:00oops left out somethingit should be#usermod -d /pa...oops left out something<BR/>it should be<BR/>#usermod -d /path/homedir login<BR/><BR/>Works in Red Hat and Fedora. Probably other flavors too.Jim Warnerhttps://www.blogger.com/profile/17890709586582070209noreply@blogger.comtag:blogger.com,1999:blog-11296977.post-65889721756102436022009-04-02T11:38:00.000-07:002009-04-02T11:38:00.000-07:00I think I would leave /etc/passwd alone and use th...I think I would leave /etc/passwd alone and use the command<BR/>#usermod -d /path/homedir<BR/>or if you want to move the stuff from the old /home/user then<BR/>#usermod -dm /path/homedir<BR/><BR/>It's in the man page for usermod.Jim Warnerhttps://www.blogger.com/profile/17890709586582070209noreply@blogger.comtag:blogger.com,1999:blog-11296977.post-18652635373631329572008-10-22T22:37:00.000-07:002008-10-22T22:37:00.000-07:00thanks! your post helped methanks! your post helped meAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-11296977.post-26963730881622661542008-05-25T00:53:00.000-07:002008-05-25T00:53:00.000-07:00It is much easier to do the following in "vi". try...It is much easier to do the following in "vi". try this..<BR/><BR/>In the command shell type:<BR/># vi passwd<BR/><BR/>then edit the specific user.Anonymousnoreply@blogger.com