[linux-cifs-client] Problem with soft links on samba share

gosha-necr gosha-necr at yandex.ru
Wed Dec 23 22:17:55 MST 2009


Hi friends!
I have a trouble with working linux clients in samba resource.
My server: FreeBSD 8.0 i386 + Samba 3.4.3, joined in AD based on Win2003

Windows-client work with share ok, without any problems. But i move stations in organization from win to linux. As client OS i choose mandriva 2010, users logons in linux throught domain and samba resourse mount with libpam_mount. 

On server in share i'm make soft links to various folders: 
ls -la /mnt/big/smb

1C-Bases -> ../bases
Docs -> ../Documents

And on linux clients that links in mounted with mount.cifs, samba resource shows like links, and with server paths:
ls -la /mnt/share
1C-Bases -> /mnt/big/bases
Docs -> /mnt/big/Documents

and it's of course not working. Windows clients see in share that links like folders and work with it without problems.

mount.cifs --version: 
mount.cifs version: 1.12-3.4.3

What i do wrong?

smb.conf
******************************************************************************************[global]                                                                      
workgroup = MYDOM                                                     
server string = Lyceum FreeBSD file server                                    
netbios name = lyc-bsdserv                                                    
security = ads                                                                
auth methods = winbind                                                        

hosts allow = 192.168.10.0/24 172.17.0.1/32 127.0.0.1/32
smb ports = 445                                         

load printers = no
show add printer wizard = no

log file = /var/log/samba/log.%m

max log size = 128

password server = 192.168.10.1

realm = mydom.local

passdb backend = tdbsam
                 
socket options = TCP_NODELAY                                              

interfaces = 192.168.10.5/24

local master = no
os level = 33    
domain master = no
preferred master = no
domain logons = no   

winbind use default domain = yes
winbind uid = 10000 - 15000     
winbind gid = 10000 - 15000     
winbind enum users = yes        
winbind enum groups = yes       
winbind separator = +           
winbind cache time = 30         

wins support = no                                                            
wins server = 192.168.10.1                                                     
dns proxy = no                                                          

# Charset settings
display charset = koi8-r
unix charset = koi8-r   
dos charset = cp866     

store dos attributes = yes                   
map archive = yes                            

# Use inherited ACLs for directories
nt acl support = yes                
inherit acls = yes                  
map acl inherit = yes               
case sensitive = no                 
#============================ Share Definitions ==============================
[share]                                                                       
        public = no                                                           
        comment = Kollege shared folder
        browseable = no
        writable = yes
        path = /mnt/big/smb/userdirs/%U
        force user = "user"
        force create mode = 0660
        force directory mode = 0770
******************************************************************************************


Client pam_mount.conf.xml
******************************************************************************************
<?xml version="1.0" encoding="utf-8" ?>                                         
<!DOCTYPE pam_mount SYSTEM "pam_mount.conf.xml.dtd">                            
<!--                                                                            
        See pam_mount.conf(5) for a description.                                
-->                                                                             

<pam_mount>

<debug enable="0" />

                <!-- Volume definitions -->
                        <volume fstype="cifs" server="192.168.10.5" path="Share" mountpoint="/mnt/share" 
options="iocharset=utf8" />                                                                              
                <!-- pam_mount parameters: General tunables -->                                          

<!--
<luserconf name=".pam_mount.conf.xml" />
-->                                     

<mntoptions allow="nosuid,nodev,loop,encryption,fsck,nonempty,allow_root,allow_other" />
<!--
<mntoptions deny="suid,dev" />
<mntoptions allow="*" />
<mntoptions deny="*" />
-->
<mntoptions require="nosuid,nodev" />
<path>/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin</path>

<logout wait="0" hup="0" term="0" kill="0" />


                <!-- pam_mount parameters: Volume-related -->

<mkmountpoint enable="1" remove="true" />


</pam_mount>


More information about the linux-cifs-client mailing list