LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-25-2004, 10:10 PM   #1
oopicmaster
Member
 
Registered: Sep 2003
Posts: 154

Rep: Reputation: 30
Samba Problem


Ok here goes... I have an NT 4.0 box with the C drive shared.

Im trying to access the drive from linux using samba...

If I use samba client ex: smbclient //FILESERVER/C everything is rosey, I get the samba command prompt, and can navigate through the directory structure, see files, and do whatever samba allows...

However....

If I try to mount the Windows share ex: smbmount //FILESERVER/c /mnt/fileserverc, the share mounts, but... if I navigate into the mount point and do and ls... I get the following:

ls: A: No such file or directory
ls: A: No such file or directory
ls: b: No such file or directory
ls: C: No such file or directory
ls: C: No such file or directory
ls: C: No such file or directory
ls: D: No such file or directory
ls: D: No such file or directory
ls: I: No such file or directory
ls: M: No such file or directory
ls: M: No such file or directory
ls: N: No such file or directory
ls: n: No such file or directory
ls: p: No such file or directory
ls: P: No such file or directory
ls: R: No such file or directory
ls: T: No such file or directory
ls: W: No such file or directory
. ..

Now, the strange thing is that this list shows the first letter of all of the top level directories on the Windows C drive... but of course I cant move into them, see files, etc. like I can with smbclient.

Am I missing something?

The share has permissions of full control for everyone, and contains an NTFS file system.

Last edited by oopicmaster; 01-25-2004 at 10:11 PM.
 
Old 01-26-2004, 02:09 AM   #2
bobthebaritone
Member
 
Registered: Aug 2003
Location: Newington, Sydney, Australia
Distribution: Fedora Whitebox 4 Ubuntu
Posts: 40

Rep: Reputation: 15
SMB problem

Hi!

You shoud really connect with a known Windows user.
mount -t smbfs -o username=<ntusername>,password=<password> //<host>/C\$ <mountpoint>

HTH

Bob
 
Old 01-26-2004, 09:40 AM   #3
oopicmaster
Member
 
Registered: Sep 2003
Posts: 154

Original Poster
Rep: Reputation: 30
I tried that too... same problem.
 
Old 01-27-2004, 01:47 AM   #4
bobthebaritone
Member
 
Registered: Aug 2003
Location: Newington, Sydney, Australia
Distribution: Fedora Whitebox 4 Ubuntu
Posts: 40

Rep: Reputation: 15
Samba-mount problem

Hi!


What servcie pack of nt 4.0 have you got? Encryption changes happened after SP4? What version of samba?


You can inctrease the logging level in smb.conf to a higher level -

log level (G)

The value of the parameter (an integer) allows the debug level (logging level) to be specified in the smb.conf file. This is to give greater flexibility in the configuration of the system.

The default will be the log level specified on the command line or level zero if none was specified.

Example: log level = 3
This will give you an idea of where to troubleshoot. You can also log individual machines via -
# this tells Samba to use a separate log file for each machine
# that connects
log file = /usr/local/samba/var/log.%m

# Put a capping on the size of the log files (in Kb).
max log size = 50

Cheers
 
Old 01-27-2004, 09:42 AM   #5
oopicmaster
Member
 
Registered: Sep 2003
Posts: 154

Original Poster
Rep: Reputation: 30
Thanks, but Ive figured it out...

I needed to upgrade to the latest version of Samba. I was running 2.2, now Im running 3.? and all is well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba - Windows XP Problem (//Samba is not accessible) Covenent Linux - Networking 20 08-11-2011 04:07 PM
samba 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 10:39 AM
samba problem. bruse Linux - Networking 1 08-13-2005 10:08 AM
Samba Problem tied2 Linux - Newbie 5 06-17-2002 09:41 PM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration