Welcome,
Guest
. Please
login
or
register
.
May 18, 2013, 11:41:48 AM
The Plug Computer Forum
|
Linux Stuff
|
General Linux questions
|
smbpasswd error
Pages: [
1
]
« previous
next »
Print
Author
Topic: smbpasswd error (Read 1436 times)
hr.punio
Newbie
Karma: 0
Posts: 26
smbpasswd error
«
on:
November 21, 2009, 01:32:18 AM »
Trying to setup samba on SheevaPlug (preinstaled Ubuntu),
I have got the following error
when assigning password with smbpasswd:
smbpasswd -a smbuser
> New SMB password:
> Retype new SMB password:
> ltdb: tdb(/var/lib/samba/group_mapping.ldb): tdb_mmap failed for size
> 77824 (Invalid argument)
and the /etc/samba/smbpasswd is empty; I have changed
passdb backend = smbpasswd and run smbpasswd again.
The error message describe above was displayed again but
/etc/samba/smbpasswd was modified this time...
I can access the samba server but i cannot access shared folder.
`Contact the administrator of this server to find out...'
Any clue how to proceed?
Thanks
Logged
jlpoole
Principal Software Engineer
Global Moderator
Jr. Member
Karma: 2
Posts: 87
Principal Software Engineer -- Oracle Corporation
Re: smbpasswd error
«
Reply #1 on:
November 21, 2009, 01:53:46 AM »
Sounds like a permissions issue. Were you root when you set the permissions?
Logged
The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation.
birdman
Sr. Member
Karma: 4
Posts: 429
Re: smbpasswd error
«
Reply #2 on:
November 21, 2009, 10:43:11 AM »
Random thought...
What type of storage (NAND, SDHC, USB flash/hard-drive) and file system is /var/lib/samba on?
I have a vague memory of ubifs (or was it jffs2) not supporting mmap(), and the error message looks like it might be trying to use that.
Logged
hr.punio
Newbie
Karma: 0
Posts: 26
Re: smbpasswd error
«
Reply #3 on:
November 22, 2009, 01:41:40 PM »
/var/lib/samba is on NAND / rootfs
and I am running as root when executing smbpasswd
no success story, ie. running samba with build-in Ubuntu?
Logged
birdman
Sr. Member
Karma: 4
Posts: 429
Re: smbpasswd error
«
Reply #4 on:
November 22, 2009, 06:11:47 PM »
As I noted, the problem
might
be that the file system on NAND doesn't support mmap.
See,
e.g.
:
http://plugcomputer.org/plugforum/index.php?topic=682.msg4136#msg4136
It might be that users running ext3 on an SDHC card, or USB drive have it working, but that wouldn't be the same setup.
Logged
hr.punio
Newbie
Karma: 0
Posts: 26
Re: smbpasswd error
«
Reply #5 on:
November 24, 2009, 11:52:26 AM »
To bypass rootfs limitations I added
use mmap = no
to smb.conf
And with further trial-and-error modifications
of /etc/samba/smb.conf (appended below)
I managed to setup Samba...
[global]
workgroup = J_I_K
server string = %h server (Samba, Ubuntu)
interfaces = 127.0.0.0/8, eth0
map to guest = Bad User
obey pam restrictions = Yes
smb passwd file = /var/lib/samba/passdb.tdb
passdb backend = tdbsam
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
username map = /etc/samba/smbusers
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
use mmap = No
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
[data]
comment = "Data Directories %T"
path = /public/sheeva/winstuff
read only = No
create mask = 0777
volume = "data"
Logged
HelenJames
Guest
answer this post
«
Reply #6 on:
July 27, 2010, 11:04:37 AM »
I have send you in pm
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
=> Application ideas and development Q/A
=> Success stories
=> Marvell PlugIN - Free Your Imagination
-----------------------------
Hardware and U-Boot firmware
-----------------------------
=> Hardware
=> U-Boot stuff
-----------------------------
Linux Stuff
-----------------------------
=> Android for SheevaPlug is Available!
=> General Linux questions
=> Kernel
=> Linux distributions
Loading...