Long Time Samba No Work-Need Expert Help On Samba/Networking-Ahhh, Some Success Now

Leonard Chatagnier lenc5570 at sbcglobal.net
Tue Jul 24 05:21:52 UTC 2007


> On Sun, 2007-07-22 at 22:16 -0700, Leonard
> Chatagnier wrote:
> > Ok, good but which appropriate clients cus I ain't
> > knowing them.
> 
> You are using the right ones already - things like
> mount.smbfs and so
> on.
> 
Ok. Thought you meant another program other than
samba.

> > I actually want to access either machine from the
> > other.
> 
> Well, then you *do* need samba :-) But not yet -
> concentrate on getting
> one or the other working first, it's confusing when
> you try to do two
> things at once :-)
> 
Your telling me! Samba,linux and mounting is very
confusing to me, Ha, Ha. But we all new that before
hand.

> > No, this is the windows hard drive share as I
> intended
> > it to be.
> 
> No, "//pavilion8370/c$" is the windows hard drive
> share (allegedly, I
> don't know if that is true). "/mnt/C$" is what you
> specified as the
> mount point - that is, the point *on your linux box*
> where the windows
> share will be mounted. And it does have to exist.
> 
Well, here lies my biggest problem. I just don't know
what to do. I'm confident that c$ and c are windows
c:/. I didn't make the mount point on /mnt. So, as use
advised, I made a dir /mnt/pavilion and reissued the
mount command:
lchata at ubuntu:~/Desktop$ sudo mount -t smbfs
//PAVILION8370/C$ /mnt/pavilion
opts: rw
mount.smbfs started (version 3.0.24)
added interface ip=127.0.0.1 bcast=127.255.255.255
nmask=255.0.0.0
added interface ip=192.168.1.64 bcast=192.168.1.255
nmask=255.255.255.0
not adding duplicate interface 192.168.1.64
added interface ip=192.168.1.65 bcast=192.168.1.255
nmask=255.255.255.0
Connecting to 192.168.1.65 at port 445
Password:
cli_session_setup: NT1 session setup failed!
9121: session setup failed: ERRDOS - ERRnoaccess
(Access denied.)
SMB connection failed
lchata at ubuntu:~/Desktop$  
It looks like the connection was made but access was
denied. So apparently you were right about it being
protected even when using my admin password for
windows. The above output has more good items than
before so must be doing something right.

> > Now this is interesting. Didn't know I had to
> create a
> > mount point in the /mnt directory for smbmount to
> > work. Perhaps this is my problem. I just don't
> know
> > these things.  Please verify.
> 
> Well, if /mnt/C$ didn't exist, then it was
> definitely a problem. At very
> least it would be the cause of the "Can't resolve
> mount point" issue.
> You don't have to create a subdirectory - you can
> just use /mnt, but if
> you are planning to mount more than one thing at a
> time it makes sense
> to set up appropriate subdirectories as mount
> points.
> 
That was my problem.  Dummy me.

> > Smbclient -L listed both "c" and "C$" which I
> assumed
> > are both representations of the hard drive root
> > directory.  But I could be wrong.
> 
> I don't know. Best to use a share that you set up
> deliberately, and
> preferably without special characters in its name.
> Maybe someone with
> more windows knowledge than me can tell us what C$
> is?
> 
Here's where the partial success comes in. Using "My
Music" share which I know is a user share, not admin, 
I issued this mount command:sudo mount -t smbfs
//PAVILION8370/"My Music" /mnt/pavilion
opts: rw
mount.smbfs started (version 3.0.24)
added interface ip=127.0.0.1 bcast=127.255.255.255
nmask=255.0.0.0
added interface ip=192.168.1.64 bcast=192.168.1.255
nmask=255.255.255.0
not adding duplicate interface 192.168.1.64
added interface ip=192.168.1.65 bcast=192.168.1.255
nmask=255.255.255.0
resolve_lmhosts: Attempting lmhosts lookup for name
PAVILION8370<0x20>
resolve_wins: Attempting wins lookup for name
PAVILION8370<0x20>
resolve_wins: WINS server resolution selected and no
WINS servers listed.
resolve_hosts: Attempting host lookup for name
PAVILION8370<0x20>
Connecting to 192.168.1.65 at port 445
Password:
lchata at ubuntu:/var/spool$ ls -al /mnt/pavilion
total 12
drwxr-xr-x 1 root root 4096 2007-07-23 12:06 .
drwxr-xr-x 3 root root 7168 2007-07-23 09:49 ..
-rwxr-xr-x 1 root root  216 2003-04-09 15:41 Internet
Radio on Yahoo! Music.url
-rwxr-xr-x 1 root root  205 2003-04-09 15:41 Music
Videos & More on Yahoo! Music.url
lchata at ubuntu:/var/spool$
Yeah, success at last. But couldn't open either of the
uris with wget. Need to find out if you can open X
windows with samba and how.
lchata at ubuntu:/var/spool$ ls -al
/mnt/pavilion/"Internet Radio on Yahoo! Music.url"
-rwxr-xr-x 1 root root 216 2003-04-09 15:41
/mnt/pavilion/Internet Radio on Yahoo! Music.url
lchata at ubuntu:/var/spool$ sudo wget
/mnt/pavilion/"Music Videos & More on Yahoo!
Music.url"
/mnt/pavilion/Music Videos & More on Yahoo! Music.url:
Unsupported scheme.
lchata at ubuntu:/var/spool$ sudo /mnt/pavilion/"Music
Videos & More on Yahoo! Music.url"
: not foundon/Music Videos & More on Yahoo! Music.url:
1: [InternetShortcut]
Never could open(mount) C$(permission denied even with
admin passwd) but the share "c" worked fine as
follows:
lchata at ubuntu:/var/lib/samba$ sudo mount -t smbfs
//PAVILION8370/c /mnt/pavilion
opts: rw
mount.smbfs started (version 3.0.24)
added interface ip=127.0.0.1 bcast=127.255.255.255
nmask=255.0.0.0
added interface ip=192.168.1.64 bcast=192.168.1.255
nmask=255.255.255.0
not adding duplicate interface 192.168.1.64
added interface ip=192.168.1.65 bcast=192.168.1.255
nmask=255.255.255.0
Connecting to 192.168.1.65 at port 445
Password:
lchata at ubuntu:/var/lib/samba$ls -al /mnt/pavilion
total 982857
drwxr-xr-x 1 root root      4096 2007-07-23 23:12 .
drwxr-xr-x 3 root root      7168 2007-07-23 09:49 ..
-rwxr-xr-x 1 root root         0 2006-04-19 03:03
AUTOEXEC.BAT
-rwxr-xr-x 1 root root       210 2006-08-23 17:53
boot.ini
-rwxr-xr-x 1 root root      7439 2006-04-21 14:32
caavsetup.log
drwxr-xr-x 1 root root      4096 2006-06-12 08:23
Cardoza
drwxr-xr-x 1 root root      4096 2007-07-18 19:55
Config.Msi
-rwxr-xr-x 1 root root         0 2006-04-19 03:03
CONFIG.SYS
-rwxr-xr-x 1 root root      1890 2007-07-22 15:38
Documents
drwxr-xr-x 1 root root      4096 2007-07-22 12:59
Documents and Settings
drwxr-xr-x 1 root root      4096 2007-01-05 15:36
epson
drwxr-xr-x 1 root root      4096 2006-05-09 09:56
EPSONREG
-rwxr-xr-x 1 root root    553995 2007-07-23 12:34
evntagnt.log
-rwxr-xr-x 1 root root 402247680 2007-07-21 20:26
hiberfil.sys
drwxr-xr-x 1 root root      4096 2007-07-16 19:25
Inetpub
-r-xr-xr-x 1 root root         0 2006-04-19 03:03
IO.SYS
drwxr-xr-x 1 root root      4096 2007-07-11 02:11
Linksys Driver
-r-xr-xr-x 1 root root         0 2006-04-19 03:03
MSDOS.SYS
-r-xr-xr-x 1 root root     47564 2006-04-20 17:09
NTDETECT.COM
-rwxr-xr-x 1 root root      2855 2006-07-28 03:16
NTDETECT.PIF
-r-xr-xr-x 1 root root    250032 2006-04-20 17:09
ntldr
-rwxr-xr-x 1 root root 603275264 2007-07-21 20:26
pagefile.sys
dr-xr-xr-x 1 root root      4096 2007-07-22 16:38
Program Files
drwxr-xr-x 1 root root      4096 2007-07-22 17:03
RECYCLER
drwxr-xr-x 1 root root      4096 2006-05-16 03:34
System Volume Information
drwxr-xr-x 1 root root      4096 2007-07-21 04:15
WINDOWS
-rwxr-xr-x 1 root root       146 2006-12-23 12:39
YServer.txt
lchata at ubuntu:/var/spool$ ls -al
/mnt/pavilion/"program Files"
ls: reading directory /mnt/pavilion/program Files:
Permission denied
total 0
lchata at ubuntu:/var/spool$ sudo /mnt/pavilion/program
Files: Permission denied
Password:
sudo: /mnt/pavilion/program: command not found
lchata at ubuntu:/var/spool$ sudo ls -al
/mnt/pavilion/"program Files"
ls: reading directory /mnt/pavilion/program Files:
Permission denied
total 0
lchata at ubuntu:/var/spool$ cat /mnt/pavilion/"program
Files"
cat: /mnt/pavilion/program Files: Is a directory
lchata at ubuntu:/var/spool$ sudo dir
/mnt/pavilion/"program Files"
dir: reading directory /mnt/pavilion/program Files:
Permission denied
lchata at ubuntu:/var/spool$
lchata at ubuntu:/var/spool$
I'll try the program files and others later using my
admin password and see what happens. Now the next
issue to solve is how to map network drives from
windows.

 
> > You did help me solve the netmask issue for the
> WXP
> > machine
> 
> Really?!? What was the solution?
> 
There was a lot done, but I think adding the /24 to
the
smb.conf interfaces IP enty is what did it for me.
It looks like my smbmount issue is solved now that I
understand about the /mnt dir and will pretty it up in
time with entries for each windows share.
Congrats and Thanks to you Karl for coming in late and
providing the help and insight I needed to solve the
mount and WXP netmask issues. I know my smb.conf needs
cleaning up and I'll attempt that soon. But the "mount
network drives and samba server issue is my next
prioriorty. Your help is most appreciated.
Thanks,

Leonard Chatagnier
lenc5570 at sbcglobal.net




More information about the ubuntu-users mailing list