[gentoo] smbpasswd -a user

Pagina: 1
Acties:
  • 146 views sinds 30-01-2008
  • Reageer

  • Neptunus
  • Registratie: Januari 2001
  • Laatst online: 13-11-2025
Ik draai een gentoo machine en had daarom samba geinstalleert. Emerge samba ging prima, nog even rc-update add samba default en een reboot. Alles draait prima. Na smb.conf en smbuser te hebben aangepast en samba even opnieuw starten wou ik een user toevoegen met smbpasswd -a user.

Hierop kreeg ik de volgende waarschuwing;
root@server samba # smbpasswd -a neptunus
New SMB password:
Retype new SMB password:
LDAPS option set...!
fetch_ldap_pw: no ldap secret retrieved!
ldap_connect_system: Failed to retrieve password for from secrets.tdb
LDAPS option set...!
fetch_ldap_pw: no ldap secret retrieved!
ldap_connect_system: Failed to retrieve password for from secrets.tdb
Failed to add entry for user neptunus.
Failed to modify password entry for user neptunus

Nu heeft mijn machine bij de install van samba gelijk ook maar openLDAP geinstallt. Dit was helemaal niet de bedoeling. Ik wil alleen gebruik maken van samba verder niet. Hij start het bij het booten ook niet.

Hoe krijg ik het voorelkaar om gewoon samba te gaan gebruiken en met; smbpasswd -a user gebruiken kunnen toevoegen.

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#======================= Global Settings =====================================
[global]
   interfaces = eth0
   workgroup = NEPWORK
   server string = FileServer

   hosts allow = 192.168.1. 127.

   log file = /var/log/samba/%m.log
   max log size = 5
   security = user
#  password level = 10
#  username level = 10
   encrypt passwords = yes
   smb passwd file = /etc/samba/smbpasswd

  username map = /etc/samba/smbusers

   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

   os level = 65

#============================ Share Definitions ==============================


[Share]

        comment = Share
        path = /warez/
        public = yes
        writeable = yes
        create mode = 0777

[Neptunus-Private]
        comment = Neptunus
        path = /share/neptunus/
        valid users = neptunus
        public = no
        writeable = yes

  • MIT
  • Registratie: Oktober 2001
  • Laatst online: 29-03-2025

MIT

KerMIT

Ik heb bijna dezelfde (global)file als jij (Debian). Er zijn een paar dingen anders. Misschien heb je hier wat aan.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[global]

# Change this for the workgroup/NT-domain name your Samba server will part of
   workgroup = HOME

# server string is the equivalent of the NT Description field
   server string = %h server (Samba %v)

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
;   load printers = yes

# You may wish to override the location of the printcap file
;   printcap name = /etc/printcap

# 'printing = cups' works nicely
;   printing = bsd

;   guest account = nobody
   invalid users = root

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Put a capping on the size of the log files (in Kb).
   max log size = 1000

# If you want Samba to log though syslog only then set the following
# parameter to 'yes'. Please note that logging through syslog in
# Samba is still experimental.
;   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smb,nmb} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# security_level.txt for details.
   security = user

# You may wish to use password encryption. Please read ENCRYPTION.txt,
# Win95.txt and WinNT.txt in the Samba documentation. Do not enable this
# option unless you have read those documents
   encrypt passwords = true

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
   socket options = TCP_NODELAY

No Signature


  • Tony Vroon
  • Registratie: Juni 1999
  • Laatst online: 13-06-2020

Tony Vroon

Werkt nu ergens anders

emerge ufed

LDAP USE-flag uitzetten, save (kijk gelijk even naar de andere flags en hun beschrijvingen, het is geen goed teken dat je niet wist dat je LDAP ingeschakeld had staan).

emerge samba

(Gebruik eventueel voortaan emerge -pv packagenaam zodat je voortaan kunt zien op welke USE-flags een package reageert).

En mocht je LDAP wel gepland ingeschakeld hebben staan, maar het niet willen gebruiken voor samba, om die mogelijkheid open te houden:
USE="-ldap" emerge samba

[ Voor 21% gewijzigd door Tony Vroon op 09-12-2003 11:45 . Reden: Mogelijkheid LDAP-USE-flag openhouden ]

"Wie is deesen figuur, hier ten topic aangheduidt als 'hij', wiens mededelinghe soo eenen consternatie weet te ontluycken :? " -- dion_b


  • Fr0zenFlame
  • Registratie: September 2003
  • Laatst online: 19-11-2024

Fr0zenFlame

LAN 'A Holic

Onzin om dus een nieuw topic te starten... maargoed heb nu dus een Gentoo install lopen & heb dus ook probleem met smbpassword -a user....

---------------------------------------------------------------------------------------------
// # smbpasswd -a danny
New SMB password:
Retype new SMB password:
startsmbfilepwent_internal: file /etc/samba/private/smbpasswd did not exist. Couldn't create new one. Error was: No such file or directoryUnable to open passdb database.
startsmbfilepwent_internal: file /etc/samba/private/smbpasswd did not exist. Couldn't create new one. Error was: No such file or directorystartsmbfilepwent_internal: too many race conditions creating file /etc/samba/private/smbpasswd
add_smbfilepwd_entry: unable to open file.
Failed to add entry for user danny.
Failed to modify password entry for user danny
---------------------------------------------------------------------------------------------

Iemand een idee?

i7-6700K | Z170A XPOWER GAMING TITANIUM EDITION | InWin904 | 32GB Corsair Dominator Platinum | nVidia GeForce RTX2080 TI | Iiyama G-Master UWQH 34" | 2x 1TB Samsung SSD 980PRO | 1x 4TB Samsung 860EVO | Arctis 7 | SteelSeries Apex Pro | Logitech G502 Hero


  • Z-Dragon
  • Registratie: December 2002
  • Laatst online: 09:29
Ik zou samba maar eens herinstalleren met de juiste rechten. Het lijkt erop dat er óf van alles ontbreekt, of dat je niet de juiste rechten hebt.

^ Wat hij zegt.


  • M-ThijZ
  • Registratie: Maart 2003
  • Laatst online: 19-03 15:54

M-ThijZ

Riding on Rails

Het lijkt erop dat je een beetje in de war zit met je USE flags, dus dat je programma's verkeerde functies meegeeft.
Dat geeft niets, maar je moet nog eens rustig kijken naar het effect van bepaalde USE flags en het eens opnieuw proberen. (De tijd die je spendeert moet je bij gentoo als investering zien).

Ga ook niet te heftig met optimalisaties spelen, en blijf ook even uit de ~arch branch. Zet eerst een rustig een goed stabiel systeem op.

  • Fr0zenFlame
  • Registratie: September 2003
  • Laatst online: 19-11-2024

Fr0zenFlame

LAN 'A Holic

Opgelost :) miste paar un-comments in mn smb.conf!

i7-6700K | Z170A XPOWER GAMING TITANIUM EDITION | InWin904 | 32GB Corsair Dominator Platinum | nVidia GeForce RTX2080 TI | Iiyama G-Master UWQH 34" | 2x 1TB Samsung SSD 980PRO | 1x 4TB Samsung 860EVO | Arctis 7 | SteelSeries Apex Pro | Logitech G502 Hero

Pagina: 1