Comments (5)
It's possible to use useradd
with a shadow
without PAM support:
nix-shell -p '(import <nixpkgs> {}).shadow.override { pam = null; }' --run 'useradd alice'
from nix-docker.
also, I figured it might be pam missing, but when I try to add it:
installing 'linux-pam-1.3.0'
building '/nix/store/0g074r0x1wf4drq2h5jalassmjsbrmbc-user-environment.drv'...
error: getting status of '/nix/store/jh75rrglhvdjpm793zkc8jkzcpwwhajm-linux-pam-1.3.0/bin/unix_chkpwd': No such file or directory
builder for '/nix/store/0g074r0x1wf4drq2h5jalassmjsbrmbc-user-environment.drv' failed with exit code 1
error: build of '/nix/store/0g074r0x1wf4drq2h5jalassmjsbrmbc-user-environment.drv' failed
where do I report that ?
from nix-docker.
Yeah, pam isn't configured an probably won't work if just installed.
Not sure about the build failure but the store path for the latest container should be /nix/store/jh75rrglhvdjpm793zkc8jkzcpwwhajm-linux-pam-1.3.0
.
from nix-docker.
I'm facing the same issue. I need a NIX container running postgres, but for that, I need to create a "postgres" user, and then I need PAM, but:
bash-4.4# nix-env -iA nixpkgs.linux-pam
installing 'linux-pam-1.3.0'
these paths will be fetched (0.16 MiB download, 0.25 MiB unpacked):
/nix/store/44aad44xx9c4kikbz8v2y9kp5hpcrb0z-linux-pam-1.3.0-man
/nix/store/jkn0c7q20pndv4cfl4bqkx72h18vzrx5-linux-pam-1.3.0-doc
copying path '/nix/store/jkn0c7q20pndv4cfl4bqkx72h18vzrx5-linux-pam-1.3.0-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/44aad44xx9c4kikbz8v2y9kp5hpcrb0z-linux-pam-1.3.0-man' from 'https://cache.nixos.org'...
building '/nix/store/71a8xs9fdshh2p2k2nxxiwwr2vx6njxr-user-environment.drv'...
error: getting status of '/nix/store/m5q6xw9nvx6kmqzzxi6z87lxg5xlw6zs-linux-pam-1.3.0/bin/unix_chkpwd': No such file or directory
builder for '/nix/store/71a8xs9fdshh2p2k2nxxiwwr2vx6njxr-user-environment.drv' failed with exit code 1
error: build of '/nix/store/71a8xs9fdshh2p2k2nxxiwwr2vx6njxr-user-environment.drv' failed
@sokoow did you finaly manage to use PAM inside a NIX container?
from nix-docker.
this is probably solved by running the shadowSetup script from pkgs.dockerTools.shadowSetup:
from nix-docker.
Related Issues (20)
- getting stuck trying to use as a nixpkg builder HOT 4
- nix 2.0? HOT 13
- nix-shell -p nix-info --run "nix-info -m" does not work in container HOT 3
- Warning: Identity file "[home]/.nix-docker-build-slave/insecure_rsa" not accessible: No such file or directory. HOT 3
- Official nixos project?
- does not bootstrap system.build.etc aka /etc/ which means you should probably avoid nix-docker until it does HOT 6
- docker build failing on linux HOT 1
- Nix-build failing with DockerTools on MacOS HOT 1
- Update to Nix 2.2.2
- cannot build on 'ssh://root@nix-docker' HOT 7
- Sharing /nix with docker HOT 2
- SSL peer certificate or SSH remote key was not OK HOT 1
- Version bump? HOT 1
- agent key RSA SHA256:... returned incorrect signature type
- macOS updates delete /var/root/.ssh HOT 1
- unable to load seccomp BPF program: Invalid argument HOT 1
- nix-darwin + nix-docker + nixops = failed deployment HOT 1
- Time sync with host in ssh container
- the group 'nixbld' specified in 'build-users-group' does not exist HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix-docker.