8000 cat: /etc/bashrc: Permission denied · Issue #16700 · NixOS/nix · GitHub
[go: up one dir, main page]

Skip to content

cat: /etc/bashrc: Permission denied #16700

Open

Description

@fliiiix

Platform

  • Linux: Ubuntu 26.04
  • macOS
  • WSL

Additional information

n/a

Output

Output
~~> Setting up the basic directory structure
[sudo: authenticate] Password:             

~~> Installing Nix
      Alright! We have our first nix at /nix/store/8lza1b8nnci8lmm4q68p0l33pg975s0q-nix-2.35.4
      Just finished getting the nix database ready.

~~> Setting up shell profiles: /etc/bashrc /etc/profile.d/nix.sh /etc/zshrc /etc/bash.bashrc /etc/zsh/zshrc
cat: /etc/bashrc: Permission denied

# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
  . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix


---- oh no! --------------------------------------------------------------------
Oh no, something went wrong. If you can take all the output and open
an issue, we'd love to fix the problem so nobody else has this issue.

:(

We'd love to help if you need it.

You can open an issue at
https://github.com/NixOS/nix/issues/new?labels=installer&template=installer.md

Or get in touch with the community: https://nixos.org/community
ls -ls /etc/bashrc
4 -rw-r----- 1 root root 161 Oct 27 08:04 /etc/bashrc

sudo cat /etc/bashrc
# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
  . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix

Seems that if it doesn't exit it gets created as root but then is cat as normal user again?

Checklist


Add 👍 to issues you find important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0