Hi everyone.
I’m a newbye in Linux and, according to the subject of the thread, I’d like to help a friend of mine to use a DOS program creating a DOS 6_22 virtual machine on VirtualBox 3.06_OSE installed in OpenSuse 11.2 (please don’t ask me why I chose this solution). The program needs to print documents, so I decided to create a samba network between the OpenSuse 11.2 host and the linux guest.
Unfortunately I can’t use samba, and it seems to me too difficult to configure in the smb.conf file.
On the guest side (DOS 6_22), I installed MS Client 3.0 and set a TCP/IP protocol; moreover I connect to the host using host only mode and “vboxnet0” virtual network interface. The latter has IP address 192.168.56.1, so in DOS I set up a static IP address 192.168.56.2 (I hope this is right).
Here is my smb.conf file
smb.conf is the main Samba configuration file. You find a full commented
version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
samba-doc package is installed.
Date: 2009-10-27
[global]
printcap name = cups
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \%25L\profiles.msprofile
logon home = \%25L%25U.9xprofile
logon drive = P:
usershare allow guests = Yes
netbios name = rocco
restrict anonymous = no
domain master = no
netbios aliases = rocco
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
Is there something wrong and/or have I to add any voice to allow DOS guest to connect?
Have I to add a user to the net (the DOS one, which I called Paolo)?
I’d like to mount the network printer in DOS with the command:
“net use lpt1 \host_name\printer”;
where did I find hostname?
Finally, I first disabled Firewall, because I don’t necessarily need it, but how can I add exceptions to it to make run samba with it?
Thanks for any reply