LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Making a shortcut/link? (https://www.linuxquestions.org/questions/linux-newbie-8/making-a-shortcut-link-507951/)

Yig 12-06-2006 01:30 PM

Making a shortcut/link?
 
I recently compiled Samba and the service itself is expecting to find smb.conf in /usr/local/samba/lib/ but kinit and the net commands are expecting smb.conf to be in /etc/samba/.

I would like that /etc/samba/smb.conf point to /usr/local/samba/lib/smb.conf.

How do I do that?
Thanks!

MensaWater 12-06-2006 01:34 PM

Assuming your real file is /usr/local/samba/lib/smb.conf you can create a symbolic link (a/k/a symlink) to /etc/samba/smb.conf:


ln -s /usr/local/samba/lib/smb.conf /etc/samba/smb.conf

If the real file is /etc/samba.smb.conf instead then you just reverse the order in the above.

Yig 12-06-2006 01:36 PM

Thanks a lot!

This is exactly what I wanted.


All times are GMT -5. The time now is 01:11 AM.