Vandeir Eduardo
2004-Jul-30 00:28 UTC
[Samba] Symlinks out of sharing still not working on 3.0.5
Hi guys, samba client version 3.0.5, server version 3.0.5, kernel 2.4.26. Relevant configs on server: unix extensions = Yes wide links = Yes follow symlinks = Yes On client computer with home user mounted via smbfs I'm trying this: D102-054 [/lp/home/dito/tmp] > cd /tmp D102-054 [/tmp] > mkdir dest_dir D102-054 [/tmp] > cd - D102-054 [/lp/home/dito/tmp] > ln -s /tmp/dest_dir orig_dir D102-054 [/lp/home/dito/tmp] > ls -la total 524292 drwx------ 1 dito bcc 0 Jul 29 21:11 . drwx-----x 1 dito alunos 4096 Jul 29 21:08 .. lrwxrwxrwx 1 dito bcc 12 Jul 29 21:11 orig_dir -> tmp/dest_dir Why samba is linking to "tmp/dest_dir" when should link to "/tmp/dest_dir"? (note initial slash missing) D102-054 [/lp/home/dito/tmp] > mkdir tmp2 D102-054 [/lp/home/dito/tmp] > mkdir dest_dir2 D102-054 [/lp/home/dito/tmp] > cd tmp2 D102-054 [/lp/home/dito/tmp/tmp2] > ln -s ../dest_dir2 orig_dir2 ln: creating symbolic link `orig_dir2' to `../dest_dir2': input/output error Other symlinks that don't start whith ".." ou "/" works properly. What's going on here? This is driving me crazy! Thanks in advance. __________________________________________ Vandeir Eduardo (CCNA, LPIC-2) Laborat?rio de Computa??o e Inform?tica (LCI) - Campus IV Fundacao Universidade Regional de Blumenau (FURB) Rua Braz Wanka, 238 - CEP: 89.035-160 - Blumenau (SC) Blumenau, SC, Brasil. Fone: +55 (047) 321-7819 - Fax: 321-7802
Jeremy Allison
2004-Jul-30 00:40 UTC
[Samba] Symlinks out of sharing still not working on 3.0.5
On Thu, Jul 29, 2004 at 09:28:04PM -0300, Vandeir Eduardo wrote:> Hi guys, > > samba client version 3.0.5, server version 3.0.5, kernel 2.4.26. > > Relevant configs on server: > unix extensions = Yes > wide links = Yes > follow symlinks = Yes > > On client computer with home user mounted via smbfs > I'm trying this: > > D102-054 [/lp/home/dito/tmp] > cd /tmp > D102-054 [/tmp] > mkdir dest_dir > D102-054 [/tmp] > cd - > D102-054 [/lp/home/dito/tmp] > ln -s /tmp/dest_dir orig_dir > D102-054 [/lp/home/dito/tmp] > ls -la > total 524292 > drwx------ 1 dito bcc 0 Jul 29 21:11 . > drwx-----x 1 dito alunos 4096 Jul 29 21:08 .. > lrwxrwxrwx 1 dito bcc 12 Jul 29 21:11 orig_dir -> tmp/dest_dir > > Why samba is linking to "tmp/dest_dir" when should link > to "/tmp/dest_dir"? (note initial slash missing) > > D102-054 [/lp/home/dito/tmp] > mkdir tmp2 > D102-054 [/lp/home/dito/tmp] > mkdir dest_dir2 > D102-054 [/lp/home/dito/tmp] > cd tmp2 > D102-054 [/lp/home/dito/tmp/tmp2] > ln -s ../dest_dir2 orig_dir2 > ln: creating symbolic link `orig_dir2' to `../dest_dir2': input/output error > > Other symlinks that don't start whith ".." ou "/" works > properly. What's going on here? This is driving me crazy!smbfs doesn't support symlinks correctly I believe. I would strongly suggest using the CIFSFS client - this does work and is in fact the target platform for Linux client -> Samba Server CIFS. Jeremy.