Bug#412574: [Pkg-samba-maint] Bug#412574: it generates directories with the name of the share

Santiago Garcia Mantinan manty at debian.org
Thu Mar 1 19:23:10 CET 2007


> However, I can't reproduce this.

Let's see...

> [public]
> directory mask=0700
> browseable=yes
> comment=Public
> read only=no
> create mask=0770
> public=yes
> path=/var/tmp/samba-test

I copied this, then created /var/tmp/samba-test and touched foo and created
public inside, so I pretty much got this:

> bubulle at mykerinos:/var/tmp/samba-test> ls -la
> total 4
> drwxrwsr-x 3 bubulle bikinibottom 29 2007-02-28 21:59 .
> drwxrwxrwt 6 root    root         83 2007-02-28 05:34 ..
> -rw-rw-r-- 1 bubulle bikinibottom 38 2006-11-21 20:15 foo
> drwxrwsr-x 2 bubulle bikinibottom  6 2007-02-28 21:59 public


> bubulle at mykerinos:/var/tmp/samba-test> mkdir ~/mnt ; mount.cifs //localhost/public ~/mnt
> Password:
> bubulle at mykerinos:/var/tmp/samba-test> ls -l ~/mnt
> total 4
> -rw-rw-r-- 1 bubulle bikinibottom 38 2006-11-21 20:15 foo
> drwxrwsr-x 2 bubulle bikinibottom  0 2007-02-28 21:59 public
> bubulle at mykerinos:/var/tmp/samba-test> ls -lR ~/mnt
> /home/bubulle/mnt:
> total 4
> -rw-rw-r-- 1 bubulle bikinibottom 38 2006-11-21 20:15 foo
> drwxrwsr-x 2 bubulle bikinibottom  0 2007-02-28 21:59 public
> 
> /home/bubulle/mnt/public:
> total 0
> bubulle at mykerinos:/var/tmp/samba-test>
> So, no weird things here...

I believe that is because you didn't test the same things I tested, in fact,
if I go...

ace:~# mount.cifs //pul/public /mnt -o passwd=d
ace:~# ls -la /mnt/
total 4
drwxrwxrwx  3 root root    0 2007-03-01 20:11 .
drwxr-xr-x 22 root root 4096 2007-02-28 19:58 ..
-rw-r--r--  1 root root    0 2007-03-01 20:11 foo
drwxr-xr-x  2 root root    0 2007-03-01 20:11 public
ace:~# ls -la /mnt/public/
total 0
drwxr-xr-x 2 root root 0 2007-03-01 20:11 .
drwxrwxrwx 3 root root 0 2007-03-01 20:11 ..

Seems like yours, also seems ok, no problem with it, but then...

ace:~# ls -la /mnt/public/public/
total 0
drwxrwxrwx 3 root root 0 2007-03-01 20:11 .
drwxr-xr-x 2 root root 0 2007-03-01 20:11 ..
-rw-r--r-- 1 root root 0 2007-03-01 20:11 foo
drwxr-xr-x 2 root root 0 2007-03-01 20:11 public

where did that second public came from? we say on the first ls that the
public dir had nothing inside, now it seems a public exists inside and
inside that public we have the foo and the public.

Please test again and if you don't get this weird dirs in your setup we'll
try to see what's different here.

Regards...
-- 
Manty/BestiaTester -> http://manty.net




More information about the Pkg-samba-maint mailing list