Folder Sharing openSUSE 12.1

I have a folder “SHARE” set for sharing on my (fresh install) openSUSE 12.1 Laptop.

On my WinXP Desktop I have an account to allow access name & password.

When I had Linux Mint 10 on this same laptop, the File Sharing Wizard just had me put in the name-password to access my WinXP and that was that. No problem.

I can get connection to my openSUSE laptop from WinXP Network, but Windoz keeps asking me for a user & password. This did NOT happen with Mint.

What I’m I missing:?

I have a couple of blog posts you might want to read.

Samba S.W.A.T. - Samba Web Administration Tool Setup for openSUSE - Blogs - openSUSE Forums

SWAT - Samba Web Administration Tool - Setup & Creation Script - 1.03 - Blogs - openSUSE Forums

Its the minor details that kills you. Perhaps you will find out what it is after reading through my links. I use Samba between several PC’s and most are openSUSE and a couple are Windows. So, Samba works with openSUSE just fine, but perhaps a detail I set is not being set for you automatically.

Thank You,

On 07/15/2012 10:06 AM, tecknode wrote:
>
> I have a folder “SHARE” set for sharing on my (-fresh install-)
> openSUSE 12.1 Laptop.
>
> On my WinXP Desktop I have an account to allow access name &
> password.
>
> When I had Linux Mint 10 on this same laptop, the File Sharing
> Wizard
just had me put in the name-password to access my WinXP and that
> was that. No problem.
>
> I can get connection to my openSUSE laptop from WinXP Network, but
> Windoz keeps asking me for a user & password. This did NOT happen with
> Mint.
>
> What I’m I missing:?
>
>

If you used the Right-click GUI to make the sharing of the folder SHARE,
then the underlying config that is created is different if you did it in
Gnome or in KDE. And if you used a text editor it is different again.
There are many different issues that might cause your problem. So I
would ask you to answer the following very relevant questions:

  • are you using Gnome or KDE
  • how did you make the share called “SHARE”
  • maybe you left the [homes] shares on so please run this command and
    report back:
cat /etc/samba/smb.conf
  • maybe you enabled or created usershares so please run this command and
    report back:
sudo ls -l /var/lib/samba/usershares
  • maybe you did or didn’t add authorised Samba users so please run this
    command and report back:
sudo pdbedit -L
  • maybe you did or didn’t add make passage through the firewall so
    please run this command and report back:
cat /etc/sysconfig/SuSEfirewall2 | grep FW_CONFIGURATIONS_EXT= 

That should help readers to sort it for you. (my money is on the
[homes] share, but there are many other possibilities)


Regards
swerdna

Using KDE desktop.

This is what I got for the folder in question:

Share disabled by YaST

[netlogon]

[SHARE]
comment = openSUE Share Folder
inherit acls = Yes
path = /home/tecknomage/Documents/SHARE
read only = No

Why is YaST disabling my SHARE :open_mouth:

  • maybe you enabled or created usershares so please run this command and
    report back:
sudo ls -l /var/lib/samba/usershares

root’s password:
total 4
-rw-r–r-- 1 tecknomage users 109 Jul 14 15:43 share

  • maybe you did or didn’t add authorised Samba users so please run this
    command and report back:
sudo pdbedit -L
  • maybe you did or didn’t add make passage through the firewall so
    please run this command and report back:
cat /etc/sysconfig/SuSEfirewall2 | grep FW_CONFIGURATIONS_EXT= 

tecknomage@linux-h9z4:~> cat /etc/sysconfig/SuSEfirewall2 | grep FW_CONFIGURATIONS_EXT=
FW_CONFIGURATIONS_EXT=“netbios-server samba-client samba-server”
tecknomage@linux-h9z4:~>

That should help readers to sort it for you. (my money is on the
[homes] share, but there are many other possibilities)


Regards
swerdna

OPPS, left out all the info from:

tecknomage@linux-h9z4:~> cat /etc/samba/smb.conf

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: 2012-05-02

[global]
workgroup = LC2100SN
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
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
wins support = Yes
ldap delete dn = No
ldap group suffix = ou=Groups
ldap idmap suffix = ou=Idmap
ldap machine suffix = ou=Machines
ldap passwd sync = Yes
ldap replication sleep = 1000
ldap ssl = Start_tls
ldap suffix = dc=example,dc=com
ldap timeout = 5
ldap user suffix = ou=Users
usershare max shares = 100
netbios name = LC2100SN

