General :: Change My Home Directory Location To Something Else?
Aug 5, 2010
I have noticed that on a Mac which is Unix based too there is a different home directory which is NOT /home/user/ but /Users/user. How can I change my home directory in linux to something else? Even as an experiment? Is it possible? and how?
I have an interdependent collection of scripts in my ~/bin directory as well as a developed ~/.vim directory and some other libraries and such in other subdirectories. I've been versioning all of this using git, and have realized that it would be potentially very easy and useful to do development and testing of new and existing scripts, vim plugins, etc. using a cloned repo, and then pull the working code into my actual home directory with a merge.
The easiest way to do this would seem to be to just change & export $HOME, eg
cd ~/testing; git clone ~ home export HOME=~/testing/home cd ~ screen -S testing-home # start vim, write/revise plugins, edit scripts, etc. # test revisions
However since I've never tried this before I'm concerned that some programs, environment variables, etc., may end up using my actual home directory instead of the exported one. Is this a viable strategy? Are there just a few outliers that I should be careful about?
I have to zip de home directory to a location but i can't seem to get it done.
I have succeeded to zip a folder within the home folder (Music folder) but when i try to zip the entire home folder i get an error. I have tried different ways but no success so far.
This is what i tried so far:
1) tar cf backup_homedir.tgz ../
2) tar cf backup_homedir.tgz /home/indur
Error message: ( i hope i translate it well because my language isn't english, so the message isn't as well) tar: backup_homedir.tgz: Function open () failed: access denied tar: unrecoverable error -- tar is closing
I would like to move the /home directory to a different location, there only seem to be guides on how to move it to it's own partition.
I have a drive (/dev/sda5) mounted as /media/data
I would like to move /home to /media/data/home?
I have tried usermod but get the following error:
Code: test@TestServer:/media/data$ sudo mkdir /media/data/home test@TestServer:/media/data$ ls home lost+found test@TestServer:/media/data$ sudo usermod -dm /media/data/home usermod: user '/media/data/home' does not exist
I have a dual-boot win7 and Ubuntu 10.10 and I want Ubuntu to use my windows user folder as home. I edited fstab to give me ownership and mount it to /mnt/Windows at startup but whenever I change the location of home in the Users and Groups it acts like it is changing it but it never does. I close the settings and when I re-open it, it is set back to /home/me.
How do I change user's home directory, because right now everything saves into File System and it's almost full(I got windows and Ubuntu installed in the same partition), while the other 120Gb filesystem is unused..
I've logged out and logged back in, and I was successful in making it the default directory it logs in to. Still, afterwards I noticed that that when I use the list all commands "ls -l" it shows that root owns it and it also shows that I do not, by default, have read write execute over it, only read execute. I'm using Slackware 13.37* in a Virtual Machine* Another thing, I don't think I added any rights to my user, how do I give it more rights as well? Like, wheel and sudo and all of that stuff. Also, this was the website I was using *Although it didn't help much, the comments sure did [URL].
Samba is remotely administered with webmin and aim to setup home directory sharing. I am however having some trouble getting this to work.
I was of the understanding that home directory sharing allows me to create a user in ubuntu, which samba will then pickup and offer it up as a share.
My smb.conf looks like this..
Code: #======================= Global Settings ======================= [global] unix extensions = no share modes = no security = user
[Code]....
Essentially I've found this works providing I give the samba user a password after it is automatically created using the 'Configure automatic Unix and Samba user synchronisation' option in webmin.
However if I move the location of this home folder off the main drive i.e. /home/username I get turned away at attempted login.
I've tried specifying the path in [homes] using the path = /media/discarray, but this seems to break authentication somehow.
I tried to download Knoppix 6.0 iso, but it ran out of storage space. It was placing it into /tmp. Is there a way that I could have it placed in my /home directory, which is plenty big?
As a precaution to protect my home folder contents when I reninstall ubuntu if need arises I intend to change my home folder location to a mounted ntfs partition in my HDD. How can I do it the GUI way? Like in windows the "My Documents" location can be changed by going to "My Document" properties and entering the new location.
I bought an LG NAS for pic's, videos, and music. Is there a way to turn the pictures folder in the NAS into the default location for when I select the Pictures folder in my home directory? Running Ubuntu 10.10 on IBM's: T41, T42, T62
I have a mount called on /home for /dev/sda12..I want to mount /dev/sda12 onto /backup..I tried to do this by changing things in the fstab file i.e. i replaced /home with /backup. This change caused boot up problems and I had to change my fstab file back to get going again.
I am installing oracle 11g on Oracle enterprise Linux 5 i applied all the steps in doc [URL] when trying to switch user to user oracle i am facing the below
[root@oel5 ~]# su - oracle su: warning: cannot change directory to /home/oracle: Permission denied -bash: /home/oracle/.bash_profile: Permission denied
I have a dual-boot macbook with an OS X partition and an ubuntu partition. When I first installed ubuntu, I changed my home folder to my OS X home directory to synchronize all my files from both. My home directory is now /media/sda2/Users/username/. In a regular home folder, the icons for Documents, Music, Pictures, Movies, etc. are different (not just with emblems, but actually different icons). But when I changed my home folder, these subfolders' icons stayed the same as regular folder icons and I can't figure out a way to change that default setting. I know how to change the icons for each folder manually, but these changes don't appear everywhere (i.e. nautilus, places, etc). Furthermore, every time I change my icon theme, I would have to manually reassign icons for these folders. Is there a way to globally change the folder icons for these folders?
I use dual boot with windos 7. i use xampp in win7. want to use lampp for ubuntu 10.04. i want to use one local server directoy for both . i successfuly changed htdocs location in lampp. but could not change mysql data directory location.
i have problem on my ubuntu 10.10 after i change user name to root and home directory username ( old one ) , and now users and groups not working asnd all application on old user not working !
how to change when running command "adduser" or "useradd" the placement of the users home directory. Have tried editing the /etc/default/useradd file with no results.
I want it to be placed in /var/www And I would also want to know how more folders and files can be created in the home directory automatically.
I now have my ssh server all setup on my ubuntu 10.10 machine and properly working with a private rsa key. Anyway when I connect to it via my client it opens to: /home/myusername
I am able to run around the whole drive and have full access to everything, which is great. But I don't have anything on this hard drive. All my data and files that I really want to access are on the second drive of this computer. It doesn't have an OS on it, just files.how to change the directory to point to that drive and have full access of everything.
I'm trying to make it so that when a user logs in they are forced to stay within a certain directory structure. For some reason what I am doing is not working properly.Here are the relevant file informations:sshd_config:
I have a secondary disk which holds a /home directory structure from a previous install of Linux. I installed a new version on a new primary drive and mounted this secondary drive as the new /home. Problem is, even though the users are the same names and I can access the home directories for the users, I cannot login directly to their home directories, as I get the following error: -
Code:
login as: [me] [me]@[machine]'s password: Last login: Wed Jan 6 18:34:33 2010 from [machine] Could not chdir to home directory /home/[me]: Permission denied [[me]@[machine] /]$
Now, since the usernames are correct and the users are in the passwd file with the correct home directory paths, could it be user ID's that are different or something else? It's not as though I cannot access the home directories for the users, simply that I cannot log directly into them from a login prompt.
Is there anything special about a home directory before users' home directories are stored there, or is just as typical as any other "empty" folder?Let me just cut to the chase, but please no ear ringing about the folly of messing around as root, particularly with directories at root level. I know it's considered stupidity, but I deleted my home directory.
Is there an easy way to restore a working home directory? I tried copying /etc/skel under root, but I'm not sure what a home directory should look like once it has been restored. Besides . & .., there were .screenrc & .xsession in my home directory when I copied /etc/skel. Are these files suppose to be in "/home" or "/home/~" or both?
When I booted up this morning the contents of my Home directory are all showing up on my desktop, and there is no single Home folder. How did this change, and how can I change it back so that the Home folder is on my Desktop with the contents inside of *it*?
I just installed the testing version of Debian with the option to setup encrypted home directories. I used a passphrase that I now want to change to something else. How do I do that?
proposed mountpoint for NIS client home dir for 'user': /shared/home/user
auto mounting to /home/user works fine BUT if i want to automount to different location; it still looks for /home/user directory to mount to. So I get an error and i get directed to the '/' dir. Is there someway for me to edit the passwd file that is being exported by the NIS server? because if I change the local passwd of the user in the NIS server then he wont be able to see his home dir when logging in locally. (although this does seem to be a good idea; since he wont need to login directly into the NIS server....)
I'm using Mac OS X's Terminal.app shell to compile and run Fortran programs. One such program resides outside of my home directory (it is in the Applications folder, which resides on my hard drive but seems to be outside of my home folder). How can I navigate into this directory using Terminal.app to run the programs that reside there?
I grant read privilege to all the users to my .vimrc file . But my colleague still can't read my .vimrc file . I guess in addiction to give the read privilege to the .vimrc file, in some way I should give the person who want to read it the "access right" to my home directory first---which I don't know how to do it.
I am confused that what should be the permssions of home directory because currenlty my users when they log into their home directory , they can see all the contents of /home directory as well..However if i take read all permissions then my sites are not accessible , what should i do The current permissions are 755
I need to backup my /home directory because I want to switch from Fedora to OpenSUSE but I didn't put /home as a separate partition so I need to back it up. Problem is, I can't figure out how.I've tried tar and gzip through every google hit I can possibly find but not one has worked.