If I'm in the wrong list for this question, I apologize. Running RedHat 7.1, Samba 2.2.1a. I'm trying to set up a symbolic link between two Samba shares. When I issue the "ln" command (see below) it appears to run, but if I "ls" the directory, I get white, flashing text on a red background. This is supposed to mean the symlink is orphaned. Attempting a symlink to a server who's NetBIOS name is "SMB2" and share on it called "Public" to server SMB1 (see pertinenct smb.conf parts below). I issue the "ln" command as directed in the HowTo on "Hosting a Microsoft Distributed File System Tree On Samba" (see below). When I issue the command I'm in /usr/local/UDrive/Public on SMB1. ln -s msdfs:smb2\\Public others All I get is the blinking link when I list the directory Any help is much appreciated. Marion D. Haines Network Administrator Board of County Commissioners Brevard County, Florida ================================== EMail: marion.haines@countygovt.brevard.fl.us Phone: 321-617-7398 ================================== # Samba config file created using SWAT # Date: 2002/01/11 16:08:46 # Global parameters [global] workgroup = STGROUP netbios name = SMB1 server string = Server Samba1, Version %v interfaces = 192.168.204.40/255.255.255.0 encrypt passwords = Yes smb passwd file = /usr/local/samba/private/smbpasswd passwd program = /usr/bin/passwd %u passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *passwd*all*authentication*tokens*updated*successfully* unix password sync = Yes log file = /var/log/samba/%m.log max log size = 0 name resolve order = wins lmhosts host bcast time server = Yes deadtime = 15 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 domain admin group = root @sadmin logon script = scripts\sstartup.bat logon path = logon home = domain logons = Yes os level = 64 preferred master = True domain master = True dns proxy = No wins support = Yes host msdfs = Yes write list = @sadmin printer admin = @sadmin create mask = 0755 printing = lprng dos filetimes = Yes [UDrive] comment = SAMBA folder for user data storage. path = /usr/local/UDrive read only = No create mask = 0766 [Public] comment = For file transfer between offices using MSDFS. path = /usr/local/UDrive/Public admin users = @sadmin read only = No create mask = 0744 guest ok = Yes dos filemode = Yes msdfs root = Yes
ls shows the symlink as being broken because it is broken. UNIX has no knowledge of MS-DFS or Samba's handling of it. The symbolic link is just to tell Samba what names should show up in the DFS mount (the symlink name) and where they should point (the symlink target). The DFS share can work correctly even though the symbolic link has no real function on the UNIX side. On Fri, Jan 11, 2002 at 04:19:11PM -0500, Marion Haines wrote:> I'm trying to set up a symbolic link between two Samba shares. When I > issue the "ln" command (see below) it appears to run, but if I "ls" > the directory, I get white, flashing text on a red background. This > is supposed to mean the symlink is orphaned.<snip>> ln -s msdfs:smb2\\Public others-- That feeling just came over me. -- Albert DeSalvo, the "Boston Strangler"
Thanks for the reply. Unfortunately, the link doesn't show up in the share designated to be the MSDFS root at the designated mount point (others). I can mount this same share with smbmount without problem. I just can't see how to get smbmount to do what an MSDFS link could do. TIA, Marion D. Haines Network Administrator Board of County Commissioners Brevard County, Florida ================================== EMail: marion.haines@countygovt.brevard.fl.us Phone: 321-617-7398 ================================== -----Original Message----- From: Michael Heironimus [mailto:mkh01@earthlink.net] Sent: Friday, January 11, 2002 7:30 PM To: iSMTP@GC2A@Servers Subject: Re: Orphaned Symlink ls shows the symlink as being broken because it is broken. UNIX has no knowledge of MS-DFS or Samba's handling of it. The symbolic link is just to tell Samba what names should show up in the DFS mount (the symlink name) and where they should point (the symlink target). The DFS share can work correctly even though the symbolic link has no real function on the UNIX side. On Fri, Jan 11, 2002 at 04:19:11PM -0500, Marion Haines wrote:> I'm trying to set up a symbolic link between two Samba shares. When I > issue the "ln" command (see below) it appears to run, but if I "ls" > the directory, I get white, flashing text on a red background. This > is supposed to mean the symlink is orphaned.<snip>> ln -s msdfs:smb2\\Public others-- That feeling just came over me. -- Albert DeSalvo, the "Boston Strangler" -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba