LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-31-2007, 05:39 PM   #1
sambauser
LQ Newbie
 
Registered: May 2007
Posts: 4

Rep: Reputation: 0
Trying to mount a Linux share on Windows


Hi,

I am trying to mount a Linux directory onto the Windows box.

The smb.conf file looks like this:

Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[profiles]"
Processing section "[users]"
Processing section "[groups]"
Processing section "[winshare]"
Loaded services file OK.
WARNING: passdb expand explicit = yes is deprecated
Server role: ROLE_STANDALONE
[global]
workgroup = OVE.LOCAL
map to guest = Bad User
valid users = root, linuxbak, amandabackup
force user = amandabackup

[homes]
comment = Home Directories
valid users = %S, %D%w%S
read only = No
inherit acls = Yes

[profiles]
comment = Network Profiles Service
path = %H
read only = No
create mask = 0600
directory mask = 0700
store dos attributes = Yes

[users]
comment = All users
path = /home
read only = No
inherit acls = Yes

[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes

[winshare]
comment = Share for the Windows server ove-dc3bkup01
path = /media/winshare
write list = root, amandabackup, linuxbak
read only = No
create mask = 0600
directory mask = 0700
inherit acls = Yes


Also, can't seem to see the share below
AmandaBackup:/media # smbclient -L 10.80.101.15 -U linuxbak
Password:
Domain=[OVE] OS=[Windows Server 2003 R2 3790 Service Pack 1] Server=[Windows Server 2003 R2 5.2]

Sharename Type Comment
--------- ---- -------
C$ Disk Default share
S$ Disk Default share
F$ Disk Default share
IPC$ IPC Remote IPC
G$ Disk Default share
LinuxBak Disk
ADMIN$ Disk Remote Admin
SQL Bak Disk
E$ Disk Default share
session request to 10.80.101.15 failed (Called name not present)
session request to 10 failed (Called name not present)
Domain=[OVE] OS=[Windows Server 2003 R2 3790 Service Pack 1] Server=[Windows Server 2003 R2 5.2]

Server Comment
--------- -------
OVE-DC3BKUP01
....
Workgroup Master
--------- -------
OVE OVE-DC3AD01
OVEDMZ OVE-DC3ISA02

While mounting it,
AmandaBackup:~ # mount -t smbfs -o username=linuxbak,uid=amandabackup,gid=disk /media/winshare/ //10.80.101.15/LinuxBak
-bash: !,uid=amandabackup,gid=disk: event not found
AmandaBackup:~ # mount -t smbfs -o username=linuxbak /media/winshare/ //10.80.101.15/LinuxBak
Could not resolve mount point //10.80.101.15/LinuxBak
AmandaBackup:~ # mount -t smbfs -o username=linuxbak 10.90.219.64:/media/winshare/ 10.80.101.15:/LinuxBak
Could not resolve mount point 10.80.101.15:/LinuxBak
Please Help!!!!
 
Old 06-01-2007, 04:10 AM   #2
flupke
Member
 
Registered: Jun 2005
Location: BE
Posts: 30

Rep: Reputation: 15
It seems that there is some confusion in your setup :
Just to be sure : you want to access a directory of the linux box from the windows box right?
But when I see :
Quote:
AmandaBackup:/media # smbclient -L 10.80.101.15 -U linuxbak
Password:
Domain=[OVE] OS=[Windows Server 2003 R2 3790 Service Pack 1] Server=[Windows Server 2003 R2 5.2]
I would say that 10.80.101.15 is the IP of your windows box.
So let's assume the linux box has the IP 10.80.101.10, you should rather use smbclient -L 10.80.101.10 -U linuxbak.
Or you can try from your windows box to "search for computer" and search for your linux box IP.

Also, you try to smbmount a local directory on a remote server. This will never work. Use instead
Code:
smbmount //10.80.101.10/winshare /mnt/winshare
for example. Just as you would mount a cdrom or anything else, but substituting the device name with the share name.
This will mount the linux share on the linux box. Not very useful except for testing purpose, but it's the first step to accomplish.



HTH
Flupke
 
Old 06-01-2007, 04:24 AM   #3
combatwombat
Member
 
Registered: Apr 2003
Location: Hastings, Hawkes Bay, NZ
Distribution: Ubuntu Gutsy Gibbon
Posts: 53

Rep: Reputation: 15
Hi,
looks to me like a problem with W2003 Server blocking the access from the Samba box. SMB packet signatures perhaps or Kerberos timing?

Look here:
http://tldp.org/HOWTO/SMB-HOWTO-8.html
and here:
http://www.planetmy.com/blog/?p=248
 
  


Reply



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
How to create a persistent mount point for Linux to a windows share in FC6 geetarman Fedora 2 03-16-2007 03:54 AM
Windows 98SE not able to mount Linux SAMBA share patrick295767 Linux - Software 6 11-12-2006 11:25 AM
apche permission problem after i mount windows share in linux niloshima Linux - Networking 1 12-20-2005 09:05 PM
windows share automatically mount on linux box emailssent Linux - Networking 11 11-01-2004 03:02 AM
(Windows) Only one Linux box can mount a smb share Artimus General 1 07-21-2004 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:16 PM.

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