Bug 16377 - user specified samba account name doesn't work
: user specified samba account name doesn't work
Status: UNCONFIRMED
Product: SB Touch
Classification: Unclassified
Component: Networking
: unspecified
: All Debian Linux
: -- minor (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-22 15:05 UTC by streumix
Modified: 2010-07-23 00:37 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description streumix 2010-07-22 15:05:14 UTC
I'm dealing with a SB Touch, Rel. 7.6.0 r8980M.
USB HDD sharing via samba is enabled, a custom user and passwd are
set and reported correctly on the SB Touch screen.

Mounting the shares with credentials of the configured user doesn't work.
It only works with the root account.
There's an issue with the /etc/samba/smbusers file:
It contains a double quoted string, e.g. 
root="useraccout"
Removing the quotes solves the problem.

Regards
Comment 1 Felix Mueller 2010-07-22 15:18:26 UTC
I've just tried to connect from Mac OSX and Ubuntu and it worked with the specified samba sharing account name.

Do you have another OS to test from?

Thanks
Felix
Comment 2 streumix 2010-07-22 23:54:55 UTC
I've tested connections from:
- Windows XP (latest patches / SP)
- Gnome Nautilus / mount via gvfs on Debian unstable and Ubuntu 9.10 (both x86)
- basic command line smbclient on Debian unstable

Using the root account works on all options, whereas the smbuser account, streumix, doesn't work as long as the account name is double quoted in /etc/samba/smbuser (-> inserted by the GUI). This hold for all test systems.

After remote login via ssh changing /etc/samba/smbusers from

root = "streumix"

to

root = streumix

gvfs mount and smbclient worked. I've not been able to test from WinXP yet.

Felix:
Do you think it's a matter of the client OS ? WinXP doesn't work, too.
 
I've googled for the map file spec and found some non-offical doc 
on http://www.howtogeek.com/howto/ubuntu/install-samba-server-on-ubuntu/,
which calls for quotes. On the other side, non of the example files (of working configurations !) returned by Google does contain quotes. Strange ....

How does the smbusers file of your working setup look like ? Does it contain 
the quotes ? Is your working configuration 7.6.0 r8980M, too ?


Toby
Comment 3 Felix Mueller 2010-07-23 00:37:42 UTC
Hi Toby

I am on 7.6.0 r8981 and my /etc/samba/smbusers file looks like this:

root = "streumix"

With the quotes and it works like a charm from different OSs. Not sure why it won't work for you.

BTW: The quotes are needed else names containing spaces won't work.

I don't know if it has to do with the client OS. That was just a guess.

Felix