[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: sudoers: not able to execute commands with sudo


On 08/29/2011 04:07 PM, Naga Chaitanya Palle wrote:
Could not chdir to home directory /home/sysadmin: No such file or directory

pam_mkhomedir? :)

On *client*:


sudoers_base ou=SUDOers,dc=comverse-in,dc=com

nss_base_passwd ou=People,dc=comverse-in,dc=com?one

nss_base_shadow ou=People,dc=comverse-in,dc=com?one

nss_base_group ou=Group,dc=comverse-in,dc=com?one

I suppose all this tests on client side.

At first make sure you can get data from ldap server (use ldapsearch and get it manually). If this ok,

try this
$ echo "sudoers_debug 2" >> /etc/ldap.conf
$ sudo -l

and this
$ ln -s /etc/ldap.conf /etc/nss_ldap.conf
$ strace sudo -l

also, you can debug ldap connectivity
$ echo "debug 257" >> /etc/ldap.conf
$ sudo -l