[Samba] cannot start after "chown-ing" a directory
usman malik
usman.malik at pelynch.com
Mon Apr 30 12:48:23 GMT 2007
Unix solaris 10
samba 3.0.21b
I am having a problem starting samba. I originally installed and started
samba on a computer successfully, but realised I did not have the
correct permissioning for the shared directory. I tried "chown" on the
directory (in the path of the smb.conf file) whilst samba was still
running. I then killed nmbd and smbd and tried re-starting everything.
Unfortunately samba will not start up now.
I am starting samba using the following commands:
./smbd -D
./nmbd -D
I have just been using kill to stop the two processes.
When I type "netstat -a" I cannot see any netbios or 137/139 lines.
My smb.conf file seems ok:
# ./testparm
Load smb config files from /etc/sfw/smb.conf
Processing section "[homes]"
Processing section "[stuff]"
Processing section "[printers]"
No path in service printers - using /tmp
Loaded services file OK.
WARNING: passdb expand explicit = yes is deprecated
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = MYGROUP
server string = Samba Server
log level = 3
[homes]
path = /opt/csw/share/orderslave
read only = No
browseable = No
[stuff]
path = /tmp
[printers]
path = /tmp
printable = Yes
browseable = No
I get the following when using smbclient :
# ./smbclient -U% -L localhost
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.0.21b]
Sharename Type Comment
--------- ---- -------
stuff Disk
IPC$ IPC IPC Service (Samba Server)
ADMIN$ IPC IPC Service (Samba Server)
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.0.21b]
Server Comment
--------- -------
MASTERSLAVE Samba Server
Workgroup Master
--------- -------
MYGROUP MASTERSLAVE
PELYNCH HOMEBASE
The end of my log.smbd file looks like this:
wct=13 flg2=0xc801
[2007/04/30 13:33:13, 3] smbd/sesssetup.c:(968)
Domain=[] NativeOS=[Unix] NativeLanMan=[Samba] PrimaryDomain=[]
[2007/04/30 13:33:13, 3] smbd/sesssetup.c:(983)
sesssetupX:name=[]\[]@[masterslave]
[2007/04/30 13:33:13, 3] smbd/sesssetup.c:(115)
Got anonymous request
[2007/04/30 13:33:13, 3] auth/auth.c:(219)
check_ntlm_password: Checking password for unmapped user []\[]@[] with
the new password interface
[2007/04/30 13:33:13, 3] auth/auth.c:(222)
check_ntlm_password: mapped user is: []\[]@[]
[2007/04/30 13:33:13, 3] auth/auth.c:(268)
check_ntlm_password: guest authentication for user [] succeeded
[2007/04/30 13:33:13, 3] smbd/password.c:(257)
User name: nobody Real name: nobody
[2007/04/30 13:33:13, 3] smbd/password.c:(276)
UNIX uid 60001 is UNIX user nobody, and will be vuid 100
[2007/04/30 13:33:13, 3] smbd/process.c:(1194)
Transaction 3 of length 88
[2007/04/30 13:33:13, 3] smbd/process.c:(993)
switch message SMBtconX (pid 16566) conn 0x0
[2007/04/30 13:33:13, 3] smbd/sec_ctx.c:(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/04/30 13:33:13, 3] smbd/service.c:(488)
Connect path is '/tmp' for service [IPC$]
[2007/04/30 13:33:13, 3] lib/util_seaccess.c:(250)
[2007/04/30 13:33:13, 3] lib/util_seaccess.c:(251)
se_access_check: user sid is S-1-5-21-2539106028-4017316681-1939896253-501
se_access_check: also S-1-5-21-2539106028-4017316681-1939896253-514
se_access_check: also S-1-1-0
se_access_check: also S-1-5-2
se_access_check: also S-1-5-32-546
se_access_check: also S-1-5-21-2539106028-4017316681-1939896253-121003
[2007/04/30 13:33:13, 3] smbd/vfs.c:(216)
Initialising default vfs hooks
[2007/04/30 13:33:13, 3] lib/util_seaccess.c:(250)
[2007/04/30 13:33:13, 3] lib/util_seaccess.c:(251)
se_access_check: user sid is S-1-5-21-2539106028-4017316681-1939896253-501
se_access_check: also S-1-5-21-2539106028-4017316681-1939896253-514
se_access_check: also S-1-1-0
se_access_check: also S-1-5-2
se_access_check: also S-1-5-32-546
se_access_check: also S-1-5-21-2539106028-4017316681-1939896253-121003
[2007/04/30 13:33:13, 3] smbd/sec_ctx.c:(288)
setting sec ctx (60001, 60001) - sec_ctx_stack_ndx = 0
[2007/04/30 13:33:13, 3] smbd/service.c:(693)
masterslave (127.0.0.1) connect to service IPC$ initially as user
nobody (uid=60001, gid=60001) (pid 1
6566)
[2007/04/30 13:33:13, 3] smbd/sec_ctx.c:(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/04/30 13:33:13, 3] smbd/reply.c:(708)
tconX service=IPC$
[2007/04/30 13:33:13, 3] smbd/process.c:(1194)
Transaction 4 of length 128
[2007/04/30 13:33:13, 3] smbd/process.c:(993)
switch message SMBtrans (pid 16566) conn 0x353c40
[2007/04/30 13:33:13, 3] smbd/sec_ctx.c:(288)
setting sec ctx (60001, 60001) - sec_ctx_stack_ndx = 0
[2007/04/30 13:33:13, 3] smbd/ipc.c:(539)
trans <\PIPE\LANMAN> data=0 params=34 setup=0
[2007/04/30 13:33:13, 3] smbd/ipc.c:(334)
named pipe command on <LANMAN> name
[2007/04/30 13:33:13, 3] smbd/lanman.c:(3665)
Got API command 104 of form <WrLehDz> <B16BBDz>
(tdscnt=0,tpscnt=34,mdrcnt=65535,mprcnt=8)
[2007/04/30 13:33:13, 3] smbd/lanman.c:(3669)
Doing NetServerEnum
[2007/04/30 13:33:13, 3] smbd/lanman.c:(1349)
NetServerEnum domain = MYGROUP uLevel=1 counted=1 total=1
[2007/04/30 13:33:13, 3] smbd/process.c:(1194)
Transaction 5 of length 128
[2007/04/30 13:33:13, 3] smbd/process.c:(993)
switch message SMBtrans (pid 16566) conn 0x353c40
[2007/04/30 13:33:13, 3] smbd/ipc.c:(539)
trans <\PIPE\LANMAN> data=0 params=34 setup=0
[2007/04/30 13:33:13, 3] smbd/ipc.c:(334)
named pipe command on <LANMAN> name
[2007/04/30 13:33:13, 3] smbd/lanman.c:(3665)
Got API command 104 of form <WrLehDz> <B16BBDz>
(tdscnt=0,tpscnt=34,mdrcnt=65535,mprcnt=8)
[2007/04/30 13:33:13, 3] smbd/lanman.c:(3669)
Doing NetServerEnum
[2007/04/30 13:33:13, 3] smbd/lanman.c:(1349)
NetServerEnum domain = MYGROUP uLevel=1 counted=2 total=2
[2007/04/30 13:33:13, 3] smbd/process.c:(1194)
Transaction 6 of length 39
[2007/04/30 13:33:13, 3] smbd/process.c:(993)
switch message SMBtdis (pid 16566) conn 0x353c40
[2007/04/30 13:33:13, 3] smbd/sec_ctx.c:(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/04/30 13:33:13, 3] smbd/sec_ctx.c:(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/04/30 13:33:13, 3] smbd/service.c:(885)
masterslave (127.0.0.1) closed connection to service IPC$
[2007/04/30 13:33:13, 3] smbd/connection.c:(69)
Yielding connection to IPC$
[2007/04/30 13:33:13, 3] smbd/sec_ctx.c:(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/04/30 13:33:13, 3] smbd/process.c:(1447)
timeout_processing: End of file from client (client has disconnected).
[2007/04/30 13:33:13, 3] smbd/sec_ctx.c:(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/04/30 13:33:13, 2] smbd/server.c:(614)
Closing connections
[2007/04/30 13:33:13, 3] smbd/connection.c:(69)
Yielding connection to
[2007/04/30 13:33:13, 3] smbd/server.c:(655)
Server exit (normal exit)
Does anybody know how to fix this?
More information about the samba
mailing list