LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-22-2019, 09:59 AM   #1
vinmansbrew
Member
 
Registered: Feb 2016
Posts: 192

Rep: Reputation: Disabled
nslcd dead but subsys locked


Sooooo, working on changing nslcd.conf file to reflect change to a new ldap server.
Go to restart nslcd and it loooks ok, but a service nslcd status delivers the error: nslcd dead but subsys locked

Tried to rename the /var/run/nslcd directory and create a new one with same perms/owner/grp, and same with /var/lock/subsys/nslcd
Any thoughts on why this issue is occuring?

Rhel 6.10 running on vmware 11 (I think, though I don't think vmware is the issue as other servers are ok)

Thanks!
 
Old 03-23-2019, 05:52 AM   #2
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 243

Rep: Reputation: Disabled
Did the init script successfully bring down nslcd? I agree, it probably has nothing to do with VMWare.
 
Old 03-26-2019, 12:32 PM   #3
vinmansbrew
Member
 
Registered: Feb 2016
Posts: 192

Original Poster
Rep: Reputation: Disabled
Well, stopping/starting the service would appear to work, but changes would not actually load. A pkill nslcd goes through, then a a service nslcd status, shows the nslcd dead but subsys locked error.
 
Old 03-27-2019, 05:24 AM   #4
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 243

Rep: Reputation: Disabled
nslcd dead but subsys locked isn't generated by nslcd, but by the init script's status function. It just means there is a pid file but the process isn't running. Try killing nslcd and running it in debug mode.

Code:
# service nslcd stop
Stopping nslcd:                                            [  OK  ]
# ps -ef | grep nslcd
root      1487  1381  0 06:23 pts/0    00:00:00 grep nslcd
# nslcd -d
nslcd: DEBUG: add_uri(ldap://127.0.0.1/)
nslcd: version 0.7.5 starting
nslcd: DEBUG: unlink() of /var/run/nslcd/socket failed (ignored): No such file or directory
nslcd: DEBUG: setgroups(0,NULL) done
nslcd: DEBUG: setgid(55) done
nslcd: DEBUG: setuid(65) done
nslcd: accepting connections
 
Old 03-27-2019, 09:22 AM   #5
vinmansbrew
Member
 
Registered: Feb 2016
Posts: 192

Original Poster
Rep: Reputation: Disabled
Well, debug mode didn't really point out anything, but it caused me to recheck selinux and find a typo in the boolean. Always with the selinux!

Thanks for the assist!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd dead but subsys locked, but pid exists mlgunner Linux - Server 1 04-14-2011 01:55 PM
httpd dead but subsys locked x2000koh Linux - General 5 03-21-2005 05:26 PM
vsftpd dead but subsys locked jon_k Linux - Software 2 07-16-2003 04:19 PM
anacron dead but subsys locked adenardo Linux - General 11 06-13-2003 01:37 AM
proftpd dead but subsys locked!! NEED HELP!! acegamer Linux - Newbie 0 04-18-2003 09:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration