General :: Ubuntu - Home Directory Be Symlinked?

Feb 10, 2010

I have a second large storage hdd mounted in Ubuntu in /media/storage. I would like my home directories for me and all future users of the system to be located on this storage drive as well.

I was thinking that the easiest way to accomplish this was to move /home to /media/storage/home and then create a symlink so that /home points to /media/storage/home. Would this work okay?

The only reason I ask, is because I know that a users home directory has a lot of special configuration information stored in it, so I didn't know if this would screw up anything on the system.

Are there any better alternative methods to relocating the home directory?

View 1 Replies


ADVERTISEMENT

General :: Testing Home Directory Scripts By Setting $HOME To The Location Of The Test Directory

Apr 20, 2010

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?

View 1 Replies View Related

General :: 'Could Not Chdir To Home Directory /home/[user]: Permission Denied'

Jan 6, 2010

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.

View 14 Replies View Related

General ::anything Special About Home Directory Before Users' Home Directories Are Stored There

Jun 19, 2010

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?

View 10 Replies View Related

General :: Access Directory Outside Of Home Directory?

Apr 13, 2010

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?

View 7 Replies View Related

Ubuntu :: Home Folder Icons Don't Update When Change The Home Directory

Sep 22, 2010

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?

View 2 Replies View Related

Ubuntu Servers :: Set Home Directory Path Different From LDAP's Home?

May 24, 2011

I need to specify a different path to home directories on a particular server than what LDAP contains for the users, besides using a symlink. E.g. "/Users/jdoe" vs "/home/jdoe" I don't want to change the actual LDAP attributes, just want a particular server to point them in the right direction (Ubuntu 10.04).

I'm assuming it's something I could probably set in pam configurations?

View 1 Replies View Related

General :: Ubuntu 10.04 - Tar Command To Archive Home Directory

Sep 3, 2010

Ubuntu 10.04. As part of my nightly backup script I archive my home directory with the following command
tar -cvpzf /quitelarge/_mirror/mirror1/home-ken.gz /home/ken 2>> /quitelarge/_mirror/tar-error.log

It seems to work fine and I have recovered files from the archive on occasion. Actually I keep 7 rolling daily backups and a monthly burn to DVD. I had an sftp connection made by Nautilus to my server. Ubuntu for whatever reason places an icon on the desktop showing the connection. When I ran the script it decided to archive everything on my server - all 1.4 TB. I caught the problem when home-ken.gz was about 5 GB. I stopped the process, closed the sftp connection, rolled back the backups and tried again. This time I got a file of the expected size - about 45 MB.

In the error log I did find that the tar process was trying to suck the entire contents of the server into the archive file.
tar: /home/ken/.gvfs/sftp for ken on taylor10/proc/asound/ICH5/pcm0c/sub0: file changed as we read it
tar: /home/ken/.gvfs/sftp for ken on taylor10/proc/asound/ICH5/pcm0c: file changed as we read it
tar: /home/ken/.gvfs/sftp for ken on taylor10/proc/asound/ICH5: file changed as we read it
tar: /home/ken/.gvfs/sftp for ken on taylor10/proc/asound: file changed as we read it
tar: /home/ken/.gvfs/sftp for ken on taylor10/proc/scsi: file changed as we read it
tar: /home/ken/.gvfs/sftp for ken on taylor10/proc/acpi/event: Cannot open: Permission denied
tar: /home/ken/.gvfs/sftp for ken on taylor10/proc/acpi/fadt: Cannot open: Permission denied
tar: /home/ken/.gvfs/sftp for ken on taylor10/proc/acpi/dsdt: Cannot open: Permission denied
tar: /home/ken/.gvfs/sftp for ken on taylor10/proc/irq/21/smp_affinity: Cannot open: Permission denied

Is there an option I can place on the tar command to tell it NOT to follow the ssh connection which is sitting on my desktop? The closest thing I see in the documentation is -h which tells tar to "follow symlinks; archive and dump the files they point to." I am NOT specifying -h so if the ssh connection is treated as a symlink by tar I would still not expect the remote contents to be tarred.

View 13 Replies View Related

General :: How To Let Others Access Home Directory

Jan 20, 2010

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.

View 3 Replies View Related

General :: What Should Be Permissions Of Home Directory?

Oct 20, 2009

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

View 4 Replies View Related

General :: Need To Backup / Home Directory

Sep 10, 2010

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.

View 7 Replies View Related

General :: Cannot Write On Someone's Else /home Directory?

Sep 26, 2010

This might see a dump question but I will make it anyway .Here is the scenario:I have two users on my Linux Mint installation:

User A
User B

I want User A to be able to write on User B home directory, say /home/B.For this I have changed users's B home directory to look like this:ls -ld drwxrwxr-x 36 B music 4096 2010-09-26 10:31 /home/BI have created a "music" group and assigned to /home/B, so all users that are member of "music" are going to be able to write on User B home directory, right?The answer is No! Not here in my box Can you tell me why?Why users under group music can't write on /home/B if B directory is owned by group music and group music has write permissions?

View 5 Replies View Related

General :: Cannot Log In, Home Directory Not Recognized?

Aug 10, 2010

I have tried googling many times for answers, but haven't yet found a solution to my problem (maybe its my selection of search terms).I screwed up my debian system by trying to setup an ftp server with vsftpd very quickly withouteading much documentation (very stupid) as root. I must have screwed up the something to do with the home directory for my user because now cannot even log in with my usual username and password when the computer starts up. All the computer says when I try to log in is:

Unable to cd to 'homemyusername'I can log in as root with Debian single user mode, so I am hoping I can reset my home directory so it works again. Also, I cannot seem to ever get the gnome login screen just a terminal login screen.

View 7 Replies View Related

General :: Can Use / Home Directory From One Distro In Another?

Oct 28, 2009

I installed the beta of Ubuntu 9.10 Karmic, and I am now stuck with a barely usable system, so I am going to remove it. I've already backed up the home directory, and what I was wondering is this:If I were to install a completely different distro, like, say, OpenSUSE, would I be able to copy back my home directory without problems and have things still work, or would I have to reinstall Karmic? I had always believed that Linux distros were more or less the same except for cosmetic differences, but this seems like it'd be a different case somehow..

View 3 Replies View Related

General :: Zip De Home Directory To A Location?

Apr 25, 2010

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

Extra info

I am in GUI mode and i'm not logged in as root

View 3 Replies View Related

General :: User Without Home Directory

Feb 28, 2011

I was just exploring if i could create a normal user without a home directory. So i edited the file /etc/defaults/useradd and it now shows

[code]...

Why is this so? why isnt the change in useradd reflected here?

View 1 Replies View Related

Fedora :: Using SSH - Could Not Chdir To Home Directory /home/adahaj: Permission Denied

Jul 21, 2009

I have a strange problem when I do SSH to a FEDORA9 based Linux Server.

[Code]....

When I login using "adah" username in TELNET I am automatically directed to my home directory at location "/media/disk-1/home/adah". But when I use SSH to login using the same username I get the following message Code: Could not chdir to home directory /home/adahaj: Permission denied

View 7 Replies View Related

Ubuntu :: Cannot Mount Unencrypted Directory To Encrypted Home Directory With Fstab

Aug 26, 2010

I have Ubuntu Karmic. I chose to install with an encrypted home directory. Recently I got a warning that I only had 2GB of drive space left. This is mostly because of my videos. So I went and bought a new hard drive and partitioned it and made 1 ext4 partition and copied my videos all to the new hard drive. I added a line in my fstab to mount the new hard drive to ~/videos, but when I reboot the computer, there is a screen saying something like "error mounting /home/me/videos, press S to skip or something else to reboot". If I press S to skip, then when my system comes up there is a video directory but it's empty because my other hard drive didn't get mounted. I can run sudo mount /dev/sdb video/ and it will mount fine and I can see all my videos, so why can't fstab mount it? Does this have something to do with my encrypted home directory?

View 14 Replies View Related

General :: When Using Gt5 In Home Directory Get A Blank Page

Mar 11, 2010

When using gt5 in various directories on my system (including my home directory) I get blank results.

If I limit the max-depth enough, I get results. For example, in my home directory 'gt5 --max-depth 2' produces a listing, while 'gt5 --max-depth 3' produces a blank page.

I've noticed that the temporary html file that gets created in tmp (such as '/tmp/gt5.9035.kJVM08Y9/gt5.html' is a zero-byte file.

I can successfully do a du in the same directory (which is what I thought gt5 was using), so I'm not sure what to check?

View 1 Replies View Related

General :: Move The Home Directory To Another Partition?

May 25, 2010

I created a partition in my hard disk for my data (documents, multimedia, etc.).How can I:Move the /home/ directory to the new partitionMake the OS (Ubuntu Linux) treat that directory as the default /home/.

View 1 Replies View Related

General :: Creating User Home Directory?

Sep 14, 2010

I've a user account in a remote machine. but it doesn't have a home directory in that machine.Is it possible to create a home directory without having root account details. If yes, how it can be done.

View 1 Replies View Related

General :: Server - Can't Access Home Directory Over SMB

Feb 26, 2011

