Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ uname -a
- Linux lx-vb 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
- $ grep VERSION /etc/os-release
- VERSION="13.04, Raring Ringtail"
- $ grep "^passwd" /etc/nsswitch.conf
- passwd: files ldap
- $ ldapsearch -LLL -h localhost -p 1389 -D "cn=directory manager" -w xxxxxxxx "uid=testuser" userPassword
- dn: uid=testuser,ou=People,dc=example,dc=com
- userPassword:: e1NTSEF9b2JWYXFDcjhNQmNJVXZXVHMzbE40SFlReStldC9XNFZ0NU4yRmc9PQ==
- userPassword:: e1NTSEF9eDlnRGZ5b0NhKzNROTIzOTFha1NiR2VTMFJabjNKSWYyNkN3cUE9PQ==
- $ grep testuser /etc/passwd
- $ getent passwd testuser
- testuser:*:12345:12345:ldap test user:/home/testuser:/bin/sh
- $ sshpass -p pass1 ssh testuser@localhost id
- uid=12345(testuser) gid=12345 groups=12345
- $ sshpass -p pass2 ssh testuser@localhost id
- uid=12345(testuser) gid=12345 groups=12345
- $ sshpass -p pass3 ssh testuser@localhost id
- Permission denied, please try again.
- $ useradd -d /home/newuser newuser
- $ passwd newuser
- newuser:$6$....password #1...:15963:0:99999:7:::
- newuser:$6$....password #2...:15963:0:99999:7:::
- su - newuser
- newuser:$6$....password #2...:15963:0:99999:7:::
- newuser:$6$....password #1...:15963:0:99999:7:::
- joe ALL=(yourusername) ALL
- user1 ALL = (user2) ALL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement