Is it possible to mount file system on users home directory
Hi,
I have created one user abc.
User home directory is /home/abc and I have created one filesystem /dev/../abc Is it possible to give mount point for above filesystem as /home/abc(User home directory).
Re: Is it possible to mount file system on users home directory
It is possible. But, what exactly is your intension? Is that directory the user's home directory or something? Or is it needed only for that user or something?
Re: Is it possible to mount file system on users home directory
Hi,
It is possible but the question is why the user need /dev directory, because /dev is for devices and drivers, so normal users home directory should not be there. If still you want then edit the /etc/passwd file and change the path or userâ s home directory into /home/abc to /dev/../abc And go to /dev/.. and give the full permission to abc with â R option and change the owner and group also with â R option. Or all this you can do with SAM.
Re: Is it possible to mount file system on users home directory
Hi, First you complete /dev/..../abc. It is so confusing. and now, you better first create the filesystem and then follows the user creation process by specifying the mounted directory as user's home directory.
useradd -m -d /home/abc abc
What is normally happen is when you mount a filesystem to a directory, it overlap the directory's previous contents and when you unmount it, you will regain those files again. so, if you already have /home/abc as your home directory, so take backup of your files before mounting. and restore them back after mounting the filesystem.