Bugzilla – Bug 693900
Most basic functionality not working in samba
Last modified: 2011-05-15 16:05:22 UTC
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Maybe I should cool off before filing this bug. No, can't do it. So, here it is: It seems that the most basic 1-2-3 functionality does not work in samba. How did this shit job go into final version? The most basic functionality being: 1. Adding one user 2. Starting the frigging server Point number two does not work!! Reproducible: Always Steps to Reproduce: 0. Start with installing samba. Do not touch the smb.conf file 1. Add user silviu_marin-caea (the unix user exists) getent passwd | grep silviu silviu_marin-caea:x:1000:100:Silviu Marin-Caea:/home/silviu_marin-caea:/bin/bash smbpasswd -a silviu_marin-caea New SMB password: Retype new SMB password: tdbsam_open: Converting version 0.0 database to version 4.0. tdbsam_convert_backup: updated /etc/samba/passdb.tdb file. Added user silviu_marin-caea. 2. start the server: rcsmb start Starting Samba SMB daemon startproc: exit status of parent of /usr/sbin/smbd: 1 done 3. look in log.smbd smbd version 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64 started. Copyright Andrew Tridgell and the Samba Team 1992-2010 [2011/05/15 18:35:07.257930, 1] ../lib/util/params.c:513(OpenConfFile) params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/dhcp.conf": Permission denied [2011/05/15 18:35:07.259039, 0] smbd/server.c:1149(main) error opening config file 4. Check rights: ls -l /etc/samba/dhcp.conf -rw-r--r-- 1 root root 198 May 15 13:38 /etc/samba/dhcp.conf 5. Comment out the line in smb.conf # include = /etc/samba/dhcp.conf 6. Try to start server smbd version 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64 started. Copyright Andrew Tridgell and the Samba Team 1992-2010 [2011/05/15 18:39:26.937495, 0] passdb/secrets.c:73(secrets_init) Failed to open /etc/samba/secrets.tdb [2011/05/15 18:39:26.939128, 0] passdb/secrets.c:73(secrets_init) Failed to open /etc/samba/secrets.tdb [2011/05/15 18:39:26.939319, 0] smbd/server.c:1234(main) ERROR: smbd can not open secrets.tdb 7. ls -l /etc/samba/*.tdb -rw------- 1 root root 36864 May 15 18:35 /etc/samba/passdb.tdb -rw------- 1 root root 45056 May 15 18:35 /etc/samba/secrets.tdb 8. chmod a+rw /etc/samba/*.tdb 9. retry starting server 10. Same error in log.smbd 11. FFFFFFUUUUUUU File this bugreport Actual Results: Just crap, useless crap Expected Results: Being able to add an user and start the samba server in the default configuration. Working samba server. I'm gonna be sorry for filing an angry bugreport.
Thanks for your report Silviu, your anger is understandable. (In reply to comment #0) > [2011/05/15 18:39:26.939319, 0] smbd/server.c:1234(main) > ERROR: smbd can not open secrets.tdb This bug has been fixed by the AppArmor team. *** This bug has been marked as a duplicate of bug 666450 ***