WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Install and config LDAP  (Read 245 times)

Offline djmichaelsaler

  • WikiUser
  • *
  • Posts: 2
Install and config LDAP
« on: September 01, 2017, 11:43:25 PM »
Hi, I'm installed OpenLDAP but when I edit the config file "/usr/local/etc/ldap/ldap.conf" with "sudo vi /usr/...", the vi return message "read only" and I can't edit the file.

Offline patrikg

  • Sr. Member
  • ****
  • Posts: 287
Re: Install and config LDAP
« Reply #1 on: September 02, 2017, 03:53:54 AM »
Try to run
Code: (bash) [Select]
sudo chmod +rw /usr/local/etc/ldap/ldap.conf to the file, before you edit the file.



Offline djmichaelsaler

  • WikiUser
  • *
  • Posts: 2
Re: Install and config LDAP
« Reply #2 on: September 02, 2017, 04:51:07 AM »
tc@box:~$ sudo chmod +rw /usr/local/etc/openldap/ldap.conf
chmod: /usr/local/etc/openldap/ldap.conf: Read-only file system


Offline Misalf

  • Hero Member
  • *****
  • Posts: 1588
Re: Install and config LDAP
« Reply #3 on: September 02, 2017, 05:09:56 AM »
You're trying to edit a file that is symlinked from the mounted extension. Replace the symlink with the real file by copying it from the mount point and add it to your backup.
Something like
Code: [Select]
sudo rm /usr/local/etc/ldap/ldap.conf
sudo cp /tmp/tcloop/openldap/usr/local/etc/ldap/ldap.conf  /usr/local/etc/ldap/ldap.conf
sudo vi /usr/local/etc/ldap/ldap.conf
echo "usr/local/etc/ldap/ldap.conf" >> /opt/.filetool.lst
filetool.sh -b
Download a copy and keep it handy: Core book ;)