Hi all, please forgive my lack of knowledge as I am learning Linux from scratch using the Pluralsight EX200 exam course notes (yes, probably way over my head, but this is what my manager gave me as a task...)
I am going through the openldap sections and I have created an ldap user using an ldif file, the contents of which are:
dn: uid=sally,ou=people,dc=example,dc=com
uid: sally
cn: sally
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword::
shadowMin: 0
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bashp
uidNumber: 4001
gidNumber: 4000
homeDirectory: /home/sally
gecos: sally bloggs
Then ran the script ldapadd -x -W -D cn=Manager,dc=example,dc=com -f newuser.ldif
I made an error on the login shell line when editing the file and you will see I put /bin/bashp, so now when I try to su - sally, I get an error 'failed to execute /bin/bashp'
What is the easiest way for me to fix this issue? Thanks in advance
I am going through the openldap sections and I have created an ldap user using an ldif file, the contents of which are:
dn: uid=sally,ou=people,dc=example,dc=com
uid: sally
cn: sally
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword::
shadowMin: 0
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bashp
uidNumber: 4001
gidNumber: 4000
homeDirectory: /home/sally
gecos: sally bloggs
Then ran the script ldapadd -x -W -D cn=Manager,dc=example,dc=com -f newuser.ldif
I made an error on the login shell line when editing the file and you will see I put /bin/bashp, so now when I try to su - sally, I get an error 'failed to execute /bin/bashp'
What is the easiest way for me to fix this issue? Thanks in advance