Results 1 to 3 of 3

Thread: How to keep home directory mounted after logout

  1. #1
    Join Date
    Nov 2010
    Beans
    35

    How to keep home directory mounted after logout

    So I created an additional user on my system that I wanted to run bitcoin. I decided for arbitrary purposes that I wanted it to have its own encrypted home folder, and that I wanted to restrict this user using apparmor to create a profile for a custom bash.

    Everything works fine, I debugged all the apparmor blocks and the program runs fine in daemon mode... until i close the terminal session.

    Bitcoin continues to run, but the home folder dismounts and then it begins to generate a lot error messages.

    Any good way to leave the filesystem mounted for this program>?

  2. #2
    Join Date
    Jan 2007
    Beans
    275

    Re: How to keep home directory mounted after logout

    So you mean to have 2 home partitions??

    And none of the mounted drives gets unmounted untill you do it externally or till you restart.

    If you have the code, you can add this command in it to run when you log in or check if its mounted or not.

    mount /dev/parition /<path to mount>
    My linux registered number-438221
    Use Zenwalk, its SMALL and SEXY and VERY SLIM distro. Its very fast. I love it.
    Zenwalk.org

  3. #3
    Join Date
    Nov 2010
    Beans
    35

    Re: How to keep home directory mounted after logout

    thanks, ts mounting fine though....

    i log in on my primary user, open up a terminal.... su into my bitcoin user... and the home folder is automatically mounted ... i execute the command for the bitcoin daemon, and as long as i leave the terminal open, the program runs fine.

    as soon as i close the terminal, the program will continue to run, but the home folder for that bitcoin user then dismounts....which causes all sorts of errors for the program...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •