I have a Samba 3 server, and a client with Samba 3. The server has a share for home directories, and the client is trying to mount it, but after it's mounted, I still can't create any symbolic links. Also, the GUI login (Red Hat Enterprise default) isn't working, but I think that's just a symptom of the symbolic and hard links not working. Any idea why, when I enable unix extensions on the server, I still can't make a symbolic link? Am I missing something here? Shannon ____________________________ Shannon Johnson Network Support Specialist / Systems Administrator Dept. of Mechanical and Nuclear Engineering 224 Reber Building University Park, PA 16802 Phone: (814) 865-8267 ____________________________
On Tue, May 18, 2004 at 11:26:40AM -0400, Shannon Johnson wrote:> I have a Samba 3 server, and a client with Samba 3. The server has a > share for home directories, and the client is trying to mount it, but > after it's mounted, I still can't create any symbolic links. Also, the > GUI login (Red Hat Enterprise default) isn't working, but I think that's > just a symptom of the symbolic and hard links not working. > > Any idea why, when I enable unix extensions on the server, I still can't > make a symbolic link? Am I missing something here?There was a bug in this code (it wasn't being heavily tested). I have fixed it in the current subversion head and it hopefully might make the next release. Jeremy.
This may come off sounding rude, and I certainly don't intend it to, but I'm a bit "under the gun" at the moment... do you have a patch or an alternative I could try for the time being? I'm using Red Hat Enterprise 3, so anything that works with that would be great. P.S. I've been trying for hours to get CIFS installed, and it's just not working well. When I make a kernel module for it, I get a few "unresolved symbol" errors, and when I compile a new kernel, other things don't work. I also have to stay with my current kernel and not upgrade to 2.6 for other reasons (unless Red Hat makes an RPM for it... in which case, I'll give it a shot). Shannon ____________________________ Shannon Johnson Network Support Specialist / Systems Administrator Dept. of Mechanical and Nuclear Engineering 224 Reber Building University Park, PA 16802 Phone: (814) 865-8267 ____________________________> -----Original Message----- > From: Jeremy Allison [mailto:jra@samba.org] > Sent: Tuesday, May 18, 2004 12:58 PM > To: Shannon Johnson > Cc: samba@lists.samba.org > Subject: Re: [Samba] Unix Extensions > > On Tue, May 18, 2004 at 11:26:40AM -0400, Shannon Johnson wrote: > > I have a Samba 3 server, and a client with Samba 3. The server has a > > share for home directories, and the client is trying to mount it,but> > after it's mounted, I still can't create any symbolic links. Also,the> > GUI login (Red Hat Enterprise default) isn't working, but I thinkthat's> > just a symptom of the symbolic and hard links not working. > > > > Any idea why, when I enable unix extensions on the server, I stillcan't> > make a symbolic link? Am I missing something here? > > There was a bug in this code (it wasn't being heavily tested). I have > fixed it in the current subversion head and it hopefully might make > the next release. > > Jeremy.
Are you referring to 3.0.4, or an upcoming 3.0.5 (or 4a or something)? If it's newer than 3.0.4, where can I get that? Shannon ____________________________ Shannon Johnson Network Support Specialist / Systems Administrator Dept. of Mechanical and Nuclear Engineering 224 Reber Building University Park, PA 16802 Phone: (814) 865-8267 ____________________________> -----Original Message----- > From: Jeremy Allison [mailto:jra@samba.org] > Sent: Tuesday, May 18, 2004 1:06 PM > To: Shannon Johnson > Cc: Jeremy Allison; samba@lists.samba.org > Subject: Re: [Samba] Unix Extensions > > On Tue, May 18, 2004 at 01:05:34PM -0400, Shannon Johnson wrote: > > > > This may come off sounding rude, and I certainly don't intend it to,but> > I'm a bit "under the gun" at the moment... do you have a patch or an > > alternative I could try for the time being? I'm using Red HatEnterprise> > 3, so anything that works with that would be great. > > > > P.S. I've been trying for hours to get CIFS installed, and it's justnot> > working well. When I make a kernel module for it, I get a few > > "unresolved symbol" errors, and when I compile a new kernel, other > > things don't work. I also have to stay with my current kernel andnot> > upgrade to 2.6 for other reasons (unless Red Hat makes an RPM forit...> > in which case, I'll give it a shot). > > The patch is quite long as I had to fix the "wide links" parameter at > the same time - it might just be better to take a snapshot of the > current subversion code. > > Jeremy.
I looked at the changelog for 3.0.3 and 3.0.4 and noticed a few things referencing the unix extensions in the 3.0.3 update. Just to be safe, I installed 3.0.4 and am still having the same problem. On the server, I have "unix extensions = yes" set under the share name in the smb.conf. The client has Samba 3.0.2, but I can upgrade to 3.0.4 if you think it'll help at all... When I test it, I type "mount -t smbfs //hostname/share /mnt/point -o,username=user,workgroup=WRKGRP" to mount it, then go into the /mnt/point directory and type "ln -s oldfile newlink". When I do that now, I get an "Operation not permitted" error. Yes, I have full permissions on the directory, and can create new files and everything... so that's not it. Am I missing something? Is there another option for the mounting command that I should use? Shannon ____________________________ Shannon Johnson Network Support Specialist / Systems Administrator Dept. of Mechanical and Nuclear Engineering 224 Reber Building University Park, PA 16802 Phone: (814) 865-8267 ____________________________> -----Original Message----- > From: Shannon Johnson > Sent: Tuesday, May 18, 2004 1:36 PM > To: Jeremy Allison > Cc: samba@lists.samba.org > Subject: RE: [Samba] Unix Extensions > > > Are you referring to 3.0.4, or an upcoming 3.0.5 (or 4a or something)? > If it's newer than 3.0.4, where can I get that? > > Shannon > > ____________________________ > > Shannon Johnson > Network Support Specialist / Systems Administrator > Dept. of Mechanical and Nuclear Engineering > 224 Reber Building > University Park, PA 16802 > Phone: (814) 865-8267 > ____________________________ > > > > -----Original Message----- > > From: Jeremy Allison [mailto:jra@samba.org] > > Sent: Tuesday, May 18, 2004 1:06 PM > > To: Shannon Johnson > > Cc: Jeremy Allison; samba@lists.samba.org > > Subject: Re: [Samba] Unix Extensions > > > > On Tue, May 18, 2004 at 01:05:34PM -0400, Shannon Johnson wrote: > > > > > > This may come off sounding rude, and I certainly don't intend itto,> but > > > I'm a bit "under the gun" at the moment... do you have a patch oran> > > alternative I could try for the time being? I'm using Red Hat > Enterprise > > > 3, so anything that works with that would be great. > > > > > > P.S. I've been trying for hours to get CIFS installed, and it'sjust> not > > > working well. When I make a kernel module for it, I get a few > > > "unresolved symbol" errors, and when I compile a new kernel, other > > > things don't work. I also have to stay with my current kernel and > not > > > upgrade to 2.6 for other reasons (unless Red Hat makes an RPM for > it... > > > in which case, I'll give it a shot). > > > > The patch is quite long as I had to fix the "wide links" parameterat> > the same time - it might just be better to take a snapshot of the > > current subversion code. > > > > Jeremy. > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
OK, I got the snapshot version from last night and installed it, and finally got it to start. It complained briefly about the unix extensions option being set in the share section when it should be in the global section, but after I moved it, I get no complaints. A few questions about it -- 1) When I test it, I mount the share from a linux client, then try to create a link (both hard and symbolic) from an existing file to a new file within the share. Is this an adequate test of the "unix extensions" functionality? 2) Assuming that's a good test, it means something isn't working... I'm still getting an "Operating not permitted" error, on both the hard link and the symbolic link. I'll be glad to be the test subject, if this part of the project needs extra testing... Shannon ____________________________ Shannon Johnson Network Support Specialist / Systems Administrator Dept. of Mechanical and Nuclear Engineering 224 Reber Building University Park, PA 16802 Phone: (814) 865-8267 ____________________________> -----Original Message----- > From: Andrew Bartlett [mailto:abartlet@samba.org] > Sent: Tuesday, May 18, 2004 7:07 PM > To: Shannon Johnson > Cc: Jeremy Allison; samba@lists.samba.org > Subject: RE: [Samba] Unix Extensions > > On Wed, 2004-05-19 at 03:35, Shannon Johnson wrote: > > Are you referring to 3.0.4, or an upcoming 3.0.5 (or 4a orsomething)?> > If it's newer than 3.0.4, where can I get that? > > devel.samba.org lists the details for checking out current code from > subversion. > > Andrew Bartlett > > -- > Andrew Bartlett abartlet@pcug.org.au > Manager, Authentication Subsystems, Samba Team abartlet@samba.org > Student Network Administrator, Hawker College abartlet@hawkerc.net > http://samba.org http://build.samba.org http://hawkerc.net
Well, that's part of the problem... I can't mount CIFS because I'm using Red Hat Enterprise 3 with the 2.4.21 kernel (can't upgrade... long story). It doesn't have the cifs module installed, and no matter how hard I try, it doesn't want to load it. I had to download the source for the kernel from Red Hat (apparently it's modified from the "official" kernel.org version), and compile the cifs module (1.0.2b) against it. Then when I tried the insmod, it spat back a few errors about something, and stopped. I can't remember the errors, but I can check if it's really important. That's one of the main reasons I'm interested in the unix extensions for smb. Also, I'm using pam_mount, which doesn't like the "cifs" option for what type of mount I'm doing... it only knows NFS, SMB, NCP, and local. So even if I got cifs to work, it wouldn't work with pam_mount... unless I'm missing something with it. shannon ____________________________ Shannon Johnson Network Support Specialist / Systems Administrator Dept. of Mechanical and Nuclear Engineering 224 Reber Building University Park, PA 16802 Phone: (814) 865-8267 ____________________________> -----Original Message----- > From: Jeremy Allison [mailto:jra@samba.org] > Sent: Wednesday, May 19, 2004 2:55 PM > To: Shannon Johnson > Cc: Andrew Bartlett; Jeremy Allison; samba@lists.samba.org > Subject: Re: [Samba] Unix Extensions > > On Wed, May 19, 2004 at 01:06:00PM -0400, Shannon Johnson wrote: > > OK, I got the snapshot version from last night and installed it, and > > finally got it to start. It complained briefly about the unixextensions> > option being set in the share section when it should be in theglobal> > section, but after I moved it, I get no complaints. > > > > A few questions about it -- > > > > 1) When I test it, I mount the share from a linux client, then tryto> > create a link (both hard and symbolic) from an existing file to anew> > file within the share. Is this an adequate test of the "unixextensions"> > functionality? > > > > 2) Assuming that's a good test, it means something isn't working...I'm> > still getting an "Operating not permitted" error, on both the hardlink> > and the symbolic link. I'll be glad to be the test subject, if thispart> > of the project needs extra testing... > > Ok, I'm running current SAMBA_3_0 svn (snapshot) version with Steve > French's > cifsvfs-1.0.7a client on a Fedora Core 2 preview 2 system (Kernel2.6.3)> system and symlinks and hardlinks both work fine here. > > What client are you running ? > > Jeremy.