Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-06-2006, 01:30 PM   #1
Registered: Aug 2005
Location: Montreal, Qc
Distribution: CentOs 4.5/5.0
Posts: 113

Rep: Reputation: 15
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?
Old 12-06-2006, 01:34 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,818
Blog Entries: 14

Rep: Reputation: 1076Reputation: 1076Reputation: 1076Reputation: 1076Reputation: 1076Reputation: 1076Reputation: 1076Reputation: 1076
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.
Old 12-06-2006, 01:36 PM   #3
Registered: Aug 2005
Location: Montreal, Qc
Distribution: CentOs 4.5/5.0
Posts: 113

Original Poster
Rep: Reputation: 15
Thanks a lot!

This is exactly what I wanted.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
KDE: Making a Shortcut to a File? Kamex Linux - Software 3 03-30-2005 09:49 PM
Making a shortcut to GAIM: How do I change the icon? killswitch1968 Linux - Newbie 1 03-11-2004 03:22 AM
shell script link/shortcut in KDE sanger440 Linux - Newbie 7 02-12-2004 05:37 PM
making a show desktop shortcut? Moses420ca Linux - Newbie 4 08-07-2003 08:01 AM
making shortcut keys evian Linux - General 4 04-08-2003 08:19 AM

All times are GMT -5. The time now is 03:25 PM.

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