delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/22/17:55:49

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199902222254.QAA03688@modi.xraylith.wisc.edu>
X-Authentication-Warning: modi.xraylith.wisc.edu: localhost.xraylith.wisc.edu [127.0.0.1] didn't use HELO protocol
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Cygwin symbolic links on a SAMBA server
Date: Mon, 22 Feb 1999 16:54:15 -0600
From: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>

This is a message I had sent to the uwin mailing list regarding the
support of symbolic links on a SAMBA server. This applies to Cygwin
equally.

Mumit -- khan AT xraylith DOT wisc DOT edu

ps: no, this is not an automatically forwarded from one mailing list to
the other by way of Japan ;-)

------- Forwarded Message

Date:    Mon, 22 Feb 1999 16:48:11 -0600
Subject: Re: ln and samba 


David Korn <dgk AT research DOT att DOT com> writes:
> 
> I believe that this would require a change to samba.  When U/WIN
> creates a symlink on a FAT or samba file system, it does this by
> creating a file of a special format and gives the file the system
> attribute.  The samba server would have to detect this and
> create the link.

I was going to respond earlier, but then forgot all about it. A similar 
question asked by a Cygwin user just jogged my memory.

UWIN (and Cygwin) implements the symbolic links by adding a magic
cookie to the file and then setting the SYSTEM attribute (this is
possibly just for efficiency, at least in Cygwin). Samba servers
support this SYSTEM attribute by setting the group execute bit on a
file, so it does support the symbolic links already. Unfortunately, the
reason you don't see it is because it's turned OFF by default.

If you need to have symbolic support in the server (which I do since I
do a lot of the work on mounted disks), you can turn it on by the
following in the Samba configuration file and then restarting it:

   mask system = yes 
   create mask = 0775

the "create mask" can be anything as long as you *DON'T* mask out the
group execute bit (ie., 010), which is what Samba server uses to
support the SYSTEM attribute.

Please consult your SAMBA docs before doing anything. I don't know how
far back this support goes, but I remember it back in 1.9.x days.

------- End of Forwarded Message


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019