Sponsored Content
Operating Systems Solaris samba wouldn't start on solaris 10 Post 302266404 by soliberus on Wednesday 10th of December 2008 05:30:52 AM
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.
 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
smf_method(5)						Standards, Environments, and Macros					     smf_method(5)

NAME
smf_method - service management framework conventions for methods DESCRIPTION
The class of services managed by svc.startd(1M) in the service management framework, smf(5), consists of applications that fit a simple fork(2)-exec(2) model. The svc.startd(1M) master daemon and other restarters support the fork(2)-exec(2) model, potentially with additional capabilities. The svc.startd(1M) daemon and other restarters require that the methods which activate, manipulate, or examine a service instance follow the conventions described in this manual page. Invocation form The form of a method invocation is not dictated by convention. In some cases, a method invocation might consist of the direct invocation of the daemon or other binary executable that provides the service. For cases in which an executable script or other mediating executable is used, the convention recommends the form: /path/to/method_executable abbr_method_name The abbr_method_name used for the recommended form is a supported method such as start or stop. The set of methods supported by a restarter is given on the related restarter page. The svc.startd(1M) daemon supports start, stop, and refresh methods. A restarter might define other kinds of methods beyond those referenced in this page. The conventions surrounding such extensions are defined by the restarter and might not be identical to those given here. Environment Variables The restarter provides three environment variables to the method that determine the context in which the method is invoked. SMF_FMRI The service fault management resource identifier (FMRI) of the instance for which the method is invoked. SMF_METHOD The full method name of the method that is invoked SMF_RESTARTER The service FMRI of the restarter that invokes the method These variables should be removed from the environment prior to the invocation of any persistent process by the method. A convenience shell function, smf_clear_env, is given for service authors who use Bourne-compatible shell scripting to compose service methods in the include file described below. The method context may cause other environment variables to be set as described below. Method Tokens A set of tokens are parsed and expanded with appropriate values from the method invocation by the restarter svc.startd. Other restarters might not support method tokens. The delegated restarter for inet services, inetd(1M), does not support the following method expansions. %% % %r Name of the restarter, such as svc.startd %m Name of the method, such as start or stop %s Name of the service %i Name of the instance %f FMRI of the instance %{prop[:,]} Value(s) of a property. The prop might be a property FMRI, a property group name and a property name separated by a /, or a property name in the application property group. These values can be followed by a , (comma) or : (colon). If present, the separators are used to separate multiple values. If absent, a space is used. The following shell metacharacters encoun- tered in string values are quoted with a (backslash): ; & ( ) | ^ < > newline space tab " ' An invalid expansion constitutes method failure. Two explicit tokens can be used in the place of method commands. :kill [-signal] Sends the specified signal, which is SIGTERM by default, to all processes in the primary instance contract. Always returns SMF_EXIT_OK. This token should be used to replace common pkill invocations. :true Always returns SMF_EXIT_OK. This token should be used for methods that are required by the restarter but which are unneces- sary for the particular service implementation. Exiting and Exit Status The required behavior of a start method is to delay exiting until the service instance is ready to answer requests or is otherwise func- tional. The following exit status codes are defined in <libscf.h> and in the shell support file. SMF_EXIT_OK 0 Method exited, performing its operation successfully. SMF_EXIT_ERR_FATAL 95 Method failed fatally and is unrecoverable without admin- istrative intervention. SMF_EXIT_ERR_CONFIG 96 Unrecoverable configuration error. A common condition that returns this exit status is the absence of required configuration files for an enabled service instance. SMF_EXIT_MON_DEGRADE 97 Monitor assesses service instance as operating in a degraded mode. SMF_EXIT_MON_OFFLINE 98 Monitor assesses service instance as non-responsive and effectively offline. SMF_EXIT_ERR_NOSMF 99 Method has been mistakenly invoked outside the smf(5) facility. Services that depend on smf(5) capabilities should exit with this status value. SMF_EXIT_ERR_PERM 100 Method requires a form of permission such as file access, privilege, authoriza- tion, or other credential that is not available when invoked. SMF_EXIT_ERR_OTHER non-zero Any non-zero exit status from a method is treated as an unknown error. A series of unknown errors can be diag- nosed as a fault by the restarter or on behalf of the restarter. Use of a precise exit code allows the responsible restarter to categorize an error response as likely to be intermittent and worth pursuing restart or permanent and request administrative intervention. Timeouts Each method can have an independent timeout, given in seconds. The choice of a particular timeout should be based on site expectations for detecting a method failure due to non-responsiveness. Sites with replicated filesystems or other failover resources can elect to lengthen method timeouts from the default. Sites with no remote resources can elect to shorten the timeouts. Method timeout is specified by the timeout_seconds property. Shell Programming Support A set of environment variables that define the above exit status values is provided with convenience shell functions in the file /lib/svc/share/smf_include.sh. This file is a Bourne shell script suitable for inclusion via the source operator in any Bourne-compatible shell. To assist in the composition of scripts that can serve as SMF methods as well as /etc/init.d scripts, the smf_present() shell function is provided. If the smf(5) facility is not available, smf_present() returns a non-zero exit status. One possible structure for such a script follows: if smf_present; then # Shell code to run application as managed service .... smf_clear_env else # Shell code to run application as /etc/init.d script .... fi This example shows the use of both convenience functions that are provided. Method Context The service management facility offers a common mechanism set the context in which the fork(2)-exec(2) model services execute. The desired method context should be provided by the service developer. All service instances should run with the lowest level of privi- leges possible to limit potential security compromises. A method context may contain the following properties: use_profile A boolean that specifies whether the profile should be used instead of the user, group, privileges, and limit_priv- ileges properties. environment Environment variables to insert into the environment of the method, in the form of a number of NAME=value strings. profile The name of an RBAC (role-based access control) profile which, along with the method executable, identifies an entry in exec_attr(4). user The user ID in numeric or text form. group The group ID in numeric or text form. supp_groups An optional string that specifies the supplemental group memberships by ID, in numeric or text form. privileges An optional string specifying the privilege set as defined in privileges(5). limit_privileges An optional string specifying the limit privilege set as defined in privileges(5). working_directory The home directory from which to launch the method. :home can be used as a token to indicate the home directory of the user whose uid will be used to launch the method. If the property is unset, :home is used. corefile_pattern An optional string that specifies the corefile pattern to use for the service, as per coreadm(1M). Most restarters supply a default. Setting this property overrides local customizations to the global core pattern. project The project ID in numeric or text form. :default can be used as a token to indicate a project identified by getde- faultproj(3PROJECT) for the user whose uid is used to launch the method. resource_pool The resource pool name on which to launch the method. :default can be used as a token to indicate the pool speci- fied in the project(4) entry given in the project attribute above. The method context can be set for the entire service instance by specifying a method_context property group for the service or instance. A method might override the instance method context by providing the method context properties on the method property group. Invalid method context settings always lead to failure of the method, with the exception of invalid environment variables that issue warn- ings. In addition to the context defined above, many fork(2)-exec(2) model restarters also use the following conventions when invoking executa- bles as methods: Argument array The arguments in argv[] are set consistently with the result /bin/sh -c of the exec string. File descriptors File descriptor 0 is /dev/null. File descriptors 1 and 2 are recommended to be a per-service log file. FILES
/lib/svc/share/smf_include.sh Definitions of exit status values. /usr/include/libscf.h Definitions of exit status codes. SEE ALSO
coreadm(1M), inetd(1M), svccfg(1M), svc.startd(1M), exec(2), fork(2), getdefaultproj(3PROJECT), exec_attr(4), project(4), service_bun- dle(4), attributes(5), privileges(5), rbac(5), smf(5), smf_bootstrap(5) NOTES
The present version of smf(5) does not support multiple repositories. SunOS 5.10 2 Dec 2004 smf_method(5)
All times are GMT -4. The time now is 04:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy