Results 1 to 3 of 3

Thread: Live build hook 0140 permission dennied error

  1. #1
    Join Date
    2020-Apr
    Posts
    1

    Live build hook 0140 permission dennied error

    I'm trying to build a custom ISO without the beep at boot. Just edited the menu.cfg file and followed the instructions from the oficial guide (https://www.kali.org/docs/developmen...stom-kali-iso/) but I keep getting the following error:
    build.log
    ./usr/lib/live/config/0031-kali-password
    [2020-04-06 23:27:13] lb chroot_hooks
    P: Begin executing hooks...
    /root/0140-remove-log-files.hook.chroot: 8: cannot create /var/log/postgresql/postgresql-12-main.log: Permission denied
    E: config/hooks/normal/0140-remove-log-files.hook.chroot failed (exit non-zero). You should check for errors.
    P: Begin unmounting filesystems...
    P: Saving caches...
    Reading package lists...
    Building dependency tree...
    Reading state information...
    I've tried running the 0140-remove-log-files.hook.chroot as a regular user and as a root but still getting the same error. Tried chown the postgresql-12-main.log file to the give the regular user ownership but stil no luck. Also tried running the script in bin/bash and the error is the same.

    uname -a
    Linux kali 5.4.0-kali4-amd64 #1 SMP Debian 5.4.19-1kali1 (2020-02-17) x86_64 GNU/Linux
    Any help on how to proceed or fix this would be appreciated!

  2. #2
    Join Date
    2014-Sep
    Posts
    5
    Quote Originally Posted by Ksandro View Post
    I'm trying to build a custom ISO without the beep at boot. Just edited the menu.cfg file and followed the instructions from the oficial guide (https://www.kali.org/docs/developmen...stom-kali-iso/) but I keep getting the following error:
    build.log


    I've tried running the 0140-remove-log-files.hook.chroot as a regular user and as a root but still getting the same error. Tried chown the postgresql-12-main.log file to the give the regular user ownership but stil no luck. Also tried running the script in bin/bash and the error is the same.

    uname -a


    Any help on how to proceed or fix this would be appreciated!
    The problem comes from the sticky bit set on the /var/log/postgresql dir.

    This doesn't work even if we are running as root :
    Code:
    : > postgresql-12-main.log
    This would work:
    Code:
    truncate -cs 0 postgresql-12-main.log

  3. #3
    Join Date
    2020-May
    Posts
    1
    I am currently facing the same error. Can anyone shed light on this problem?

Similar Threads

  1. Live Build error for Chromebook Veyron
    By helpme0biWAN in forum Building Archive
    Replies: 0
    Last Post: 2021-03-29, 10:55
  2. Replies: 0
    Last Post: 2015-04-27, 13:21
  3. build fail: apt-xapian-index chroot hook
    By ser in forum Building Archive
    Replies: 0
    Last Post: 2013-10-29, 13:59
  4. Replies: 1
    Last Post: 2013-05-01, 12:43

Posting Permissions

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