Hi, Here are my settings: I have a samba server running samba 3.0.24 on redhat EL4 (kernel 2.6.9-5.ELsmp) and a samba client running samba 3.2.3-0.20.fc9 on fc9 (kernel 2.6.26.5-45.fc9.x86_64). A share on server is mounted on client using sudo mount //server/data /mnt/data -o user=me,workgroup=group,rw,file_mode=0600,dir_mode=0700 The problems are (in the directory /mnt/data), if I use "touch xxx", I get error message "touch: setting times of `xxx': No such file or directory", but the file xxx is created. -rwxrw---- 1 jhe domain users 0 2008-10-09 10:31 xxx if I use "ln -s test.txt yyy", I get error message "ln: creating symbolic link `yyy': No such file or directory" and the file (link) yyy is not created. but "echo asd > zzz" creates the file zzz will no problem -rwxrw---- 1 jhe domain users 4 2008-10-09 10:37 zzz My questions: How do I fix the problems I have with touch and ln -s? If I can't fix the problems with the current version samba (a bug?), how do I roll back to old version samba? I remember before the recent "yum update" on client, everything worked fine. Thanks, George
For the symbolic link problem you might want to take a look at the follow symlinks option for your smb.conf file, we have ours set to: follow symlinks = yes and going though symlinks works the same for us as on a local machine. The other problem may be solved (from http://ubuntuforums.org/showthread.php?t=207278) if you set: unix extensions = no in the smb.conf. Both settings should be added/modified in the [global] part of the file. What happens is you mount the filesystem somewhere and when the system tries to follow the symlink it is looking for that path on the local machine not on the server. So alternatively you could mount all the targets of the symlink to the same structure as they appear on the server but that is a large pain for any but the most trivial situations. Hope this helps. On Oct 9, 2008, at 4:44 PM, George He wrote:> Hi, > > Here are my settings: > I have a samba server running samba 3.0.24 on redhat EL4 (kernel > 2.6.9-5.ELsmp) > and a samba client running samba 3.2.3-0.20.fc9 on fc9 (kernel > 2.6.26.5-45.fc9.x86_64). > A share on server is mounted on client using > sudo mount //server/data /mnt/data -o > user=me,workgroup=group,rw,file_mode=0600,dir_mode=0700 > > The problems are (in the directory /mnt/data), > if I use "touch xxx", I get error message "touch: setting times of > `xxx': No > such file or directory", but the file xxx is created. > -rwxrw---- 1 jhe domain users 0 2008-10-09 10:31 xxx > if I use "ln -s test.txt yyy", I get error message "ln: creating > symbolic > link `yyy': No such file or directory" and the file (link) yyy is not > created. > but "echo asd > zzz" creates the file zzz will no problem > -rwxrw---- 1 jhe domain users 4 2008-10-09 10:37 zzz > > My questions: > How do I fix the problems I have with touch and ln -s? > If I can't fix the problems with the current version samba (a bug?), > how do > I roll back to old version samba? I remember before the recent "yum > update" > on client, everything worked fine. > > Thanks, > George > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba
Hi Mike, Thanks for the help, but neither of these works for me. After I added the 2 lines in smb.conf, both touch and ln -s behave the same. Besides, I lost all permissions on another client machine (redhat EL4) that mounted the data share using the same way I described earlier (it worked fine and after I remove the 2 lines, it works fine again). Any other ideas? George
yes, it is strange. exactly the same setting worked fine before with older version samba and linux kernel (on my client, server was not toucged so it's running a much older version). I'm not sure whether it's samba or the kernel that breaks my stuff. and I am not able to roll back to an older version samba because of all those dependency issues. Thanks, George On 10/10/08, Mike Gallamore <mike@mpi-cbg.de> wrote:> > Strange, that seems to be all that my predecessor to get ours to work at > my work. I'm not sure if your set up is the same, but our fileserver is > aware of every user in the institute (we do biology research). I could see > touch maybe not knowing how to work when the local user and remote user > aren't identical (same UID, and groups settings) but that is just a guess. > Here is the global part of our configuration file, we are running 3.2.2 on a > Solaris 10 system: > > [global] > workgroup = MPI-CBG > netbios name = Fileserver > wins support = yes > security = user > log level = 0 > log file = /var/adm/samba/log.smbd > inherit permissions = yes > load printers = no > printing = bsd > printcap name = /dev/null > disable spoolss = yes > deadtime = 5 > getwd cache = yes > oplocks = yes > socket options = TCP_NODELAY IPTOS_LOWDELAY > > smb passwd file = /etc/samba/smbpasswd > max disk size=2000000 > guest ok = no > encrypt passwords = yes > mangling method = hash > mangled names = no > > ; make file deletions more simple > delete veto files = yes > delete readonly = yes > > follow symlinks = yes > wide links = yes > unix extensions = no > > The only bit I thought had anything to do with simlinks is the last three > lines. wide links is supposed to tell Samba not to check to see if the > target of a link is in a share as well, it is recommended to be set to yes > here: > http://tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/chap29sec287.html because > it saves 6 system calls so has a pretty big performance benefit. Anyways, > you might see something that I don't. > > > On Oct 9, 2008, at 7:58 PM, George He wrote: > > Hi Mike, >> Thanks for the help, but neither of these works for me. >> After I added the 2 lines in smb.conf, both touch and ln -s behave the >> same. >> Besides, I lost all permissions on another client machine (redhat EL4) >> that mounted the data share using the same way I described earlier (it >> worked fine and after I remove the 2 lines, it works fine again). >> Any other ideas? >> George >> >> >