LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Trying to mount a Linux share on Windows (https://www.linuxquestions.org/questions/linux-server-73/trying-to-mount-a-linux-share-on-windows-558110/)

sambauser 05-31-2007 05:39 PM

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!!!!

flupke 06-01-2007 04:10 AM

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

combatwombat 06-01-2007 04:24 AM

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


All times are GMT -5. The time now is 03:25 PM.