Samba issue on Lenny with new kernel 2.6.26.1.486 no read write access ?
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was running a i486 kernel on an AMD and I now understand that this is not very good.
SO I set up an other PC with an intel proc and installed lenny i 686
AND I have the same problem
:-)
I can only save to the samba share on the 2.6.24-1-686
This is what I have on the new PC in /proc/fs
ppayne@venus:/proc/fs/cifs$ ls
cifsFYI Experimental LookupCacheEnabled OplockEnabled traceSMB
DebugData LinuxExtensionsEnabled MultiuserMount SecurityFlags
If i check this on the samba server
(Etch 2.6.18-6-amd64)
there is no trace of cifs
root@myserver:fs# ls /proc/fs/
nfs nfsd
I tried to install on the server but there is no package available for that distrib
Distribution: Debian lenny & squeeze servers. Mint 13 and 14 desktops
Posts: 16
Rep:
I've been beating my head over this one too..exactly the same..kernel..and symptoms.
I can mount a share, I can create and delete files, I can read files but I cannot write to an existing file
The curious thing is, it works fine against a MAC OSX samba server.
Against two debian etch samba servers (latest release upgrades), it doesn't work.
I tried commenting out the experimental bit in my boot configs, but still no joy.
Here's a bit of joy.
#include <stdio.h>
main()
{
FILE *fp;
fp=fopen("test","r");
if (fp)
{
printf("opened test for read OK\n");
fclose (fp);
}
else printf("failed to open test for read\n");
fp=fopen("test","w");
if(fp)
{
printf("opened file for write\n");
fclose(fp);
}
else printf("failed to open file for write\n");
}
I compiled that up, and this is what it says..
othello:/mnt# mv a.out /tmp
othello:/mnt# chmod +x /tmp/a.out
othello:/mnt# rm test
othello:/mnt# /tmp/a.out
failed to open test for read
opened file for write
othello:/mnt# /tmp/a.out
opened test for read OK
failed to open file for write
othello:/mnt#
That's as raw a test as I know how to do.
I suppose I could upgrade the etch servers to Leny, but if it ain't broke, don't fix it.
I would be happy to step back a kernel release if it fixed it and if someone can tell me how..
OK
Its a while back and I hope I can give you enough info that I remember, lots of bytes gone under the bridge since then.
My server is an AMD 64 with a 64bit distrib
apache2 mysql samba cups...
at the time it was etch now its lenny
My work stations were / are still lenny
If I used the 2.6.24 kernel on the w stations it was Ok I could read and right on my mounted samba partitions if I used anything over 2.6.25 or 2.6.26 i could not write only read!
Only when I upgraded the server did I have full access, at the time it was testing but now its stable and runs like a dream so I would go for that sollution..
Note that I have alas 1 windows PC and that was never affected...?
The whole issue is related to smbfs being discontinued for cifs file system for samba
from what I gather ...
Distribution: Debian lenny & squeeze servers. Mint 13 and 14 desktops
Posts: 16
Rep:
Well it would seem that on my system at least, they are all the same thing. The smbfs package contains all and smbmount is in fact mount.smbfs, mount -t cifs and mount -t smbfs all call mount.,cifs..
And CIFS is stuck in the kernel somewhere.
I have given up. Gone NFS, which is at least reliable. Doesn't double mount shares in fstab, and generally after a bit of tweaking behaves the way it should.
I did some tests..I could mount the server with a mac station, and a PeeCee with XP.. I could mount the mac with Lenny..:-)
I couldn't mount and have decent access the etch server with the lenny client. Weird or what?
Anyway NFS has solved the local area issues..Just need to see if its possible to either do NFS over the internet, or another way to transfer files to a machine I manage 60 miles away..
OK
It all depends what use you make of it I suppose..
Cifs works fine fore me I have up to 5 PC's connected to the file server at the same time works great.
(LINUX MAC and WIN)
Not sure if NFS will work with a windows PC though or MAC
You can install the Microsoft Embrace and Assimilate, I mean Extend Services for Unix to get NFS support on a Windows machine. Note: The product will not install on Windows 9x or Windows XP Home Edition or Windows Vista.
Over the internet I would use SSH or SCP to copy files..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.