Solaris 10 logadm

I'm having a problem with log rotation. I have my authentication failures setup to log to /var/log/auth.messages in syslog.conf. Thats all been working well. However,the file was getting large so I decided to configure log roation. In my /etc/logadm.conf I have entered the following.
/var/log/auth.messages -C 5 -s 3m
I then ran logadm and the system appended a 0 to /var/log/auth.messages (/var/log/auth.messages.0) and created a new /var/log/auth.messages file.
So far so good. The problem is that nothing gets written to the new log file, everything still goes to the original messages file which is now called /var/log/auth.messages.0. So nothing is getting written to /var/log/auth.messages. I was only able to get the system to log to the new file by running svcadm refresh system-log. My understanding is that this is supposed to be done automatically when the logadm command is run. If I'm correct, the following line in logadm.conf should be doing this.
/var/log/syslog -C 8 -P 'Tue Jul 15 07:10:00 2008' -a 'kill -HUP `cat /var/run/syslog.pid`'
Anyone have any ideas?

Nope, the /var/log/syslog line you quote tells it to rotate /var/adm/syslog and hup syslogd when it does so.
It has no effect on what happens when your file is rotated.
So your line should be
/var/log/auth.messages -C 5 -s 3m -a 'kill -HUP `cat /var/run/syslog.pid`'

