GithubHelp home page GithubHelp logo

xenago / libnss_shim Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 0.0 246 KB

Perform Name Service Switch (NSS) lookups with custom commands

License: GNU General Public License v3.0

Rust 93.09% Shell 6.91%
aarch64 arm64 centos deb debian libnss linux nss nsswitch rpm rust ubuntu

libnss_shim's People

Contributors

xenago avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

libnss_shim's Issues

amd64 rpm v1.2 install failure

amd64 rpm v1.2 install fails on Amazon linux 2 ec2 instance. However v1.1 install works correctly. Error for installing v1.2 is shown below.

[root@ip-1 v1.2]# curl -sLo libnss_shim.rpm https://github.com/xenago/libnss_shim/releases/download/1.2.0/libnss_shim-1.2.0-1_x86_64.rpm
[root@ip-1 v1.2]# sudo rpm -Uv ./libnss_shim.rpm
error: open of Not failed: No such file or directory
error: open of Found failed: No such file or directory

rhel7 support

Hi, thank you for creating this package. I would like to set this package up on an Amazon Linux 2. Could you provide support for that OS?

Thank you for your time

Changing user doesn't work with nss lookup

Hi,

I installed libnss_shim on a linux server and I set up the config to call a Python script. The python script looks like this

print("fakeuser-2:x:1004:1004::/home/fakeuser-2:/bin/bash")

When I run getent passwd I see fakeuser-2 is printed as shown below

...
testuser-1:x:1002:1002::/home/testuser-1:/bin/bash
testuser-2:x:1003:1003::/home/testuser-2:/bin/bash
fakeuser-2:x:1004:1004::/home/fakeuser-2:/bin/bash

However, when I run su fakeuser-2, I get the error su: user fakeuser-2 does not exist. This does not happen if I edit /etc/passwd manually. I would like to add fakeuser-2 dynamically and not have to edit /etc/passwd directly. Do you know how I can do that?

-Tim

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.