LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-12-2010, 06:06 PM   #1
mredward1974
LQ Newbie
 
Registered: Feb 2008
Location: Amsterdam
Distribution: OpenSuse 10.3
Posts: 16

Rep: Reputation: 0
SAMBA client wont follow sym links..


Hi all,

"Something happened" to my samba install, and it was working fine, and is still largely working fine, except I cant browse via syn links created with:

[code]user@server~/medialist>ln -s /media/disk1/films/ films[code]

This used to work fine, and i cant figure out what happened...

I rebooted, (after umount -a, then commenting out the connected usb drives from fstab and turning them off...reboot...turn on drives one by one, uncomment from fstab, mount -a...its a bit of a drag rebooting! Quite a few updates happened (openSuse11.2)...

I can still browse all the samba shares directly but I cant follow a symlink anymore ("you do not have permisssion to view this file") from the same windows client to any of them if they are linked as above.

I have searched What am I doing wrong?

Thanks in advance,
Jim
 
Old 04-14-2010, 04:46 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Hi

I had the same problem. An update changed this. From /usr/share/doc/samba/changelog.Debian.gz


samba (3.0.28a-1ubuntu4.11) hardy-security; urgency=low

* SECURITY UPDATE: arbitrary file disclosure via wide links
- debian/patches/security-CVE-2010-0926.patch: disable wide links when
UNIX extensions are enabled in source/param/loadparm.c,
source/smbd/service.c, source/smbd/trans2.c, source/smbd/vfs.c,
docs/htmldocs/manpages/smb.conf.5.html, docs/manpages/smb.conf.5.
- CVE-2010-0926
* WARNING: This changes the default samba behaviour. For security
reasons, it is no longer possible to use wide links and UNIX
extensions at the same time. After applying this security update, wide
links will be disabled automatically as UNIX extensions are turned on
by default. If wide links are required, you may re-enable them by
adding "unix extensions = no" to the [global] section of
the /etc/samba/smb.conf configuration file.
 
1 members found this post helpful.
Old 04-14-2010, 04:45 PM   #3
mredward1974
LQ Newbie
 
Registered: Feb 2008
Location: Amsterdam
Distribution: OpenSuse 10.3
Posts: 16

Original Poster
Rep: Reputation: 0
[solved]

Thanks a lot, I had read about that and added "unix extensions = no" but I also had to add "follow wide links = yes" to the [global] section of /etc/samba/smb.conf, but your post pointed me in the right direction.

I rebooted Samba, i.e as root:
Code:
/etc/init.d/smb restart
and
Code:
/etc/init.d/nmb restart
And browsed to my directory

It says in the man page that "follow wide links = yes" is the default behaviour, but apparently not on my box. :S

Thanks again
Jim
 
  


Reply

Tags
follow, links, samba, smbconf, symlinks



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
sym links and permissions emme0032 Linux - Newbie 2 11-18-2006 02:26 AM
mounting samba shares with sym links kb_ganesh Linux - General 1 11-11-2005 10:11 AM
Sym links and hard links akudewan Linux - Newbie 4 02-09-2005 05:08 AM
sym links -- RealPlayer lmellen Linux - Newbie 2 08-29-2004 02:29 PM
dead sym links dewcansam Linux - General 1 02-08-2002 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:38 PM.

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
Open Source Consulting | Domain Registration