[Samba] Problems accessing files with (lib)smbclient
Malte S. Stretz
msquadrat.nospamplease at gmx.net
Mon May 20 16:35:02 GMT 2002
Hi!
Seems like I need some help with a really awkward problem I stumbled over
today. In a remote access solution I developed, a Perl CGI script accesses
a Windows NT 4.0 Server through Filesys::SmbClient and thus libsmbclient.
Browsing the shares and the directories works perfectly but as soon as I
try to get any file, it fails with a "Permission denied", even if I try it
with the Administrator account.
The installed Samba is version 2.0.7 (SuSE 7.1) but I compiled
libsmbclient.so from the 2.2.4 sources.
A try with smbclient (2.0.7) on the same machine gives me the following (the
same happens with every other file in whichever directory it is):
| paul:/var/log/httpd # smbclient //ntserver/Projekte -UAdministrator
| added interface ip=192.168.0.99 bcast=192.168.0.255 nmask=255.255.255.0
| added interface ip=127.0.0.254 bcast=127.255.255.255 nmask=255.0.0.0
| Password:
| Domain=[KONSTRUKTION] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
| smb: \> ls
|[...]
| RIMG0001.JPG 312320 Mon Mar 4 12:54:29 2002
| RIMG0002.JPG 351232 Mon Mar 4 15:36:13 2002
| RIMG0003.JPG 272384 Sat Mar 16 14:56:05 2002
|[...]
| 34828 blocks of size 131072. 4437 blocks available
| smb: \> get RIMG0001.JPG
| getting file RIMG0001.JPG of size 312320 as RIMG0001.JPG Short read when
| getting file \RIMG0001.JPG. Only got 0 bytes.
| (0 kb/s) (average 0 kb/s)
| smb: \> exit
On my local installation everything works as it should. I've got Samba
2.2.1a (SuSE 7.3) in combination with a compiled libsmbclient.so 2.2.4. The
server I access is a Windows 2000 Professional Workstation.
Has anybody an idea, why I can't get any files while it's no problem at all
to list the directories (permissions are correct)?
Clueless
Malte
More information about the samba
mailing list