Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: djmichaelsaler on September 02, 2017, 12:43:25 AM

Title: Install and config LDAP
Post by: djmichaelsaler on September 02, 2017, 12:43:25 AM
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.
Title: Re: Install and config LDAP
Post by: patrikg on September 02, 2017, 04: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.


Title: Re: Install and config LDAP
Post by: djmichaelsaler on September 02, 2017, 05: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

Title: Re: Install and config LDAP
Post by: Misalf on September 02, 2017, 06: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