**NOTE** January 2022 - Changes to Gstreamer and Pipewire packages from PackmanPlease read the following thread about the current changes
-
Home network between OpenSUSE11 and Windows XPSP3
Hello,
I'm still quite new with linux and it would be awesome if I could get home network shares to work with from linux to windows and windows to linux. I've been trying to do something with samba, but without any luck. I figured out I need properly configured smb.conf in /etc/samba , but still no access to folders neither on linux nor windows.
Both computers are in workgroup named ROLLEVERKKO and I managed to get my /media/kameli (portable hard disk which I wan't to share to windows-pc) show up on windows-pc but it said "no access" "network path not found" or "no permissions". Some time ago it asked some account and password which I didn't know (tried everything).
So, could somebody help this newb?
My /etc/samba/smb.conf looks like this:
Code:
# 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: 2008-06-06
[global]
workgroup = ROLLEVERKKO
# netbios name =
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
security = user
usershare max shares = 900
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = Yes
domain master = Yes
local master = Yes
os level = 65
preferred master = Yes
idmap gid = 10000-20000
idmap uid = 10000-20000
guest account = nobody
# hosts allow 192.168
[/media/kameli]
comment = Kameli
inherit acls = No
path = /media/kameli/
read only = No
browseable = Yes
writable = Yes
writeable = Yes
guest ok = Yes
[/home/rolle]
comment = Kotihakemisto
inherit acls = No
path = /home/rolle/
read only = No
browseable = Yes
writable = Yes
writeable = Yes
guest ok = Yes
My /etc/samba/smbusers looks like this:
Code:
root = administrator
;nobody = guest pcguest smbguest
Tell me what to try next.
Thanks in advance!
Chameleon in my heart since 2006.
-
Re: Home network between OpenSUSE11 and Windows XPSP3
Swerdna has a great networking how to on his site.
And it should work for 11.0
Linux HOWTOs and Tutorials: Suse Linux 10.0, 10.1 openSUSE 10.2, 10.3
Also make sure your firewalls are disabled until you see if you can connect machines on your network.
Hopefully Swerdna can jump in and answer your questions.
Also try doing a search.
Archives - openSUSE Forums
Inquiring minds want to know?
-
Re: Home network between OpenSUSE11 and Windows XPSP3
Hi, you might change these features of your network configuration:
You have name resolution set to use the lmhosts file and the hosts file -- I suggest you use broadcast name resolution up front and the other two last because you probably haven't entered the name/IP address pairs for the network into either of host or lmhosts files.
You don't overtly broadcast a network name for the computer -- suggest you activate netbios name broadcasting.
You use a primary domain. Suggest you use a workgroup.
All in all I would suggest this for the [global] paragraph:
[global]
workgroup = ROLLEVERKKO
netbios name = PUT_A_NAME_HERE
name resolve order = bcast host lmhosts wins
server string = ""
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 = yes
os level = 65
usershare allow guests = Yes
usershare max shares = 100
usershare owner only = False
Regarding the shares. They are accessed as read/write shares by anyone on the network -- no security at all -- OK that's your decision but don't keep private data in the home directory of rolle because it's prima facie open to the internet. The thing to change is that any files changed or added to these shares will belong to user "nobody". That will get very messy because you'll have mixed owners in the directory. And guests will have the permissions of the Linux directory (path = etc) as annoying constraints -- so I suggest that guests be given the read/write permissions of the owners of the dircetories with the "force user" parameter. I suggest you restructure like this:
[/media/kameli]
comment = Kameli
read only = no
path = /media/kameli/
guest ok = Yes
force user = whoever owns the directory kameli located at /media/kameli
and this:
[/home/rolle]
comment = Kotihakemisto
path = /home/rolle/
read only = No
force user = rolle
guest ok = Yes
Your shares are both "guest ok = yes" so you probably don't need to adjust the contents of smbusers file.
OpenSUSE 11.0 opens a hole in the firewall for Samba by default -- but if problems persist it might be a good idea to turn the firewall of temporarily as a diagnostic maneuver.
Finally, after the changes I suggest you reboot Suse, wait, reboot windows, wait, reboot Suse, wait, reboot windows. That save a lot of time waiting for elections and handshaking around the network.
Luck
-
Re: Home network between OpenSUSE11 and Windows XPSP3
 Originally Posted by swerdna
Finally, after the changes I suggest you reboot Suse, wait, reboot windows, wait, reboot Suse, wait, reboot windows. That save a lot of time waiting for elections and handshaking around the network.
Luck
I made those changes and rebooted both computers twice as you told. Now I have kameli in windows My Network Places but when I click it it says "\\peikko\/media/kameli is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions. The network path was not found."
I decided not to share /home/rolle. Instead I want to share only /media/kameli which is my mounted portable hard disk.
Any more solutions? I didn't find any good solution from Swerdna's tutorial page, because I didn't understand much.
Please help, I appreciate.
Rolle
Chameleon in my heart since 2006.
-
-
Re: Home network between OpenSUSE11 and Windows XPSP3
Hopefully you mean ""\\peikko\media\kameli", let's assume that's what you got, the other one doesn't make sense to me. I fixing that doesn't work then:
"don't have permissions": Turn firewall off for the time being. Add a user to the Samba user database with command smbpasswd in a console; e.g. if you add kameli do it this way:
Code:
smbpasswd -a kamali
answer password prompt, make up new password or use LInux password, as you prefer.
Then from Windows you should ge a prompt foor a username/password. Supply kameli/password.
Try that. If it fails, check the workgroup name under windows --> my computer R-click --> Properties --> Network Name or Name or whatever they use. Check the workgroup name is same as in Suse smb.conf.
If that doesn't work then post the contents of your smb.conf back here.
-
Re: Home network between OpenSUSE11 and Windows XPSP3
 Originally Posted by rollex2
Oh, sorry! I got it work! It seems that is has to be named like [kameli], not [/media/kameli]  now it's working fine. Thanks for everyone! Case solved and I'm happy 
Great. celebrate!
-
Re: Home network between OpenSUSE11 and Windows XPSP3
Hello. Long time no good suse-talk!
My recent problem: It founds my machine when typing \\192.168.11.2 in windows explorer, but not when typing \\peikko ! what's the matter here?
Chameleon in my heart since 2006.
-
Re: Home network between OpenSUSE11 and Windows XPSP3
I'm gonna start another topic because this one is SOLVED.
Chameleon in my heart since 2006.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|