LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   noobi3 question... (https://www.linuxquestions.org/questions/linux-newbie-8/noobi3-question-169875/)

johntramp 04-13-2004 11:55 PM

noobi3 question...
 
I was reading how to share over samba in knoppix from this site...
http://www.knoppix.net/docs/index.php/FaqSambaQuick
and one of the first things it gets you to do is
Quote:

now you create a file out of the link smb.conf:

'cp smb.conf smb1.conf'
'rm smb.conf' confirm with 'y'
'mv smb1.conf smb.conf'
can someone tell me what the piont in this is?
thanks

itsme86 04-14-2004 12:08 AM

smb.conf originally is a symbolic link. Doing that process gives you a real smb.conf file.

Doing 'ls' might show something like this:

Code:

-rw-r--r--    1 root    root            0 Apr 13 22:05 file1
-rw-r--r--    1 root    root            0 Apr 13 22:05 file2
lrwxrwxrwx    1 root    root            5 Apr 13 22:05 smb.conf -> file1

file1 and file2 would have different types of configurations or something. You can think of a symbolic link as something similar to a shortcut in Windows. But anyway, after doing the process you quoted, smb.conf would be a real file containing the contents of whatever file it used to point to.

This is just a guess, but I can't think of any other reason to have you do what you described :)

johntramp 04-14-2004 01:32 AM

oh i understand, and thatl be what is ment by "create a file out of the link "
-thanks


All times are GMT -5. The time now is 05:00 PM.