HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Trying to mount a Linux share on Windows (http://www.howtoforge.com/forums/showthread.php?t=13086)

sambauser 1st June 2007 00:34

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

sjau 1st June 2007 10:10

Here's my samba config

Code:

[global]
workgroup = ARBEITSGRUPPE
hosts deny = 10.0.0.1

[exchange]
comment = Exchange
path = /home/hyper/exchange
force user = hyper
force group = hyper
read only = No

[appz]
comment = Appz
path = /home/hyper/appz

Note: I don't want to accept conenctions from 10.0.0.1 which is my router and hence the access point from outside of my lan and I set user and group to my default user on my box so that new files have the correct ownership.

Once that is done, you need to add first a system user (if you don't want to use yours) which then can be added to samba:

Code:

sudo useradd SMB_USER
(sudo is the Ubuntu way of getting temporary root access...)

Then give a password to that user:
Code:

sudo passwd SMB_USER
Once done, we need to add it to samba:
Code:

sudo smbpasswd -a SMB_USER
I'm not sure if you can just enter a blank password... I've never tried it... in winxp I can save the password for network shares so that was never a matter of importance to me...

In the end restart the samba server:
Code:

sudo /etc/init.d/samba restart
Of course you could now limit the system user in one way or another... but I don't know if you need that.


All times are GMT +2. The time now is 20:35.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.