LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-06-2006, 02:30 PM   #1
Yig
Member
 
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?
Thanks!
 
Old 12-06-2006, 02:34 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,580
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
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, 02:36 PM   #3
Yig
Member
 
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.
 
  


Reply


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


All times are GMT -5. The time now is 11:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration