View Full Version : FC5 connecting to FC4 samba server
rkelly
2006-03-28, 04:00 AM CST
I have a problem connecting to a FC4 Samba fileshare from my FC5 workstation, while trying to mount it as a normal user.
I tried all possible options, but everytime all files and directories on the Samba server are owned by root, so I can't change anything in f.i. a textfile.
mount.cifs is installed suid for that matter.
The same worked without any problem when I was still using a FC4 workstation.
Can anyone shed some light on this?
Edit:
Possible solution:
All files on the Samba server are owned by root in this case. That is no problem for Windows clients as this is resolved in the Samba server.
Because of the somewhere in 3.x introduced unix extentions to Samba the owner settings are however exported to the CIFS client on Linux.
Adding te parameter 'unix extensions = no' to the global part of the samba config file 'solved' my problem.
jhetrick62
2006-03-28, 04:48 AM CST
Where is your mount point? If it is /mnt/yourmountpoint and you are using fstab to mount the remote share, many times the permissions will automatically mount all of the remote info to root permissions. I found this on FC3 to be the case. There are two work or three choices that worked for me.
First, mount it using smb4k. That works fine as it places the mount point in /home/user/smb4k/mountpoint and you have access just fine as long as permissions are granted on the file server.
Second, change the mount point in your fstab statement to be in /home/user/mountpoint. Same applies as above then.
Thirdly, mount it using the "network folders" in KDE or "places" mount area of gnome menu. Again, it solves the problem.
Jeff
rkelly
2006-03-28, 05:07 AM CST
Hi Jeff,
I guess I had to be more elaborate... ;-)
My mointpoint is actually inside my homedirectory.
It does not matter if I mount via fstab-entries or directly via the commandline, the outcome is always the same. Everything is owned by root, the mountpoint including, but with its mode changed to 0777.
To check with smb4k I first have to install that along with it's dependencies. (I'm running Gnome btw)
When I mount via Places in the Gnome menu the owner is set the same as before, to root, so only giving read-only access.
For the moment it looks like mount.cifs in FC5 is working differently than smbmount did in FC4.
Thanks for your input!
jhetrick62
2006-03-28, 05:14 AM CST
It may be in your samba file then. I have no problem mounting when mount point is under /home/username. My fstab line looks like this:
//JHSERVER/share /home/jeff/mnt/data smbfs rw,user=jeff,noauto,user 0 0
This is in FC3, but honestly, I have a similar line in FC5 to mount back to FC3. What is your security setting in smb.conf.
Security=user or something else?
Jeff
rkelly
2006-03-28, 05:31 AM CST
It may be in your samba file then. I have no problem mounting when mount point is under /home/username. My fstab line looks like this:
//JHSERVER/share /home/jeff/mnt/data smbfs rw,user=jeff,noauto,user 0 0
This is in FC3, but honestly, I have a similar line in FC5 to mount back to FC3. What is your security setting in smb.conf.
Security=user or something else?
Jeff
That fstab line is about the same as I have tried:
//192.168.1.9/office /home/rick/mnt/office cifs noauto,user,rw,dir_mode=0775,file_mode=0664,uid=ri ck,gid=rick 0 0
or:
//192.168.1.9/office /home/rick/mnt/office cifs noauto,user,rw,credentials=/home/rick/smbauth 0 0
smbfs is no longer usable as filesystemtype, cifs is the new type to use.
The security setting in smb.conf on the server is security=share .
Two Win XP clients connecting without problems...
vnpenguin
2006-03-28, 07:22 AM CST
Why not use NFS between them ?
rkelly
2006-03-28, 07:26 AM CST
Why not use NFS between them ?
That's what I was about to install on the server... ;-)
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.