No login prompt /access to smb shares, part solution

After upgrading from Sled10 to Opensuse11.2 I have smb share problems (to a known good server).

1: The Gui’s, Dolphin & KDE, show the available shares using “smb://serverip”, but do not prompt for login when accessed.
The absence of authentication causes error msg “share - does not exist” to an empty window. (I reckon??)
2; smbclient does not allow login (ie no smb prompt).

A review of installed software revealed that “pam-smb” was not installed.

After installing “pam-smb” both gui’s failed as before. BUT…

“smbclient //192.168.101.65/DATA_SHARE -U bobb”
actually worked.

BUT reported that
"session request to 192.168.101.65 failed
(Called name not present)
session request to 192 failed
(Called name not present)

Luckily I noticed the “smb: >” prompt, (never having seen it before). My konsole tests, cd , ls, etc worked fine.

The service “pamsmbd” was not running – but starting it has brought no change.

But if you are in a hole you can at least use konsole commands to access your shares.

“mount -t cifs //192.168.101.65/DATA_SHARE /mnt/smb -o user=bobb” works fine, (you will be prompted for your pw).

Your mount directory, “/mnt/smb” in my case, is now available to root:root. Oo-er missus.

The share is now available to your normal gui’s, use “su” or “super-dolphin” to change permissions, so that your normal user account can access it.

I found
SDB:Access to Windows Shares - openSUSE
to be a good source of info.

I reckon that the lack of an authentication prompt in gui’s, (using previous 10.2 userless convention and with user@server) is causing the hassle.

Please advise (I hope that this helps someone. Be kind - I’ve just moved from newbie to stumbler).

Migrating from kmail 3 to 4 is a kerfuffle anyway.
But if you use kwallet you can’t connect, another security related issue (???) so don’t.

regards

On Mon February 1 2010 04:46 pm, pragmaticpete wrote:

>
> After upgrading from Sled10 to Opensuse11.2 I have smb share problems
> (to a known good server).
>
> 1: The Gui’s, Dolphin & KDE, show the available shares using
> “smb://serverip”, but do not prompt for login when accessed.
> The absence of authentication causes error msg “share - does not exist”
> to an empty window. (I reckon??)
> 2; smbclient does not allow login (ie no smb prompt).
>
> A review of installed software revealed that “pam-smb” was not
> installed.
>
> After installing “pam-smb” both gui’s failed as before. BUT…
>
> “smbclient //192.168.101.65/DATA_SHARE -U bobb”
> actually worked.
>
> BUT reported that
> "session request to 192.168.101.65 failed
> (Called name not present)
> session request to 192 failed
> (Called name not present)
>
> Luckily I noticed the “smb: >” prompt, (never having seen it before).
> My konsole tests, cd , ls, etc worked fine.
>
> The service “pamsmbd” was not running – but starting it has brought no
> change.
>
> But if you are in a hole you can at least use konsole commands to
> access your shares.
>
> “mount -t cifs //192.168.101.65/DATA_SHARE /mnt/smb -o user=bobb” works
> fine, (you will be prompted for your pw).
>
> Your mount directory, “/mnt/smb” in my case, is now available to
> root:root. Oo-er missus.
>
> The share is now available to your normal gui’s, use “su” or
> “super-dolphin” to change permissions, so that your normal user account
> can access it.
>
> I found
> ‘SDB:Access to Windows Shares - openSUSE’
> (http://en.opensuse.org/SDB:Access_to_Windows_Shares)
> to be a good source of info.
>
> I reckon that the lack of an authentication prompt in gui’s, (using
> previous 10.2 userless convention and with user@server) is causing the
> hassle.
>
> Please advise (I hope that this helps someone. Be kind - I’ve just
> moved from newbie to stumbler).
>
> Migrating from kmail 3 to 4 is a kerfuffle anyway.
> But if you use kwallet you can’t connect, another security related
> issue (???) so don’t.
>
> regards
>
pragmaticpete;

You might take a look at these two HowTos as a start.

http://opensuse.swerdna.org/suselanprimer.html
http://opensuse.swerdna.org/susesambaserver.html

for a general overview of setting up Samba.

For more information on mount.cifs look at this HowTo:
http://opensuse.swerdna.org/susesambacifs.html
In particular to allow the mounted share to be accessible by a non root
user/group you need to add the uid and gid options to the mount command.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green