Results 1 to 3 of 3

Thread: /etc/bash.logout not being run

  1. #1
    Join Date
    Oct 2006
    Beans
    25

    /etc/bash.logout not being run

    The title says it all really: /etc/bash.logout is not being run on user logout as defined in "man bash". Tested on 9.04 and 8.04 with no joy. The script is exectutable as

    Code:
    $ bash /etc/bash.logout
    so it's not an error in the script itself

    ~/.bash_logout works as well.

    Does anyone know what I'm doing wrong? I am testing using login shells.

  2. #2
    Join Date
    Apr 2008
    Location
    Missoula, MT USA
    Beans
    137
    Distro
    Kubuntu

    Re: /etc/bash.logout not being run

    I guess I'm a little confused. So /etc/bash.logout does not work. Does ~/bash_logout work or not work?

  3. #3
    Join Date
    Oct 2006
    Beans
    25

    [SOLVED] Re: /etc/bash.logout not being run

    Thanks for the reply.

    Someone actually solved it for me. Documentation on man bash is wrong. The file that is run on logout is /etc/bash.bash_logout.

    Hope that will help someone else in the future!

Tags for this Thread

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
  •