I had this weird problem (SUSE Prof. 9.2, smb version 3.09): I use smbmount to access my directory on a remote server. I used "smbmount //remote_server/share mounting_point". I was able to mount the remote directory and see the files, but all the symbolic links in the remote directory are broken. When I did "ls -l", all the links are still listed as links, e.g. "name --> target". I guess this problem is solvable, because when I used "smb://remote_server/share" in konqueror browser, all the symbolic links are converted correctly. Another guy using smb version 2.2.x (Linux RH 9) didn't have this problem. when he did the samething, all the symbolic links are properly listed as files/directories. Does anybody have a solution ? thanks in advance ! --Long
Long Fei wrote:
I had this weird problem (SUSE Prof. 9.2, smb version 3.09): I use smbmount to access my directory on a remote server. I used "smbmount //remote_server/share mounting_point".
I was able to mount the remote directory and see the files, but all the symbolic links in the remote directory are broken. When I did "ls -l", all the links are still listed as links, e.g. "name --> target".
Does anybody have a solution ? AFAIR, there is a config option to follow symlinks in samba. If that was disabled, which it could be a security risk, it would probably work as you describe. -- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Registered Linux user 231871
How to enable it ? thanks, --Long On Tue, 29 Mar 2005 09:56:11 -0600, Joe Morris (NTM) <Joe_Morris@ntm.org> wrote:
Long Fei wrote:
I had this weird problem (SUSE Prof. 9.2, smb version 3.09): I use smbmount to access my directory on a remote server. I used "smbmount //remote_server/share mounting_point".
I was able to mount the remote directory and see the files, but all the symbolic links in the remote directory are broken. When I did "ls -l", all the links are still listed as links, e.g. "name --> target".
Does anybody have a solution ? AFAIR, there is a config option to follow symlinks in samba. If that was disabled, which it could be a security risk, it would probably work as you describe. -- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Registered Linux user 231871
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Long Fei wrote:
How to enable it ?
From smb.conf.5.html follow symlinks (S) This parameter allows the Samba administrator to stop smbd(8) <http://127.0.0.1:901/swat/help/smbd.8.html> from following symbolic links in a particular share. Setting this parameter to no prevents any file or directory that is a symbolic link from being followed (the user will get an error). This option is very useful to stop users from adding a symbolic link to /etc/passwd in their home directory for instance. However it will slow filename lookups down slightly. This option is enabled (i.e. *smbd* will follow symbolic links) by default. Default: //follow symlinks/ = yes / -- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Registered Linux user 231871
I guess the remote machine has this enabled, since I can browse into the symlink directories using Windows "Map Network Drive". Another guy running RH 9 (smbmount version 2.2.x ?) can mount the remote directories and browse into symlinks. --Long On Tue, 29 Mar 2005 10:37:17 -0600, Joe Morris (NTM) <Joe_Morris@ntm.org> wrote:
Long Fei wrote:
How to enable it ?
From smb.conf.5.html
follow symlinks (S)
This parameter allows the Samba administrator to stop smbd(8) <http://127.0.0.1:901/swat/help/smbd.8.html> from following symbolic links in a particular share. Setting this parameter to no prevents any file or directory that is a symbolic link from being followed (the user will get an error). This option is very useful to stop users from adding a symbolic link to /etc/passwd in their home directory for instance. However it will slow filename lookups down slightly.
This option is enabled (i.e. *smbd* will follow symbolic links) by default.
Default: //follow symlinks/ = yes /
-- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Registered Linux user 231871
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
participants (2)
-
Joe Morris (NTM)
-
Long Fei