[Bug 542005] [NEW] faulty symlinks on mounted samba volumes

prygme prygme at gmail.com
Fri Mar 19 16:35:05 GMT 2010


Public bug reported:

Binary package hint: samba

After upgrade to Lucid the samba clients can't open symlinked directories any more.
The following related options are added to  /etc/samba/smb.conf :
follow symlinks = yes
wide symlinks = yes
unix extensions = no

When I try to list this symlinked directory with ls -la /media/samba/, one time it appears:
.....
drwxr-xr-x 0 root root 0 2010-02-05 12:09 sdb7
.....
then if I run ls -la /media/samba/ second time, the output is:
.....
d?????????   ?   ?   ?   ?   ? sdb7
.....
continuing to list it, with ls -la /media/samba/, the output is the first again (drwxr-xr-x 0 root root 0 2010-02-05 12:09 sdb7), then the second (d?????????   ?   ?   ?   ?   ? sdb7) ... etc. Like a semaphore. :-)
No way to change to sdb7 directory.

The sdb7 is linked outside the user's home.
ls -la /home/joe/
.....
lrwxrwxrwx   1 joe joe        24 2009-01-18 23:11 sdb7 -> /media/sdb7/data/vol0/
.....

However there is no problem with directories that linked inside user joe's home.
 (Like: lrwxrwxrwx   1 joe joe        35 2008-04-13 21:45 TransGaming_Drive -> /home/joe/.cedega/GFSGL//c_drive )
I can change to that 'TransGaming_Drive' directory on mounted samba volume without problem.

$ lsb_release -rd:
Description:    Ubuntu lucid (development branch)
Release:        10.04

$ apt-cache policy samba:
samba:
  Installed: 2:3.4.6~dfsg-1ubuntu2
  Candidate: 2:3.4.6~dfsg-1ubuntu2
  Version table:
 *** 2:3.4.6~dfsg-1ubuntu2 0
        500 http://de.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

$ apt-cache policy samba-common
samba-common:
  Installed: 2:3.4.6~dfsg-1ubuntu2
  Candidate: 2:3.4.6~dfsg-1ubuntu2
  Version table:
 *** 2:3.4.6~dfsg-1ubuntu2 0
        500 http://de.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

** Affects: samba (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: samba

** Description changed:

  Binary package hint: samba
  
  After upgrade to Lucid the samba clients can't open symlinked directories any more.
  The following related options are added to  /etc/samba/smb.conf :
  follow symlinks = yes
  wide symlinks = yes
  unix extensions = no
  
  When I try to list this symlinked directory with ls -la /media/samba/, one time it appears:
  .....
  drwxr-xr-x 0 root root 0 2010-02-05 12:09 sdb7
  .....
  then if I run ls -la /media/samba/ second time, the output is:
  .....
  d?????????   ?   ?   ?   ?   ? sdb7
  .....
  continuing to list it, with ls -la /media/samba/, the output is the first again (drwxr-xr-x 0 root root 0 2010-02-05 12:09 sdb7), then the second (d?????????   ?   ?   ?   ?   ? sdb7) ... etc. Like a semaphore. :-)
- No way to change to sdb7 directory. 
+ No way to change to sdb7 directory.
  
- The sdb7 is linked outside the user's home. 
+ The sdb7 is linked outside the user's home.
  ls -la /home/joe/
  .....
  lrwxrwxrwx   1 joe joe        24 2009-01-18 23:11 sdb7 -> /media/sdb7/data/vol0/
  .....
  
  However there is no problem with directories that linked inside user joe's home.
-  (Like: lrwxrwxrwx   1 joe joe        35 2008-04-13 21:45 TransGaming_Drive -> /home/george/.cedega/GFSGL//c_drive )
+  (Like: lrwxrwxrwx   1 joe joe        35 2008-04-13 21:45 TransGaming_Drive -> /home/joe/.cedega/GFSGL//c_drive )
  I can change to that 'TransGaming_Drive' directory on mounted samba volume without problem.
- 
  
  $ lsb_release -rd:
  Description:    Ubuntu lucid (development branch)
  Release:        10.04
-  
+ 
  $ apt-cache policy samba:
  samba:
-   Installed: 2:3.4.6~dfsg-1ubuntu2
-   Candidate: 2:3.4.6~dfsg-1ubuntu2
-   Version table:
-  *** 2:3.4.6~dfsg-1ubuntu2 0
-         500 http://de.archive.ubuntu.com/ubuntu/ lucid/main Packages
-         100 /var/lib/dpkg/status
+   Installed: 2:3.4.6~dfsg-1ubuntu2
+   Candidate: 2:3.4.6~dfsg-1ubuntu2
+   Version table:
+  *** 2:3.4.6~dfsg-1ubuntu2 0
+         500 http://de.archive.ubuntu.com/ubuntu/ lucid/main Packages
+         100 /var/lib/dpkg/status
  
  $ apt-cache policy samba-common
  samba-common:
-   Installed: 2:3.4.6~dfsg-1ubuntu2
-   Candidate: 2:3.4.6~dfsg-1ubuntu2
-   Version table:
-  *** 2:3.4.6~dfsg-1ubuntu2 0
-         500 http://de.archive.ubuntu.com/ubuntu/ lucid/main Packages
-         100 /var/lib/dpkg/status
+   Installed: 2:3.4.6~dfsg-1ubuntu2
+   Candidate: 2:3.4.6~dfsg-1ubuntu2
+   Version table:
+  *** 2:3.4.6~dfsg-1ubuntu2 0
+         500 http://de.archive.ubuntu.com/ubuntu/ lucid/main Packages
+         100 /var/lib/dpkg/status

-- 
faulty symlinks on mounted samba volumes
https://bugs.launchpad.net/bugs/542005
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.



More information about the Ubuntu-server-bugs mailing list