[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = Yes
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

**## Share disabled by YaST

[netlogon]

[Share Folder]
comment = Win share folder
inherit acls = No
path = /home/tecknomage/Documents/SHARE
read only = No**

There, so why would YaST disalbe Share:\

You clicked in yast to disable the share called “netlogin” when you went to the GUI configurator at Yast –> Network services –> samba server
That click creates the following lines in the file smb.conf:

Share disabled by YaST

[netlogon]## Share disabled by YaST

[netlogon]

The ldap stuff in the [global] stanza of smb.conf was created by clicking in the GUI configurator located at Yast → Network services → Ldap stuff

The reason you are being asked for a username/password when you go to the openSUSE icon in Network Neighbourhood in win XP is that you have [stanzas] in smb.conf that create secure shares, secure in the sense that only authorized users may access them, i.e. must authorize with usernames and passwords. I can see four secure shares listed in smb.conf including the secure share [Share Folder]

This is all pretty easy to fix. But I don’t know what you’re trying to do/achieve. Are you trying to share the folder /home/tecknomage/Documents/SHARE to guest access from win XP? (i.e. with no need for passwords). If that’s a “yes” I’ll show you how. Otherwise, tell me what u want.

And a small PS: I’m assuming that you want a standard windows-style workgroup setup, like for a small office / home office, with no LDAP & no wins server stuff, correct me if I’m wrong

Thanks, but this is NOT helpful because I cannot find what you are talking about :?

When you say “GUI configurator at YaST” where is that in openSUSE? Do you mean “Configure a SAMBA Server?” IF this is what you meant, I don’t see an option to ‘disable’ share netlogin.

I sorry, but I got my laptop just to get familiar with Linux, and SUSE is my latest try (tried Ubuntu & Linux Mint), so bear with me :embarrassed:

Correct. Workgroup = Home, on WinXP Pro SP3.

BTW - I think I said in the past, WinXP Network does see my SUSE share, but it keeps asking for a password.

Of course, @!##@! Windoze does not make it clear whose password it wants, my win-password or my SUSE-password. Regardless, I tried both and nothing worked.

Let’s just cancel all the above and fix the Samba workgroup config on your openSUSE. Forget about all the fancy config tools in Yast and simply edit the one file, smb.conf, located at /etc/samba/smb.conf. That controls pretty-much everything. Open a console window and enter this command, it will make a backup copy of the existing file smb.conf:

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.original

Now enter this command to open the file for editing:

kdesu kwrite /etc/samba/smb.conf

Then delete everything in the file, removing all text and copy all the text below and paste it into the empty file and save the file (smb.conf) and exit.

The reboot openSUSE wait till it’s finished, then reboot winxp wait till it’s finished, then reboot openSUSE wait till it’s finished, then reboot win xp wait till it’s finished. That makes them talk to each other well, get to know each other. You shouldn’t need passwords after that.

Here’s the text to use, do a copy/paste of the following:


# This is a preferred master browser config file for openSUSE 12.x
# courtesy of swerdna http://opensuse.swerdna.org/suselanprimer.html
[global]
workgroup = HOME
netbios name = openSUSE121
name resolve order = bcast host lmhosts wins
server string = ""
pasdb 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 = yes
os level = 65
usershare allow guests = Yes
usershare max shares = 100
usershare owner only = False

[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0700
browseable = No
guest ok = Yes

[openSUSEshare]
openSUE Share Folder
path = /home/tecknomage/Documents/SHARE
read only = No
guest ok = yes
force user = tecknomage

reference for this: Samba LAN Primer

Luck to you

Found Network Services (xinetd) in YaST admin, but there’s NO SAMBA server entry.

Sorry, this systems timeout on edits dumped my changes.

There is no entry for ‘netlogin’ listed.

However there are entries for:

  • eKlogin
  • Klogin
  • Login

BUT all are marked 'NI" = not installed.

I urge you to implement the advice in post #12 of this thread

:slight_smile: IT WORKS :good:

Thanks everyone.

I can now reach my openSUSE share-folder from Windoz Network Neighborhood! And does not ask for password anymore.

:kiss: