samba wouldn't start on solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris samba wouldn't start on solaris 10
# 1  
Old 12-09-2008
I've configured the copy of samba that ships with solaris 10. when i try to start the samba services, i get the following errors

sundb01 root > svcs -vx nmbd
svc:/application/nmbd:default (Samba)
State: online since 9 December 2008 15:47:38 GMT
See: /var/svc/log/application-nmbd:default.log
Impact: None.
sundb01 root > svcs -vx smbd
svc:/application/smbd:default (Samba)
State: maintenance since 9 December 2008 15:47:49 GMT
Reason: Method failed repeatedly.
See: Sun Message ID: SMF-8000-8Q
See: /var/svc/log/application-smbd:default.log
Impact: This service is not running.


Has anyone had this problem before?

I get the following errors in my /var/log/samba/samba.log log file:

[2008/12/09 16:12:17, 0] lib/util_sock.cSmilie830)
bind failed on port 139 socket_addr = 0.0.0.0.
Error = Address already in use

I've done a 'netstat -a |grep 139' and port 139 is not in use.

Last edited by DukeNuke2; 12-09-2008 at 01:03 PM..
# 2  
Old 12-09-2008
do you have a "smb.conf" file? if yes, whats inside the file?
# 3  
Old 12-09-2008
Can you send us the result of:
Code:
ifconfig -a
/usr/sfw/sbin/smbd -V
cat /usr/local/samba/etc/smb.conf
cat /var/svc/log/application-smbd:default.log

If you compiled samba yourself, you'll need to substitute all of the appropriate path information, and send us the result of this, as well:
Code:
/usr/sfw/sbin/smbd -V

Need a bit more information before anyone can help you...
# 4  
Old 12-10-2008
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.100.91.6 netmask ffffff00 broadcast 10.100.91.255
ether 0:21:28:10:7c:20

# /usr/sfw/sbin/smbd -V
Version 3.0.28

# cat /etc/sfw/smb.conf
[global]

workgroup = UNIX
server string = Samba Server
hosts allow = all
log file = /var/log/samba/samba.log
max log size = 1000
security = user
encrypt passwords = yes
smb passwd file = /etc/sfw/private/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no

[spool]
comment = Spool
path = /spp/spool
write list = <username>

# cat /var/svc/log/application-smbd:default.log
[ Dec 9 15:47:48 Enabled. ]
[ Dec 9 15:47:48 Executing start method ("/lib/svc/method/smbd start") ]
[ Dec 9 15:47:48 Method "start" exited with status 0 ]
[ Dec 9 15:47:48 Rereading configuration. ]
[ Dec 9 15:47:48 No 'refresh' method defined. Treating as :true. ]
[ Dec 9 15:47:48 Stopping because all processes in service exited. ]
[ Dec 9 15:47:48 Executing stop method ("/lib/svc/method/smbd stop") ]
/lib/svc/method/smbd: kill: no such process
[ Dec 9 15:47:48 Method "stop" exited with status 1 ]
[ Dec 9 15:47:49 Executing stop method ("/lib/svc/method/smbd stop") ]
/lib/svc/method/smbd: kill: no such process
[ Dec 9 15:47:49 Method "stop" exited with status 1 ]
[ Dec 9 15:47:49 Executing stop method ("/lib/svc/method/smbd stop") ]
/lib/svc/method/smbd: kill: no such process
[ Dec 9 15:47:49 Method "stop" exited with status 1 ]
[ Dec 9 16:12:03 Leaving maintenance because disable requested. ]
[ Dec 9 16:12:03 Disabled. ]
[ Dec 9 16:12:16 Enabled. ]
[ Dec 9 16:12:16 Executing start method ("/lib/svc/method/smbd start") ]
[ Dec 9 16:12:16 Method "start" exited with status 0 ]
[ Dec 9 16:12:17 Stopping because all processes in service exited. ]
[ Dec 9 16:12:17 Executing stop method ("/lib/svc/method/smbd stop") ]
/lib/svc/method/smbd: kill: no such process
[ Dec 9 16:12:17 Method "stop" exited with status 1 ]
[ Dec 9 16:12:17 Executing stop method ("/lib/svc/method/smbd stop") ]
/lib/svc/method/smbd: kill: no such process
[ Dec 9 16:12:17 Method "stop" exited with status 1 ]
[ Dec 9 16:12:17 Executing stop method ("/lib/svc/method/smbd stop") ]
/lib/svc/method/smbd: kill: no such process
[ Dec 9 16:12:17 Method "stop" exited with status 1 ]
[ Dec 9 16:25:43 Leaving maintenance because disable requested. ]
[ Dec 9 16:25:43 Disabled. ]
[ Dec 9 16:29:18 Enabled. ]
[ Dec 9 16:29:18 Executing start method ("/lib/svc/method/smbd start") ]
[ Dec 9 16:29:18 Method "start" exited with status 0 ]
[ Dec 9 16:29:18 Stopping because all processes in service exited. ]
[ Dec 9 16:29:18 Executing stop method ("/lib/svc/method/smbd stop") ]
/lib/svc/method/smbd: kill: no such process
[ Dec 9 16:29:18 Method "stop" exited with status 1 ]
[ Dec 9 16:29:18 Executing stop method ("/lib/svc/method/smbd stop") ]
/lib/svc/method/smbd: kill: no such process
[ Dec 9 16:29:18 Method "stop" exited with status 1 ]
[ Dec 9 16:29:18 Executing stop method ("/lib/svc/method/smbd stop") ]
/lib/svc/method/smbd: kill: no such process
[ Dec 9 16:29:18 Method "stop" exited with status 1 ]
[ Dec 9 16:29:41 Leaving maintenance because disable requested. ]
[ Dec 9 16:29:41 Disabled. ]

I didn't compile it myself. It installed with the OS.
# 5  
Old 12-11-2008
Make sure that /usr/sfw/bin and /usr/sfw/sbin are on the root user's path.

Check you have the latest version of SAMBA installed:

root# /usr/sfw/sbin/smbd -V
Version 3.0.21b

This is the most recent version supported by Sun at this time. If you find you have an older version than the above then you should patch the system. The latest patch for SAMBA on Solaris 10 SPARC is 119757-04 and Solaris 10 x86 is 119758-04. If you have access to Sunsolve then Sun InfoDoc 80581 talks about this some more.

By default, all files create by the windows server in the Solaris directories shared by SAMBA will be owned by user nobody. If you want to change this then you can force the ownership to another user. I created a user evault in group other for this purpose. Make sure that the user you choose has permission to write to the directories in the file systems that you are sharing with SAMBA. You can use the user root if you wish.


Create an entry in the SAMBA user database for the user with the below command:

root# smbpasswd -a evault

Create the file /etc/sfw/smb.conf. Below is the /etc/sfw/smb.conf that I used. The SAM-FS file system was mounted as /ev_test and vaultstores was the subdirectory I wanted to share.

[global]
workgroup = EV-SAMFS
server string = Samba Server
log file = /var/adm/samba_log.%m
security = SHARE

[vaultstores]
comment = vaultstores
path = /ev_test/vaultstores
force user = evault
force group = other
read only = No
guest ok = Yes

It is not obvious, but the share is defined in the square brackets and is "vaultstores" in this case.

Note that once the file /etc/sfw/smb.conf exists SAMBA will start automatically when the system boots.

You should check the syntax of /etc/sfw/smb.conf using the command testparm. Assuming that all is well you can start SAMBA.
root# /etc/init.d/samba start
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Samba on Solaris 10

Somebody has installed samba 3.0.24 on (not only mine) a sun solaris 10. I can see the dir /usr/local/samba with all the files in, well I suppose that there are all its files in but, I can't see the file smb.conf that, reading various help on the net should be in dir /etc/samba or /etc. In this... (2 Replies)
Discussion started by: aemme
2 Replies

2. Solaris

How to stop samba on solaris 10?

Hello to everybody from Argentina. I need to stop samba because i need to fsck a filesystem How can i do this? I presume that the version is higher than 3.0. /usr/sfw/sbin/smbd -D This is the out of ps -ef | grep smbd. Thank you very much for your time i am a litle lost. The... (4 Replies)
Discussion started by: enkei17
4 Replies

3. Solaris

Configuring samba in solaris x-86

I just wanted to know if I can configure samba on solaris 10 x-86. I was just wondering if the samba is in-built software gets shipped with Operating System CD. I have searched a lot on many sites and forums but still not getting any way to make it. It would be really appreciable if some can... (1 Reply)
Discussion started by: naw_deepak
1 Replies

4. Solaris

installing samba on solaris 8

i am a rookie so please give every detail... i need help installing samba on my solaris 8 (intel) box so i can share with WXP box. i can get online, but can only see websites as outline\text form but managed to download "samba-latest.tar.z" is this correct? and what is next step to get it up and... (1 Reply)
Discussion started by: flir11
1 Replies

5. Solaris

Samba 3.0.14 on Solaris 10 issues

Hello All, I am facing a wierd problem with the Samba 3.0.14a on Solaris 10 and CUPS (1.1.12) printing. First of all am not sure if this combination works well. If someone could throw some light, it would be of great help. Samba is setup with security=server, and it is currently a member of... (0 Replies)
Discussion started by: Sapna
0 Replies

6. Solaris

Samba on Solaris 9, Sparc.

hi guys, This is prolly more of a dummies question, but here goes. I want to make my Ultra 5 workstation into a samba server. I have solaris 9 installed with the latest patch cluster. if I do: pkginfo | grep samba I get : # pkginfo | grep samba system SUNWsmbac ... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

7. Linux

samba for solaris 9 help!!

I'm trying to install samba-3.0.0, I downloaded it from samba.org. After extracting the tarball i cd into source and typed ./congifure and it's responding back like: checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C... (18 Replies)
Discussion started by: N0C717
18 Replies

8. IP Networking

how can I start and configure samba?

Well, that's my question, I'm looking for a tutorial or something to start & work with samba, any help would be much appericiated. (1 Reply)
Discussion started by: AshkanAlmaspour
1 Replies
Login or Register to Ask a Question