I have a server running Ubuntu server edition with SMB server all set up and running. I've set up the main root of the drive to be shared and I've set up a user in /etc/samba/smbusers to say root = "joeflood" so I can sign in as root using the username "joeflood". This works and I have read/write access to the filesystem (yay!). However, if I browse to /home/javawag (my main user home directory), I no longer have write permissions! I can see all the files in there and read them no problem, but writing is a no-go. I'm logged in as root though?! Btw, I can login via SSH and create folders/etc as root in the /home/javawag folder, and they showed up in the SMB mount on my mac too.

View 1 Replies View Related

General :: Why Is Home Directory Encrypted And Inaccessible

Jul 7, 2011

I installed Ubuntu Server because I want to learn Linux and I want to learn about servers. I did a newbie tutorial and then shut down. When I booted up today, the files in my home directory were replaced by Access-your-private-data.desktop and readme.txt, but I have no idea why. I followed the instructions in readme.txt and typed ecryptfs-mount-private. It told me

INFO: Your private directory has been mounted.
INFO: To see this change in your current shell:
cd /home/rmob

But if I do ls /home/rmob, it still shows me Access-your-private-data.desktop and readme.txt instead of the files I created there yesterday. Every time I reboot, it tells me

keyctl_search: Required key not available
Perhaps try the interactive 'ecryptfs-mount-private'

If I try ecryptfs-mount-private again, it still tells me it has mounted it, but still just shows me those same two files. Googling about this tells me this means the directory got encrypted somehow. I tried typing touch ~/.ecryptfs/auto-mount which I found in this tutorial, but it didn't make a difference and I can't find any other solution anywhere.

View 2 Replies View Related

General :: Migrate User Home Directory?

Sep 29, 2010

Ubuntu 10.04 64 bit I ran following command to change username; # usermod -c "Real name" -l new_username old_username but forgot adding -m option to move the contents of the old home directory to the new home directory. Therefore; # ls /home old_user_directory

View 4 Replies View Related

General :: Lock Ssh User On Own Home Directory?

Jun 21, 2011

I must to give ssh connection to own customer. So I want to lock ssh user on own home directory. It is not necessery to reach other folders. I know that ftp user can lock on own folder but I don't know how to lock ssh user.

View 1 Replies View Related

General :: Possible To Put Home Directory On NTFS Volume?

May 25, 2011

I'm setting up a dual-boot system, and want users to be able to access their stuff regardless of what OS is currently loaded. Ideally, I'd like to set it up so that the same Firefox profile is used in both Windows 7 and Linux, as well as the same "home" directories, but I don't think that is possible. At best, I plan to use shortcuts and symbolic links to make it easy to navigate. In any case, is there any major problem with setting up both Windows and Linux to use the same partition for storing user's directories? The primary shared things will be Open Office/Microsoft Office documents and Firefox setups.

I haven't decided if I'm putting Ubuntu or Fedora on this system. I'm more familiar with Fedora, but need to increase my familiarity with Ubuntu. I'm going to go with whatever will give me the least hassles with the setup I just described. On the other hand, I'm unsure if I even need to make a dual boot. I have VMWare, and I'm not sure what advantages there are to making a dual boot over VMware in my case. The only advantage I can see is:

1. Having Linux as a boot option kinda forces me to actually use it once I choose Linux. Thus, I become more familiar with it, and need to reboot the computer in order to use Widows.
2. Linux gives me an emergency boot option is the Windows section gets corrupted beyond what chkdsk and the other emergency recovery options can fix. Counterbalanced by the ability to boot the old Vista OS that came with the computer.
3. The full resources of the computer are available to Linux. Not so much an issue today, but maybe in a few years. This is counterbalanced by the fact that all my games are in Windows, and I can't think of anything else I'd do with Linux that would put such demands on the system. Yeah, I might use it as a server, but that is more to LEARN how to set up and configure servers. I believe it is against Comcast Cable's TOS to run an permanent server with the necessary dynamic DNS registration.

I have no need for a permanent DNS server. If I need name resolution, I'd just put it in my hosts file. I already use that to block ads, so sharing it with all my systems is no problem. I don't have that many. So, the only reason I can really think of is to force myself to use Linux by booting Linux, rather than take the lazy way with Windows.

View 8 Replies View Related

General :: Where To Chroot Their User Home Directory?

Oct 22, 2010

Is there a way where i can chroot their user home directory, lets say the user login on linux box /home/user, what i wanted to do is to chroot /home/user where user won't be able to browse the filesystem which is /. Tnx

View 1 Replies View Related

General :: Change The User's Home Directory?

May 9, 2010

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..

View 9 Replies View Related

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'm using Ubuntu 10.04 GNOME

View 6 Replies View Related

General :: How To Change Home Directory Ownership

Jun 24, 2011

I've already done the following commands

Code:
su
chown theif519 /home/theif519
chmod 775 /home/theif519
exit
#usermod -d /home/theif519 login

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].

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved