Samba & sessionid.tdb


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Samba & sessionid.tdb
# 1  
Old 12-10-2003
Samba & sessionid.tdb

Hello folks,

I am running FreBSD Unix 5.1 and I installed Samba 3.0.0 using instructions on this page http://www.kempston.net/solaris/samba.html

(I only worked through points 1 to 3)

It seemed to install OK but the smbd and nmbd daemons would not run because for some reason the installation did not create an smb.conf file. I ran 'testparm', found out where it expected the smb.conf file to be and manually created one there.

The daemons did execute after that but when I looked at the status through SWAT, although the nmbd daemon was running the smbd daemon was not. I ran the smbstatus command on my unix box it said:

'sessionid.tdb not initialised'

Does anyone know what the problem is? Did I install it incorrectly?

Any help is greatly appreciated.
# 2  
Old 12-10-2003
I've not seen this behavior before, but found someone who had. He fixed this by resetting the group and world permissions to allow read and execute access for the directory/usr/local/samba/var (or equivalent given your installation path). Apparently, during installation, access permissions for this directory were apparently restricted to root only.

Cheers,

Keith
# 3  
Old 12-10-2003
Thanks for replying,

On my system it is /usr/local/samba/var, and it seemed to have appropriate permissions. However, just in case I gave everyone rwx permissions but it did'nt make any difference. In that directory there are a number of .tdb files but sessionid.tdb is'nt there so maybe it was'nt installed in the first place- I've tried re-installing but it has'nt made any difference.
# 4  
Old 12-16-2003
Hello folks, I have found the solution and I thought it would be useful to post it just in case anyone else was having problems (sorry for the bump-up).

The sessionid.tdb file was actually in the /var/lock directory. I copied it to the samba installation directory which is /usr/local/samba/var/locks. After I did this the 'smbstatus' command executed without any error messages.

However, I could not use the 'smbclient -L servername' command because no accounts had been added to the smbpasswd file. Once I added my account everything seemed to work normally and I could access the UNIX shares from my Windows 2000 PC.

The only explanation I can think of for this is that the installation did not install some files (or at least a default smb.conf file) and placed others in the wrong directory; maybe its because I am using FreeBSD 5.1 which is not a stable production release.

Last edited by SRP; 12-16-2003 at 07:22 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SFTP Shell Script Get & Delete && Upload & Delete

Hi All, Do you have any sample script, - auto get file from SFTP remote server and delete file in remove server after downloaded. - only download specify filename - auto upload file from local to SFTP remote server and delete local folder file after uploaded - only upload specify filename ... (3 Replies)
Discussion started by: weesiong
3 Replies

2. Solaris

samba issue: one samba share without password prompting and the others with.

Hi All, I've been trying to configure samba on Solaris 10 to allow me to have one share that is open and writable to all users and have the rest of my shares password protected by a generic account. If I set my security to user, my secured shares work just fine and prompt accordingly, but when... (0 Replies)
Discussion started by: ideal2545
0 Replies

3. UNIX for Dummies Questions & Answers

Samba & Windows7

Hey there, I´m new to unix and unix.com, so thats my first question :) Does anybody know if theres a version of Samba which supports Windows7 without changing the LAN-Manager-Authentification to LM&NTLM-Answers? Hope someone has an answer... greets from Berlin :) (1 Reply)
Discussion started by: Spidi4u
1 Replies

4. Shell Programming and Scripting

Sort a the file & refine data column & row format

cat file1.txt field1 "user1": field2:"data-cde" field3:"data-pqr" field4:"data-mno" field1 "user1": field2:"data-dcb" field3:"data-mxz" field4:"data-zul" field1 "user2": field2:"data-cqz" field3:"data-xoq" field4:"data-pos" Now i need to have the date like below. i have just... (7 Replies)
Discussion started by: ckaramsetty
7 Replies

5. Shell Programming and Scripting

Replace & sign to &amp word

Hi, I have text file abc.txt. In this file, I have the following data. Input: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith & Mrs Smith Mr Smith& Mrs Smith Mr Smith &Mrs Smith Output: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith &amp Mrs Smith Mr Smith&amp... (4 Replies)
Discussion started by: naveed
4 Replies

6. Shell Programming and Scripting

replace & with & xml file

Hello All I have a xml file with many sets of records like this <mytag>mydata</mytag> <tag2>data&</tag2> also same file can be like this <mytag>mydata</mytag> <tag2>data&</tag2> <tag3>data2&amp;data3</tag3> Now i can grep & and replace with &amp; for whole file but it will replace all... (4 Replies)
Discussion started by: lokaish23
4 Replies

7. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

8. UNIX for Dummies Questions & Answers

Problem with xterm & tcsh & sourcing a script in a single command

Hi friends, I have a script that sets the env variable path based on different conditions. Now the new path variable setting should not done in the same terminal or same shell. Only a new terminal or new shell should have the new path env variable set. I am able to do this only as follows: >cd... (1 Reply)
Discussion started by: sowmya005
1 Replies

9. Red Hat

SAMBA & Public Folder

Hello folks, I am trying to accomplish the following: 1. Create home folders for each user 2. Create a public folder where all users can access 3. Use Samba as a domain controller. I have successfully completed issue 1. But I can't get the second issue to work. Below is my config file.... (0 Replies)
Discussion started by: behradb
0 Replies

10. UNIX for Dummies Questions & Answers

Samba & Win98

At this point I am very frustrated, I have been reading man pages until my eyes bleed. I have set Samba up on a Suse. 7.0 Linux box. I have networked that box to my Win98 box. I have shared a directory. The linux box shows up in Win98 in Network Neighborhood. I can click... (3 Replies)
Discussion started by: Recon
3 Replies
Login or Register to Ask a Question