Similar Messages

  • Pros and Cons of using logrot.pl over Solaris logadm utility for LMS v3.2

    All,
    I've been going back and forth with development on a way of best leveraging a log rotation capability in our newly deployed LMS 3.2 rollout on Solaris 10.
    My issue:
    As of now, we use the services facility built into Solaris to start/stop the syslog service and logrotate (via logadm) our LMS log file (syslog_info) on a weekly basis.  I added an argument in logadm to HUP the syslogd service which I think resets the file pointer and/or forces syslogd service to re-read the syslog.conf file. The problem with this setup is that in order for me to logrotate, I additionally have to stop and start a whole chain of processes so that the LMS application can carry on its duties of collecting and analyzing this data.  So what I would have to do without drilling down a lenghty process dependencies is to stop/restart LMS which I really dislike doing for a small part of the entire application suite.
    Cisco TAC recommends that insead of using logadm, that we should use logrot.pl which I have used in the past on a limited basis.  TAC informs me that this will essentially logrotate and stop/start the LMS as well but what I haven't been able to get out of them is how this script deals with the syslog service. I looked over the code but didn't see any reference to the actual syslog service.
    In summary, I need to know:
    1) why is logrot.pl preferred over logadm.
    2) how does logrot.pl handle the syslog service.
    Your feedback would be most appreciated...
    Michael

    The main advantage of logrot is that it rotates the file in place without modifying the inode number.  It also hass some Daemon Manager knowledge built in.  With syslog_info, logadm is perfectly fine provided you use the "-c" argument to logadm.  This will do an in-place rotation, and no daemons will need to be restarted.

  • Ldap in solaris 11-11-11

    Does ldap works in solaris 11 ?
    I am configuring a solaris 11 system to connect with ldap. But i am finding out that the configuration files "nsswitch.conf" cant be edit. edits will be lost.
    Can you help me seting up the ldap client on this system "solaris11 x86 11-11-11"
    Our ldap server is a solaris 10 sparc.
    Thank-you

    I didn't have the problem in solaris 11.11.11
    However i have this problem is solaris 11.11.11.1
    In solaris 5.11 11.1
    the ldap client is in maintanance mode
    i disable the ldap client,
    enable it..
    still goes in maintenance mode
    I dont understand what is going on.
    # svcs
    STATE STIME FMRI
    legacy_run 13:29:11 lrc:/etc/rc2_d/S40llc2
    legacy_run 13:29:11 lrc:/etc/rc2_d/S47pppd
    legacy_run 13:29:11 lrc:/etc/rc2_d/S81dodatadm_udaplt
    legacy_run 13:29:11 lrc:/etc/rc2_d/S89PRESERVE
    disabled 13:29:00 svc:/system/tsol-zones:default
    online 13:28:51 svc:/system/early-manifest-import:default
    online 13:28:51 svc:/system/svc/restarter:default
    online 13:28:53 svc:/network/sctp/congestion-control:cubic
    online 13:28:53 svc:/network/sctp/congestion-control:vegas
    online 13:28:53 svc:/network/tcp/congestion-control:newreno
    online 13:28:53 svc:/network/tcp/congestion-control:vegas
    online 13:28:53 svc:/network/tcp/congestion-control:highspeed
    online 13:28:53 svc:/network/tcp/congestion-control:cubic
    online 13:28:53 svc:/network/sctp/congestion-control:newreno
    online 13:28:53 svc:/network/sctp/congestion-control:highspeed
    online 13:28:54 svc:/network/netcfg:default
    online 13:28:54 svc:/network/tnctl:default
    online 13:28:54 svc:/network/socket-config:default
    online 13:28:54 svc:/network/smb:default
    online 13:28:54 svc:/system/metainit:default
    online 13:28:55 svc:/network/datalink-management:default
    online 13:28:55 svc:/system/filesystem/root:default
    online 13:28:55 svc:/system/resource-controls:default
    online 13:28:55 svc:/system/scheduler:default
    online 13:28:56 svc:/system/cryptosvc:default
    online 13:28:56 svc:/network/ipsec/ipsecalgs:default
    online 13:28:56 svc:/system/boot-archive:default
    online 13:28:56 svc:/system/name-service/upgrade:default
    online 13:28:58 svc:/network/ip-interface-management:default
    online 13:28:58 svc:/network/loopback:default
    online 13:28:58 svc:/network/ipmp:default
    online 13:28:59 svc:/system/filesystem/usr:default
    online 13:28:59 svc:/system/pfexec:default
    online 13:28:59 svc:/system/device/local:default
    online 13:28:59 svc:/system/devchassis:cleanstart
    online 13:29:00 svc:/system/filesystem/minimal:default
    online 13:29:00 svc:/system/vbiosd:default
    online 13:29:00 svc:/system/metasync:default
    online 13:29:00 svc:/system/logadm-upgrade:default
    online 13:29:00 svc:/system/rmtmpfiles:default
    online 13:29:00 svc:/system/pkgserv:default
    online 13:29:00 svc:/network/uucp-lock-cleanup:default
    online 13:29:00 svc:/system/security/security-extensions:default
    online 13:29:00 svc:/system/rbac:default
    online 13:29:00 svc:/system/hostid:default
    online 13:29:00 svc:/system/environment:init
    online 13:29:00 svc:/system/ca-certificates:default
    online 13:29:00 svc:/system/utmp:default
    online 13:29:00 svc:/system/resource-mgmt:default
    online 13:29:00 svc:/system/filesystem/uvfs-instclean:default
    online 13:29:00 svc:/system/zones-monitoring:default
    online 13:29:00 svc:/application/opengl/ogl-select:default
    online 13:29:00 svc:/application/desktop-cache/docbook-style-xsl-update:default
    online 13:29:00 svc:/system/postrun:default
    online 13:29:00 svc:/milestone/unconfig:default
    online 13:29:00 svc:/milestone/config:default
    online 13:29:00 svc:/application/desktop-cache/mime-types-cache:default
    online 13:29:01 svc:/application/desktop-cache/pixbuf-loaders-installer:default
    online 13:29:01 svc:/application/desktop-cache/input-method-cache:default
    online 13:29:01 svc:/system/dbus:default
    online 13:29:01 svc:/system/sysevent:default
    online 13:29:01 svc:/application/desktop-cache/desktop-mime-cache:default
    online 13:29:01 svc:/system/devfsadm:default
    online 13:29:01 svc:/application/desktop-cache/gconf-cache:default
    online 13:29:01 svc:/network/npiv_config:default
    online 13:29:01 svc:/system/manifest-import:default
    online 13:29:01 svc:/system/device/fc-fabric:default
    online 13:29:01 svc:/system/rad:local
    online 13:29:01 svc:/milestone/devices:default
    online 13:29:01 svc:/system/coreadm:default
    online 13:29:01 svc:/system/config-user:default
    online 13:29:01 svc:/system/timezone:default
    online 13:29:01 svc:/network/physical:upgrade
    online 13:29:01 svc:/system/device/audio:default
    online 13:29:01 svc:/network/location:upgrade
    online 13:29:02 svc:/application/desktop-cache/docbook-dtds-update:default
    online 13:29:03 svc:/application/desktop-cache/docbook-style-dsssl-update:default
    online 13:29:03 svc:/system/keymap:default
    online 13:29:04 svc:/network/physical:default
    online 13:29:04 svc:/system/identity:node
    online 13:29:05 svc:/system/picl:default
    online 13:29:05 svc:/network/ipsec/policy:default
    online 13:29:05 svc:/network/location:default
    online 13:29:05 svc:/milestone/network:default
    online 13:29:05 svc:/network/iptun:default
    online 13:29:05 svc:/network/nis/domain:default
    online 13:29:05 svc:/system/fcoe_initiator:default
    online 13:29:05 svc:/network/dns/client:default
    online 13:29:05 svc:/system/identity:domain
    online 13:29:05 svc:/milestone/single-user:default
    online 13:29:05 svc:/network/initial:default
    online 13:29:05 svc:/network/nfs/fedfs-client:default
    online 13:29:05 svc:/network/service:default
    online 13:29:05 svc:/network/netmask:default
    online 13:29:05 svc:/network/iscsi/initiator:default
    online 13:29:06 svc:/system/auditset:default
    online 13:29:06 svc:/system/filesystem/local:default
    online 13:29:06 svc:/system/cron:default
    online 13:29:06 svc:/system/boot-loader-update:default
    online 13:29:06 svc:/system/filesystem/ufs/quota:default
    online 13:29:07 svc:/network/shares:default
    online 13:29:07 svc:/system/power:default
    online 13:29:07 svc:/system/consolekit:default
    online 13:29:08 svc:/system/boot-archive-update:default
    online 13:29:09 svc:/application/desktop-cache/icon-cache:default
    online 13:29:09 svc:/system/hal:default
    online 13:29:09 svc:/network/rpc/bind:default
    online 13:29:09 svc:/network/routing/ndp:default
    online 13:29:09 svc:/system/filesystem/rmvolmgr:default
    online 13:29:09 svc:/network/nfs/status:default
    online 13:29:09 svc:/network/routing-setup:default
    online 13:29:09 svc:/network/inetd:default
    online 13:29:09 svc:/network/nfs/nlockmgr:default
    online 13:29:10 svc:/application/font/fc-cache:default
    online 13:29:10 svc:/network/rpc/gss:default
    online 13:29:10 svc:/network/rpc/smserver:default
    online 13:29:10 svc:/application/x11/xvnc-inetd:default
    online 13:29:10 svc:/network/security/ktkt_warn:default
    online 13:29:10 svc:/network/rpc/cde-ttdbserver:tcp
    online 13:29:10 svc:/network/rpc/cde-calendar-manager:default
    online 13:29:10 svc:/system/filesystem/autofs:default
    online 13:29:10 svc:/application/cups/scheduler:default
    online 13:29:10 svc:/system/dumpadm:default
    online 13:29:10 svc:/network/ssh:default
    online 13:29:10 svc:/milestone/self-assembly-complete:default
    online 13:29:11 svc:/system/system-log:default
    online 13:29:11 svc:/application/pkg/update:default
    online 13:29:11 svc:/system/auditd:default
    online 13:29:11 svc:/system/console-login:default
    online 13:29:11 svc:/system/vtdaemon:default
    online 13:29:11 svc:/system/console-login:vt4
    online 13:29:11 svc:/system/console-login:vt3
    online 13:29:11 svc:/system/console-login:vt2
    online 13:29:11 svc:/system/console-login:vt6
    online 13:29:11 svc:/system/console-login:vt5
    online 13:29:11 svc:/milestone/multi-user:default
    online 13:29:11 svc:/application/man-index:default
    online 13:29:11 svc:/application/graphical-login/gdm:default
    online 13:29:11 svc:/milestone/multi-user-server:default
    online 13:29:11 svc:/system/intrd:default
    online 13:29:11 svc:/system/zones:default
    online 13:29:11 svc:/system/zones-install:default
    online 13:29:12 svc:/application/stosreg:default
    online 13:29:12 svc:/system/boot-config:default
    online 13:29:15 svc:/system/fmd:default
    online 13:29:15 svc:/system/fm/smtp-notify:default
    online 13:29:16 svc:/system/fm/asr-notify:default
    online 13:29:25 svc:/system/devchassis:daemon
    online 13:29:32 svc:/network/ilomconfig-interconnect:default
    online 13:29:32 svc:/system/ocm:default
    online 13:29:41 svc:/system/console-reset:default
    online 13:29:53 svc:/application/texinfo-update:default
    online 13:58:19 svc:/system/name-service/switch:default
    online 13:58:19 svc:/milestone/name-services:default
    online 13:58:19 svc:/network/sendmail-client:default
    online 13:58:19 svc:/network/smtp:sendmail
    online 13:58:19 svc:/network/nfs/client:default
    online 13:58:35 svc:/system/name-service/cache:default
    maintenance 13:38:48 svc:/network/ldap/client:default
    Edited by: 1502 on Dec 5, 2012 2:45 PM

  • Logadm and HUP

    Question -
    The default logadm.conf in Solaris 10 still has 'kill -HUP' as the means to restart syslog. With the new SMF facilities, is it still preferred to restart syslog in this fashion rather than use the svcadm restart system-log?

    I would stick with 'kill -HUP'. If not else its somewhat faster as its not a full restart (it only re-reads syslog.conf and re-opens the logfiles), a full restart with svcadm will probably take a little bit longer, during which you may loose messages.
    .7/M.

  • Logical interface in solaris 10

    Hi there,
    I need to configure logical interface in a solaris 10 3/05 server. After reading the Solaris 10 IP services manual, I am not quite sure what to do. All the examples and explanation are about using the new subcommand addif of ifconfig. It was not clear in the documentation if the setting logical interfaces via addif will persist across boot.
    Can one still configure logical interface in Solaris 10 in a more traditional way like in Solaris 8? In an Solaris 8 server I will do the following.
    Let's assume I want to configure in a solaris 8 server a logical interface named hme0:1 with IP address 192.168.20.28 with netmask 255.255.255.0 for hostname host001
    # cat /etc/hostname.hme0:1
    host001
    ^D
    # echo "192.168.20.28 host001" >> /etc/inet/hosts
    # echo "192.168.20.0 255.255.255.0" >> /etc/inet/netmasks
    # reboot -- -r
    Can one still do that in solaris 10 3/05 server?

    Hi there,
    I need to configure logical interface in a solaris 10
    3/05 server. After reading the Solaris 10 IP services
    manual, I am not quite sure what to do. All the
    examples and explanation are about using the new
    subcommand addif of ifconfig. It was not clear in the
    documentation if the setting logical interfaces via
    addif will persist across boot.No. No 'ifconfig' command is persistent.
    Can one still configure logical interface in Solaris
    10 in a more traditional way like in Solaris 8? In an
    Solaris 8 server I will do the following.
    Let's assume I want to configure in a solaris 8
    server a logical interface named hme0:1 with IP
    address 192.168.20.28 with netmask 255.255.255.0 for
    hostname host001
    # cat /etc/hostname.hme0:1
    host001
    ^D
    # echo "192.168.20.28 host001" >> /etc/inet/hosts
    # echo "192.168.20.0 255.255.255.0" >>
    /etc/inet/netmasks
    # reboot -- -r
    Can one still do that in solaris 10 3/05 server?Absolutely.
    You don't need to reboot (you can run ifconfig for this boot and let the files do the work next time) and the -r doesn't do anything with interfaces (expecially virtual interfaces) anyway.
    Darren

  • Installation problem on Solaris

    I am trying to install sun one 7.0 on Solaris 8. The install is failing with this error:
    ERROR - library load failed with following error: Can't load library: /opt/SUNWappserver7/lib/libinstallCore.so
    INFO - End core server uninstallation
    anyone know what causes this??
    cheers

    Looks like Solaris package installation failed and installer reverted to uninstallation sequence. For low level pkgadd log please check /var/sadm/install/logs/Sun_ONE_Application_Server_install.B<timestamp> file (timestamp is date and time of your installation attempt in mmddHHMM format).
    Look for any errors in this file. Most likely thing that could have happened is that the installation of Java Help (SUNWjhrt) package failed because you didn't have existing package based J2SE installation on the system. If that's the case, workaround is to either preinstall package based J2SE installation or to selected option to install bundled J2SE that comes with application server.

  • Installation problem on Solaris 10

    Dear All,
    We are trying to install j2sdk 1.4.2_13 on solaris server zone. I have downloaded j2sdk-1_4_2_13-nb-5_0-solsparc-ml.bin
    But when I try to execute this:
    #./j2sdk-1_4_2_13-nb-5_0-solsparc-ml.bin
    It gives me error: The installer is unable to run in graphical mode. Try running the installer with the -console or -silent flag
    Tried with -console:
    The wizard cannot continue because of the following error: Invalid command line option: console is not supported (10
    01) (403)
    WARNING: could not delete temporary file /tmp/ismp001/2599368
    WARNING: could not delete temporary file /tmp/ismp001/6183226
    WARNING: could not delete temporary file /tmp/ismp001/1222839
    Then tried with -silent:
    This time command just completed w/o any output at all.
    Please suggest what can I do?
    regards, Sean.

    Dear Siddhesh,
    Thanks for your reply.
    I tried using X Manager GUI for my Solaris. But when I double click the j2sdk-1_4_2_13-nb-5_0-solsparc-ml.bin file to run it, it simply denies saying:
    The filename "j2sdk-1_4_2_13-nb-5_0-solsparc-ml.bin" indicates that this file is of type "Unknown type". The contents of the file indicate that the file is of type "Shell script". If you open this file, the file might present a security risk to your system.
    Do not open the file unless you created the file yourself, or received the file from a trusted source. To open the file, rename the file to the correct extension for "Shell script", then open the file normally. Alternatively, use the Open With menu to choose a specific application for the file.
    Also /tmp has full authorizations:
    drwxrwxrwt   7 root     sys          557 Jun 24 08:34 tmp
    I dont have Hummingbird for X11 forwarding with this client. Do I have any other option??
    regards, Sean.

  • New to Solaris, Some Samba and NTFS issues.

    Hi Im new to solaris and trying out ZFS which has been great.
    Im haivng some trouble that I cant find up to date info on so here goes:
    First how do you mount an NTFS volume in Solaris 11 Express?
    I need to access the data on an NTFS drive to populate my new ZFS tank.
    Secondly, I have read only access on my samba shares from windows machines but my smb.conf looks right. a copy of my smb.conf will follow
    Any suggestions would be appreciated.
    # This is the main Samba configuration file. You should read the
    # smb.conf(5) manual page in order to understand the options listed
    # here. Samba has a huge number of configurable options (perhaps too
    # many!) most of which are not shown in this example
    # For a step to step guide on installing, configuring and using samba,
    # read the Samba-HOWTO-Collection. This may be obtained from:
    # http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
    # Many working examples of smb.conf files can be found in the
    # Samba-Guide which is generated daily and can be downloaded from:
    # http://www.samba.org/samba/docs/Samba-Guide.pdf
    # Any line which starts with a ; (semi-colon) or a # (hash)
    # is a comment and is ignored. In this example we will use a #
    # for commentry and a ; for parts of the config file that you
    # may wish to enable
    # NOTE: Whenever you modify this file you should run the command "testparm"
    # to check that you have not made any basic syntactic errors.
    #======================= Global Settings =====================================
    [global]
    # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
    workgroup = WORKGROUP
    # server string is the equivalent of the NT Description field
    server string = Samba Server
    # Security mode. Defines in which mode Samba will operate. Possible
    # values are share, user, server, domain and ads. Most people will want
    # user level security. See the Samba-HOWTO-Collection for details.
    security = share
    # This option is important for security. It allows you to restrict
    # connections to machines which are on your local network. The
    # following example restricts access to two C class networks and
    # the "loopback" interface. For more examples of the syntax see
    # the smb.conf man page
    ; hosts allow = 192.168.1. 192.168.2. 127.
    # If you want to automatically load your printer list rather
    # than setting them up individually then you'll need this
    load printers = yes
    # you may wish to override the location of the printcap file
    ; printcap name = /etc/printcap
    # on SystemV system setting printcap name to lpstat should allow
    # you to automatically obtain a printer list from the SystemV spool
    # system
    ; printcap name = lpstat
    # It should not be necessary to specify the print system type unless
    # it is non-standard. Currently supported print systems include:
    # bsd, cups, sysv, plp, lprng, aix, hpux, qnx
    ; printing = cups
    # Uncomment this if you want a guest account, you must add this to /etc/passwd
    # otherwise the user "nobody" is used
    ; guest account = pcguest
    # this tells Samba to use a separate log file for each machine
    # that connects
    log file = /var/samba/log/log.%m
    # Put a capping on the size of the log files (in Kb).
    max log size = 50
    # Use password server option only with security = server
    # The argument list may include:
    # password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
    # or to auto-locate the domain controller/s
    # password server = *
    ; password server = <NT-Server-Name>
    # Use the realm option only with security = ads
    # Specifies the Active Directory realm the host is part of
    ; realm = MY_REALM
    # Backend to store user information in. New installations should
    # use either tdbsam or ldapsam. smbpasswd is available for backwards
    # compatibility. tdbsam requires no further configuration.
    passdb backend = smbpasswd
    # Using the following line enables you to customise your configuration
    # on a per machine basis. The %m gets replaced with the netbios name
    # of the machine that is connecting.
    # Note: Consider carefully the location in the configuration file of
    # this line. The included file is read at that point.
    ; include = /usr/sfw/lib/smb.conf.%m
    # Configure Samba to use multiple interfaces
    # If you have multiple network interfaces then you must list them
    # here. See the man page for details.
    ; interfaces = 192.168.12.2/24 192.168.13.2/24
    # Browser Control Options:
    # set local master to no if you don't want Samba to become a master
    # browser on your network. Otherwise the normal election rules apply
    ; local master = no
    # OS Level determines the precedence of this server in master browser
    # elections. The default value should be reasonable
    ; os level = 33
    # Domain Master specifies Samba to be the Domain Master Browser. This
    # allows Samba to collate browse lists between subnets. Don't use this
    # if you already have a Windows NT domain controller doing this job
    ; domain master = yes
    # Preferred Master causes Samba to force a local browser election on startup
    # and gives it a slightly higher chance of winning the election
    ; preferred master = yes
    # Enable this if you want Samba to be a domain logon server for
    # Windows95 workstations.
    ; domain logons = yes
    # if you enable domain logons then you may want a per-machine or
    # per user logon script
    # run a specific logon batch file per workstation (machine)
    ; logon script = %m.bat
    # run a specific logon batch file per username
    ; logon script = %U.bat
    # Where to store roving profiles (only for Win95 and WinNT)
    # %L substitutes for this servers netbios name, %U is username
    # You must uncomment the [Profiles] share below
    ; logon path = \\%L\Profiles\%U
    # Windows Internet Name Serving Support Section:
    # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
    ; wins support = yes
    # WINS Server - Tells the NMBD components of Samba to be a WINS Client
    #     Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
    ; wins server = w.x.y.z
    # WINS Proxy - Tells Samba to answer name resolution queries on
    # behalf of a non WINS capable client, for this to work there must be
    # at least one     WINS Server on the network. The default is NO.
    ; wins proxy = yes
    # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
    # via DNS nslookups. The default is NO.
    dns proxy = no
    # These scripts are used on a domain controller or stand-alone
    # machine to add or delete corresponding unix accounts
    ; add user script = /usr/sbin/useradd %u
    ; add group script = /usr/sbin/groupadd %g
    ; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
    ; delete user script = /usr/sbin/userdel %u
    ; delete user from group script = /usr/sbin/deluser %u %g
    ; delete group script = /usr/sbin/groupdel %g
    #============================ Share Definitions ==============================
    [homes]
    comment = Home Directories
    browseable = no
    writable = yes
    # Un-comment the following and create the netlogon directory for Domain Logons
    ; [netlogon]
    ; comment = Network Logon Service
    ; path = /usr/sfw/lib/netlogon
    ; guest ok = yes
    ; writable = no
    ; share modes = no
    # Un-comment the following to provide a specific roving profile share
    # the default is to use the user's home directory
    ;[Profiles]
    ; path = /usr/local/samba/profiles
    ; browseable = no
    ; guest ok = yes
    # NOTE: If you have a BSD-style print system there is no need to
    # specifically define each individual printer
    [printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = no
    # Set public = yes to allow user 'guest account' to print
    guest ok = no
    writable = no
    printable = yes
    # This one is useful for people to share files
    ;[tmp]
    ; comment = Temporary file space
    ; path = /tmp
    ; read only = no
    ; public = yes
    # A publicly accessible directory, but read only, except for people in
    # the "staff" group
    ;[public]
    ; comment = Public Stuff
    ; path = /home/samba
    ; public = yes
    ; writable = no
    ; printable = no
    ; write list = @staff
    # Other examples.
    # A private printer, usable only by fred. Spool data will be placed in fred's
    # home directory. Note that fred must have write access to the spool directory,
    # wherever it is.
    ;[fredsprn]
    ; comment = Fred's Printer
    ; valid users = fred
    ; path = /homes/fred
    ; printer = freds_printer
    ; public = no
    ; writable = no
    ; printable = yes
    # A private directory, usable only by fred. Note that fred requires write
    # access to the directory.
    ;[fredsdir]
    ; comment = Fred's Service
    ; path = /usr/somewhere/private
    ; valid users = fred
    ; public = no
    ; writable = yes
    ; printable = no
    # a service which has a different directory for each machine that connects
    # this allows you to tailor configurations to incoming machines. You could
    # also use the %U option to tailor it by user name.
    # The %m gets replaced with the machine name that is connecting.
    ;[pchome]
    ; comment = PC Directories
    ; path = /usr/pc/%m
    ; public = no
    ; writable = yes
    # A publicly accessible directory, read/write to all users. Note that all files
    # created in the directory by users will be owned by the default user, so
    # any user with access can delete any other user's files. Obviously this
    # directory must be writable by the default user. Another user could of course
    # be specified, in which case all files would be owned by that user instead.
    ;[public]
    ; path = /usr/somewhere/else/public
    ; public = yes
    ; only guest = yes
    ; writable = yes
    ; printable = no
    # The following two entries demonstrate how to share a directory so that two
    # users can place files there that will be owned by the specific users. In this
    # setup, the directory should be writable by both users and should have the
    # sticky bit set on it to prevent abuse. Obviously this could be extended to
    # as many users as required.
    ;[myshare]
    ; comment = Mary's and Fred's stuff
    ; path = /usr/somewhere/shared
    ; valid users = mary fred
    ; public = no
    ; writable = yes
    ; printable = no
    ; create mask = 0765
    [Series]
    comment = TV Series
    path = /home/Kirby/Series
    public = yes
    only guest = yes
    writable = yes
    printable = no

    875739 wrote:
    Hi Im new to solaris and trying out ZFS which has been great.
    Im haivng some trouble that I cant find up to date info on so here goes:
    First how do you mount an NTFS volume in Solaris 11 Express?
    I need to access the data on an NTFS drive to populate my new ZFS tank.I never had a need for it but I think you'll have to compile fuse ntfs-3g manually.
    http://web.archiveorange.com/archive/v/u46DbWSGcIzl7pexf4hQ
    >
    Secondly, I have read only access on my samba shares from windows machines but my smb.conf looks right. a copy of my smb.conf will follow
    Any suggestions would be appreciated.You don't need to use Samba in Solaris 11 Express.
    http://download.oracle.com/docs/cd/E19963-01/html/821-1448/gaynd.html#gayne

  • Error while creating a Solaris Resource

    I got the following error while creating the following solaris resource:
    Test connection failed for resource(s):
    Solaris: Script failed waiting for "ASSWORD:" in response "_,)#+(:" ==> com.waveset.util.WavesetException: Script processor timed out with nothing to read and the following unprocessed text: "_,)#+(:".\n
    I have the sudo permissions for the following commands:
    (ALL) NOPASSWD: /usr/bin/auths, /usr/sbin/groupadd, /usr/sbin/groupdel, /usr/sbin/groupmod, /usr/bin/last, /usr/bin/listusers, /usr/bin/logins, /usr/bin/passwd, /usr/bin/profiles, /usr/bin/roles, /usr/sbin/useradd, /usr/sbin/userdel, /usr/sbin/usermod, /usr/bin/ypmatch, /usr/bin/ypcat, /usr/bin/ypasswd, /usr/bin/awk, /usr/bin/cat, /usr/bin/chmod, /usr/bin/chown, /usr/bin/cp, /usr/bin/cut, /usr/bin/diff, /usr/bin/echo, /usr/bin/grep, /usr/bin/ls, /usr/bin/mv, /usr/bin/rm, /usr/bin/sleep, /usr/bin/sort, /usr/bin/tail, /usr/bin/touch, /usr/bin/which
    Please let me know what could be the problem?

    This doesn't look like a Sun Directory Server issue. You may want to post this to another forum.
    Regards,
    Ludovic.

  • Error ora-15081 (and several others) while creating a new db in Solaris

    Hi all,
    OS: Solaris 11
    DB: 11.2.0.3.5 (2 node rac)
    While creating a new db on a Solaris 11 env, via dbca, the following stack error appeared to me:
    ORA-19624: operation failed, retry possible
    ORA-19870: error while restoring backup piece path[...]
    ORA-19504: failed to create file "+MYDG"
    ORA-00372: file cannot be modified at this time
    ORA-15196: invalid ASM block header [kfc.c:19572] [1] [257] [0 != 821602346]
    ORA-15081: failed to submit an I/O operation to a disk
    ORA-15066: offlining disk "dsk_0001" in group "MYDG" may result in data loss
    ORA-06512: at SYS.X$DBMS_BACKUP_RESTORE, line5827The dbca (ran as oracle user) aborts at 15%.
    There are a lot of errors in this stack, and i'm not pretty sure which error is the main cause of this issue, but I think it's the "ORA-15081: failed to submit an I/O operation to a disk" that is the bad guy here. I did some researches and found that some possible sollutions:
    1) One said that this error might be caused by bad permissions on the raw devices used in the "MYDG" diskgroup (i'm using 6 devices with external redundancy), but my devices are all with the grid:asmadmin and 660 permissions
    2) Another said that this might be a problem with the owner:group of the oracle binaries. In ny installation the oracle binaries ($ORACLE_HOME/bin) are with the oracle:oinstall. I thougth of addind the asmadmin group to the oracle user, but i'm not sure what are the implications of this change. What do you thing?
    What am I doing wrong and how can i solve it?
    Thanks in advance for your pacience and attention.

    Here follows the output:
    NAME                           MOUNT_S     HEADER_STATU MODE_ST STATE    GROUP_NUMBER PATH
    DG02HML_0000                   CACHED  MEMBER       ONLINE  NORMAL              3 /dev/rdsk/c0t60060E8005487F000000487F000                                                                                  00500d0s0
    DG02HML_0001                   CACHED  MEMBER       ONLINE  NORMAL              3 /dev/rdsk/c0t60060E8005487F000000487F000                                                                                  00502d0s0
    DG02HML_0002                   CACHED  MEMBER       ONLINE  NORMAL              3 /dev/rdsk/c0t60060E8005487F000000487F000                                                                                 00504d0s0
    DG02HML_0003                   CACHED  MEMBER       ONLINE  NORMAL              3 /dev/rdsk/c0t60060E8005487F000000487F000                                                                               00506d0s0
    DG02HML_0004                   CACHED  MEMBER       ONLINE  NORMAL              3 /dev/rdsk/c0t60060E8005487F000000487F000                                                                                  00508d0s0
    DG02HML_0005                   CACHED  MEMBER       ONLINE  NORMAL              3 /dev/rdsk/c0t60060E8005487F000000487F000                                                                                  0050Ad0s0

  • How to create HP LaserJet 2420 printer queue on Solaris 10

    Hi Solaris Gurus,
    I am having difficulty creating a printer queue for HP LaserJet 2420 on Solaris 10 (11/9) Sparc (Sun Fire T5220) server. A popular method used is with hppi (HP Jet Direct) tool but it does not have the exact printer driver and alternative printer drivers (e.g. HP LaserJet 4 / 4M, HP LaserJet 2000 series) resulted in only part of the text occupying the wrong side of an A5 page.
    An alternative approach that has worked in the past for simple default paper tray 2 (single paper tray), with tray 1 reserved for manual feed. This method involves creating a working printer queue on a Windows workstation (XP) / server (2000) with the correct driver and having configured to support Unix printing to receive LPR request from Unix systems in general. A remote printer queue would then be defined on Solaris 10 system which points to the Windows system. However, the printing jobs kept going to tray 1 (top manual feed) even though the Windows printer queue was configured to go to tray 3 (bottom tray).
    The earlier method would be simplest but needs the right driver (PDD) but I don’t know where to find it. The latter approach is also not working despite having got the right driver on Windows. A test page on the target Windows printer queue would print to tray 3 (bottom tray) of the printer correctly.
    Printmgr does not work well with HP printers from experience. It is good for serial and local printers.
    Your advice would be much appreciated.
    Thanks,
    Crystal

    Hi Giogio, and welcome to the HP Forums.
    I am sorry to be the bearer of this news, but do the age of the printer, it is not supported by Mac OS X 10.9. I am including a list below of the supported printers from Apple:
    OS X: Printer and scanner software available for download.
    For more information, I would recommend contacting the Apple Support Communities.
    Thank you for posting on the HP Forums.
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • PMTU discovery in IPv6 based on IPV6_RECVPATHMTU in Solaris 10

    Our application works with raw sockets and needs to discover PMTU of IPv6 paths.
    According to the RFC-3542 (http://tools.ietf.org/html/rfc3542, section 11) the socket option IPV6_RECVPATHMTU allows applications to know about the change of path MTU by receipt of new ancillary data item (IPV6_PATHMTU) which is delivered to recvmsg() without any actual data. Following construction should be used to enable this option:
        int  on = 1;
        setsockopt(fd, IPPROTO_IPV6, IPV6_RECVPATHMTU, &on, sizeof(on));In the online Sun documentation I found that this socket option is supported since Solaris 10 (http://docs.sun.com/app/docs/doc/816-5177/ip6-7p).
    However, in our test this socket option appears to be not working. After decrease of the PMTU via ifconfig and sending a big enough packet an ICMP (Packet Too Big) is received but there is no event with ancillary data item on the socket.
    One peculiarity that may be essential is that our application binds to a specific port in a raw socket (i.e. to IP address : port pair).
    Does anyone have information if the IPV6_RECVPATHMTU socket option is really supported in Solaris 10?
    Probably, ICMP should be off to be able to receive this event with ancillary data on the socket?
    Will appreciate any ideas how to make it working.
    Thanks in advance,
    Mike.

    Hi,
    I have a Sunfire V100 - and have the exact same problem. The settings are correct; I have configure dual-NIC cards many times in the past - but this issue is simply eluding me. I can swap in a Linux machine in router / ip forwarding mode and there are no problems, but when I put back in the Sunfire I encounter the same issues you have.
    In effect, packets from the LAN arrive at the NIC on the Solaris machine, but then don't get forwarded to the other NIC's gateway. I'm at a loss, but I have seen this problem pop-up (without answer) a half-dozen times in this forum alone, and multiple times on different support sites. Did you (or anyone) ever come across a solution for this? Is this not some easily overlooked yet possibly cryptic flag or variable that I've missed? Anyone?

  • Solaris: OC4J: 9.0.2.0.0 or 9.0.3.0.0

    I'm a bit puzzled as to versioning of oc4j running applications created with Jdeveloper RC2 / BI Beans RC2 .
    I downloaded a file called oc4j_extended.zip (of 25. March).
    I would have thought this to be the latest distro of oc4j.
    When I invoke the oc4j.jar, I receive a message like this:
    "Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized"
    I see other people are running version 9.0.3.0.0, and most Jdeveloper references are for this version as well.
    Is there a later version (for Solaris) that I need to download/install?
    If so, where can it be found?
    Or am I fine running with the one I have?
    (Reason for asking is that I am running into problems that could possibly be related to versioning.)
    Jens

    Thanks for quick response, I am located in Norway, 6 hours in front of the US, so days can easily be "wasted" waiting for you guys. Maybe we'll manage to squeeze in 2 answers today ;-)
    Here are the answers to your question:
    myhost% java -version -jar oc4j.jar
    java version "1.3.1_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
    Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
    myhost% java -jar oc4j.jar -version
    Oracle9iAS (9.0.2.0.0) Containers for J2EE
    myhost% java -jar ./oc4j.jar -version
    Oracle9iAS (9.0.2.0.0) Containers for J2EE
    This is a bit complicated, but here's a quick resume of what I did:
    * Install Oracle 9.0.1.0.0, including the http-server.
    * Patch to 9.0.1.2.0
    * download oc4j_extended, unzip to a new $ORACLE_HOME/oc4j
    * Source the following file:
    myhost% more java131.sh
    setenv PATH /usr/j2se/bin:/u01/app/oracle/product/901/bin:/bin:/usr/bin:/usr/cc
    /bin:/etc:/opt/bin:/usr/ucb:.:/usr/openwin/bin:/usr/openwin/lib
    setenv CLASS_PATH /usr/j2se/lib:/u01/app/oracle/jre/1.1.8/lib:/u01/app/oracle/p
    oduct/901/jlib:/u01/app/oracle/product/901/wmt/jlib
    setenv CLASSPATH /usr/j2se/lib:/u01/app/oracle/jre/1.1.8/lib:/u01/app/oracle/pr
    duct/901/jlib:/u01/app/oracle/product/901/wmt/jlib
    alias java="/usr/j2se/bin/java"
    myhost%
    * Check that the right java verson is running:
    myhost% which java
    /usr/j2se/bin/java
    myhost%
    * start the oc4j server with :
    java -Xmx256m -Dorg.omg.CORBA.ORBClass=com.inprise.vbroker.orb.ORB -Dorg.omg.COR
    BA.ORBSingletonClass=com.inprise.vbroker.orb.ORB -jar oc4j.jar
    And it reports back v. 9.0.2.0.0
    So what am I doing wrong?
    Any input will be appreciated.
    Jens

  • Install of 9201 on Solaris 9

    I am getting this same error on install of 9201 on Solaris 9 ; ld is core dumping - I have all of the required packages so I can't figure out why linking is failing, can anybody please give me a fix?!!?
    Calling action unixActions2.2.0.6.0 make
    installMakePath = /usr/ccs/bin/make
    installMakeFileName = /opt/oracle/product/plsql/lib/ins_plsql.mk
    installTarget = install
    undoMakeFileName =
    installArguments = ORACLE_HOME=/opt/oracle/product,
    /opt/oracle/product/install/make.log
    undoTarget =
    Exception thrown from action: make
    Exception Name: MakefileException
    Exception String: Error in invoking target install of makefile /opt/oracle/product/plsql/lib/ins_plsql.mk
    Exception Severity: 1
    *** Cancel Dialog: ***
    User selected: Stop installation of all products.
    Error in invoking target install of makefile /opt/oracle/product/plsql/lib/ins_plsql.mk

    Hello,
    a) Please crosscheck your environment variables and make sure you have access to all binaries/executables.
    Ex: make etc.
    b) Make sure you OS is patches as per oracle requirements.
    <<Message>>
    Error in invoking target install of makefile /opt/oracle/product/plsql/lib/ins_plsql.mk
    Indicates that you may not have access to execute make utility.
    -Sri

  • Oracle 8.1.5 can install on SPARC solaries 8?

    I have a copy of oracle 8.1.5 for sparc solaries 8 , but my colleage told me there is not compatible with solaries 8 and oracle 8.1.5 , only oracle 8.1.7 can be install on solaries 8.
    is it true?

    Hi,
    Check if the listener process has started or not.
    Sometimes you will have to manually start the listener process.
    Go to Oracle Home. Run lsnrctl from bin.
    Now you may be able to connect.
    Good Luck,
    Raghuraman

Maybe you are looking for

  • Report Painter - Income Statement Report

    Hi SAP Experts, I'm trying to enhance an existing Income Statement Report (table GLPCT) by adding the PLAN (table GLPCP) columns. Right now, PLAN columns has no data when I execute it. Report Layout: Profit & Loss   ACT-2007 ACT-2006  PLAN-2007 PLAN-

  • HT1515 How can I logging and manage the content on Airport Express?

    I want to logging to manage the content but I can't even see it but all my devices are connected and properly functioning.

  • MSAD users not able to login Hyperion Planning

    Problem Description: I have configured MSAD in shared services. I am able to search the users with their email id in shared services.In Unix enrironment, we have installed Oracle database and Essbase.Hyperion planning , shared services, HFR, web Anal

  • BAPI return messages.

    Hi, When we create a sale order manually using VA01 tcode, we will be getting messages like 'material entered is critical part' or when the customer is on credit hold we will be getting 'Credit check maximum document value exceed'. My problem is i am

  • Mavericks: why can't I access Airport Utility?

    I wanted to check that my network was still hidden after installing Mavericks. However, when I go to Utilities, this is what I see. Supposedly I have Airport 5.6. I have an Airport Express from 2005? ( I know... I need to upgrade). Should I download