You are not logged in.

#1 2013-02-28 23:28:08

FernandoBasso
Member
From: Brazil
Registered: 2010-10-27
Posts: 102
Website

(SOLVED) Mount Samba Shares with VirtualBox Host-Only Adapter

This is my fstab:

//192.168.56.101/ror /home/fernando/Shares/ror cifs users,noauto,username=webdev,password=1234,workgroup=athome 0 0
//192.168.56.101/php /home/fernando/Shares/php cifs users,noauto,username=webdev,password=1234,workgroup=athome 0 0

The command

mount ~/Shares/php

returns

$ mount Shares/php
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

The same with sudo.

The host is Arch Linux (duh!) and the guest is Debian. With bridged networking it works fine.
Also, I can access apache virtualhosts just fine, and ssh too using the ip 192.168.56.101.

With pcmanfm or nautilus, with smb://192.168.56.101 also gives me that error...
Any ideas?

Last edited by FernandoBasso (2013-03-01 10:36:47)


There is a difference between knowing the path and walking the path.

Offline

#2 2013-03-01 10:36:27

FernandoBasso
Member
From: Brazil
Registered: 2010-10-27
Posts: 102
Website

Re: (SOLVED) Mount Samba Shares with VirtualBox Host-Only Adapter

I had this in smb.conf:

[php]
path = /home/webdev/php
comment = php projects
browseable = yes
writable = yes
valid users = +webdev
hosts allow = 192.168.1.
[ror]
path = /home/webdev/ror
comment = ruby on rails projects
browseable = yes
writable = yes
valid users = +webdev
hosts allow = 192.168.1.

.

I just had to add 192.168.56.1 to the 'hosts allow' line. Thanks to @strcpy and @cinelli in #archlinux to help me figure everything out.


There is a difference between knowing the path and walking the path.

Offline

Board footer

Powered by FluxBB