how do i set up samba to see my other computers on my network and vice versa, mostly between this OS opensuse 11.4 and a few vista desktops. …and is samba the best ay to view my network
This tutorial might be worth a read: Samba and Suse: HowTo Set up an openSUSE-Windows Home Office LAN/Network. Versions 11.x
You asked “is Samba the best way…”: Since you have windows in the mix, it probably is the best way.
i open a terminal type in" kwrite /etc/samba/smb.conf" i get kwrite /etc/samba/smb.confkwrite(8769)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x85e860 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes. kwrite(8769)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x801868 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes. suse@linux-g988:/etc/samba> kwrite /etc/samba/smb.confand when i type in “name resolve order = bcast host lmhosts wins” in sma.cof it wont let me save it . i get failed to creat backup for file etc/samba… a reason could be is media you write is full or is read only. i hit try to save nevertheless. then i get file couldnot be saved check write access or enough disk space
When you run somethimg from the terminal and you want post here what you see there, then please do so between CODE tags: Posting in Code Tags - A Guide
i opened a terminal typed in
kwrite /etc/samba/smb.conf
i get error
kwrite /etc/samba/smb.confkwrite(8769)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x85e860 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes. kwrite(8769)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x801868 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes. suse@linux-g988:/etc/samba> kwrite /etc/samba/smb.conf
…and when i typed in “name resolve order = bcast host lmhosts wins” in sma.conf, it wont let me save it . i get failed to creat backup for file etc/samba… a reason could be is media you write is full or is read only. i hit try to save nevertheless. then i get file couldnot be saved check write access or enough disk space
I do not quite understand what you are doing. Kwrite is a GUI editor. Thus I should start it from the GUI (KDE I presume) using “Execute command” from the menu with
kdesu kwrite /etc/samba.conf
Or when you do not use a GUI but work from the CLI I would use a CLI editor.
And coming back to your posting. Why do you split up the command and the error message in two pieces? Just one copy/paste of prompt, command and output is needed and enough. Much easier then two copy/pastes as you did. And the way you do it it looks as if you hide things from us. From my system:
henk@boven:~> kwrite /etc/samba/smb.conf
kwrite(9505)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x82e76f0 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.
kwrite(9505)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x81da834 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.
henk@boven:~>
Which looks very different from what you have. This brings me to the conclusion that you did NOT copy/paste from your terminal session.
As an explanation, I add that I did this from a konsole window, that it opened a kwrite window with the intended file and that I got the errors after I closed the window (without doing any changes to the file, which would have been impossible, because I am not root).
i was just following the steps in this article Samba and Suse: HowTo Set up an openSUSE-Windows Home Office LAN/Network. Versions 11.x
smb.conf is owned by root, so you have to use a superuser form of kwrite. The command is:
kdesu kwrite /etc/samba/smb.conf
i can see my windows files and folders from opensuse but from windows vista when i type in the IP address of my opensuse machine \xxx.xxx.x.xx](file://\xxx.xxx.x.xx) a window pops up with four folders groups useras profile printers, when i click on users a connect to box pops up and i type in my user name and password for opensuse but i cant connect and see files and folders
You have the default shares still active in openSUSE. They are not really useful, they are there for illustration. I can tell you how to modify smb.conf so it works for you if you tell me what you would like to “share” from the openSUSE box. For example you might like to share your entire home directory – or you might like to share one or more specific folders/directories. So paste here the contents of smb.conf plus tell what you’d like to share and we can tell you how to make it happen for you.
Id like to share files and folders that are on my opensuse’s desktop
OK then, if your username was william you would place this stanza of code in the file smb.conf and your desktop would be seen and be accessible over the network. It would be an icon with the name “SuseBox” on it. {of course, alter william and SuseBox to suit your situation}
[SuseBox]
path = /home/william/Desktop
force user = william
read only = No
guest ok = Yes
Also: where is the post of your file smb.conf?
i didnt name a workgroup, figure id let it default to my hostname as far as where to put your code
dont know yet?
[SuseBox]
path = /home/william/Desktop
force user = william
read only = No
guest ok = Yes
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: 2011-11-02
[global]
workgroup = WORKGROUP
name resolve order = bcast host lmhosts wins
passdb backend = tdbsam
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
#logon path = \\%L\profiles\.msprofile
#logon home = \\%L\%U\.9xprofile
#logon drive = P:
usershare allow guests = Yes
[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
Run this command to copy the file smb.conf to a backup copy (just in case you need it again later):
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup
Replace your smb.conf with this:
# 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: 2011-11-02
[global]
workgroup = WORKGROUP
name resolve order = bcast host lmhosts wins
passdb backend = tdbsam
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
use client driver = yes
map to guest = Bad User
local master = yes
preferred master = auto
os level = 64
usershare allow guests = Yes
Server string =
## Share disabled by YaST
#[homes]
# comment = Home Directories
# valid users = %S, %D%w%S
# browseable = No
# read only = No
# inherit acls = Yes
## Share disabled by YaST
# [profiles]
# comment = Network Profiles Service
# path = %H
# read only = No
# store dos attributes = Yes
# create mask = 0600
# directory mask = 0700
## Share disabled by YaST
# [users]
# comment = All users
# path = /home
# read only = No
# inherit acls = Yes
# veto files = /aquota.user/groups/shares/
## Share disabled by YaST
# [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
[SuseBox]
path = /home/william/Desktop
force user = william
read only = No
guest ok = Yes
Except:
- Change the name “WORKGROUP” to exactly the name it has in yuor Vista machine
- change the two instances of “william” to your openSUSE username
(if your openSUSE username is two words, put single quotes around it like this e.g. path = /home/‘hermione granger’/Desktop)
Then reboot your computer and the other computers in the LAN, one at a time, sequentially, starting with the openSUSE machine.
I added samba server, samba client and netbios server in my firewall to allowed services for "opening the firewall for samba located at http://opensuse.swerdna.org/suselanprimer.html
Security and Users → Firewall. Select Allowed Services from the list in the left column. Make sure the panel is set to External Zone in the drop-down list in the top portion. Now look at the drop-down list under the heading Service to Allow. Select Samba Server. Click the Add button and it will appear in the panel below the heading Service to Allow. Repeat the procedure to insert Netbios Server as a service in the panel. Repeat the procedure once again for openSUSE 11.1 and 11.2 and insert Samba Client in the panel Note that ‘Samba Client’ is not available in openSUSE 11.0 and a different procedure is used for 11.0"
my question, is this the correct procedure for 12.1 it only says for 11.1 11.2? i couldnt see anything til i added those to the firewall
everything is working i can see openSUSE from windows and vice versa.
you saved me days of trial and error
thanks
Yes, that’s correct
everything is working i can see openSUSE from windows and vice versa.
you saved me days of trial and error
thanks
Great, well done.