Hi,
My problems with Samba continue... I'm very disappointed, i've never
had as problems with Samba before (on my old server with Gentoo/Samba
3.0.23...).
So the new problem is : When a student want to compile a C program into
his home (mounted in CIFS), the produced executable can't be executed
"./tst: cannot execute binary file". Tried on ubuntu-9.04 with
mount.cifs 3.2.3 and mount.cifs 3.4.2.
How to reproduce :
1- Mount a CIFS share on a workstation :
# mount -t cifs -ousername=toto //192.168.0.10/toto TMP
2- Go to this mount
# cd TMP
3- Write a small C program
# vi main.c
int main(int argc, char *argv[])
{
return 0;
}
4- Try to compile and execute them :
a- First way :
# gcc -o tst main.c
Compilation OK
# ./tst
./tst: cannot execute binary file
b- Second way :
# gcc -c main.c
Compilation OK
# gcc -o tst main.o
main.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
You can try to evaluate the type of file .o. When you compile on a local
directory of the workstation :
# file main.o
main.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not
stripped
But if you compile in a CIFS share
# file main.o
main.o: data
Any idea ??
I've a simple configuration Samba (3.4.2) as PDC and smbpasswd as
passdb backend (the bug #6771 of ldapsam obliges me to workaround with
smbpasswd). My shares are physicaly on XFS Filesystem with acl activated.
Actually my SAMBA works fine with Windows but it's totally unusable
under Linux...
To be continued...
Regards,
Bruno.
PS : If something is interrested by this problem (i hope for), i can
send my smb.conf and any log files (log level 10 activated) !
--
Bruno MACADRE
-------------------------------------------------------------------
Ing?nieur Syst?mes et R?seau | Systems and Network Engineer
D?partement Informatique | Department of computer science
Responsable R?seau et T?l?phonie | Telecom and Network Manager
Universit? de Rouen | University of Rouen
-------------------------------------------------------------------
Coordonn?es / Contact :
Universit? de Rouen
Facult? des Sciences et Techniques - Madrillet
Avenue de l'Universit? - BP12
76801 St Etienne du Rouvray CEDEX
T?l : +33 (0)2-32-95-51-86
Fax : +33 (0)2-32-95-51-87
-------------------------------------------------------------------