Problems with sudo on Solaris 8

Greetings all,
I am trying to set up user accounts with scripts that will restart services, should they fail. I am setting up the default shell as the script that I want to have run when they log in and at the completion it will kick them off. A nice secure way to get things going again without our network operations people getting their hands dirty.
I am attempting to use sudo for this and it keeps asking for a password even though I have put in the ALL=NOPASSWD tag in the sudoers file for this users entry. When I enter the users password it is not correct and when I enter root it is not correct and in the end it will not run the script. I need to somehow bypass this asking of a password and get sudo to run the command. This is to restart our SunOne messaging server and will likely be applied to various other processes.
Any suggestions are appreciated. I have checked the sudo site and checked the config.h from the compile and had no luck so it is not the shadow passwords issue that they list on their support site. I also tried to download and use the precompiled package that they had on SunFreeware, but that will not install on to any of these servers... can't get pkgadd to acknowledge it as a solaris package.
Thank you in advance!
Lee Stevens

Try to remove this disk from server and insert in again.
Then run devfsadm command.

Similar Messages

  • Problem with IPSec on  solaris 9

    Hi all
    I'm facing a problem with IPSec on solaris 9 that I didn't have with Solaris 8 (With the Security package installed).
    I've an application that creates SA's by using the pf-key interface.
    What it does is first doing a GETSPI to a specific SPI and a specific Destination IP Address.
    This will create an SA and put it in a LARVAL state. After about a minute my application will do an UPDATE to this SPI and that command should change the state of the SA from LARVAL to MATURE but instead I get an error saying that this SPI & IP address already exist (errno = 17).
    Well of course it's already exist that's the all point it should just change the state of an existing SA.
    This exact scenarion was is working fine on Solaris 8.
    Am I doing somthing wrong (maybe there is a package on the solaris 9 that I need to install ?)
    or is this a bug in solaris 9.
    If anyone has any idea on how to do that (without using a one step ADD for a new SA) I will be very thankfull.

    Sorry for using reply for querying.
    I got a problem in creating a Security Association using the PF_KEY Socket (first used SADB_GETSPI and got SPI,with SPI tried to update SADB_UPDATE).
    Getting this problem on Sun Solaris 8.
    It returns errno 122 . operation not supported.
    Here is my mailId [email protected]
    I got few more queries regarding PF_KEY socket.
    Not much directions are available also for pf_key socket in internet.
    Monitor produces the following error.
    # ipseckey monitor
    "Base message (version 2) type UPDATE, SA type AH.
    Error Operation not supported on transport endpoint from PF_KEY.
    Message length 16 bytes, seq=4294967294, pid=450."
    Here is my mailId [email protected]
    Thanks in Advance.
    ssundar.

  • Problem with telnet on solaris 9

    Hi all,
    I have a problem with telnet on my sun fire v440 server with solaris 9 system, whenever I telnet to this server as a normal user ,after entering the username and password ,the user environment will switch to root. but i have checked the 'id' as i telnet the system ,it was not root. Pls refer the below message as i login the server:
    SunOS 5.9
    login: prad
    Password:
    Last login: Thu Apr 14 11:14:54 from 10.60.64.59
    Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
    You have mail.
    root@T-Server02 # id
    uid=1017(prad) gid=10(staff)
    root@T-Server02 # cat /etc/passwd | grep prad
    prad:x:1017:10::/export/home/prad:/bin/sh
    root@T-Server02 # ls -lrt profile*
    -rwxrwxrwx   1 prad     other        174 Feb  7  2008 local.profile
    -rw-r--r--   1 prad     other        144 Feb  7  2008 backupprofile
    root@T-Server02 # pwd
    */export/home/prad*
    root@T-Server02 #
    Does any one have idea on how to solve this problem?

    Thanks . I'm pretty new in SUN OS, and not quite get your point . Here is the local.profile showed as below:
    This is a newly happened issue, I think we haven't change any profile setting in server:
    SunOS 5.9
    login: prad
    Password:
    Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
    You have mail.
    root@T-Server02 # more local.profile
    *# Copyright (c) 2001 by Sun Microsystems, Inc.*
    *# All rights reserved.*
    *# ident "@(#)local.profile 1.10 01/06/23 SMI"*
    stty istrip
    PATH=/usr/bin:/usr/ucb:/etc:.
    export PATH
    root@T-Server02 #

  • Problem with sudo

    Hi. I'm setting up my ArchLinux 8.1.07 distro and I'm running into issues with sudo. I installed sudo through pacman, and now after I added myself to the /etc/sudoers file, it doesn't request a password for me. I do not have the NOPASSWRD option enabled.
    excerpt from my sudoers file:
    dburban ALL=(ALL) ALL
    On all of my previous linux setups, I was asked for the password everytime I logged in and out, or restarted. Arch doesn't ask even if i reboot. The only way I got it to ask for the password was to delete my user and set it up again. But it didn't solve the problem, it just asked for the password once, and now doesn't ask for it anymore.
    Specs: Thinkpad T61
    14"
    1gb DDR2
    80gb HD
    Intel 4965AGN
    Thanks in advance

    I guess it is on a timeout system. I guess I never knew that because I never had to use it much, and then restart.
    # sudoers file.
    # This file MUST be edited with the 'visudo' command as root.
    # See the sudoers man page for the details on how to write a sudoers file.
    # Host alias specification
    # User alias specification
    # Cmnd alias specification
    # Defaults specification
    # Runas alias specification
    # User privilege specification
    root ALL=(ALL) SETENV: ALL
    # Uncomment to allow people in group wheel to run all commands
    # and set environment variables.
    # %wheel ALL=(ALL) SETENV: ALL
    # Same thing without a password
    # %wheel ALL=(ALL) NOPASSWD: SETENV: ALL
    # Samples
    # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
    # %users localhost=/sbin/shutdown -h now
    dburban ALL=(ALL) ALL

  • I'm having a problem with sudo

    Whenever I do anything with sudo in terminal, it comes up with this:
    sudo: /opt/local/etc/sudoers is mode 0444, should be 0440
    sudo: no valid sudoers sources found, quitting
    I use sudo quite a bit, so I need some help fixing it pretty quickly.

    Okay, I did that. Now it says:
    /opt/local/etc/sudoers: /etc/sudoers.d near line 102 <<<</div>
    sudo: parse error in /opt/local/etc/sudoers near line 102
    sudo: no valid sudoers sources found, quitting

  • Problem with Java in solaris 10 zone

    HI ,
    i get this error message in my solaris 10 zone :
    #./java version
    Exception java.lang.OutOfMemoryError: requested -4 bytes for size_t in /BUILD_AREA/jdk1.5.0_11/hotspot/src/os/solaris/vm/os_solaris.cpp. Out of swap space?
    in global zone , java works fine !
    uname -a
    SunOS Server 5.10 Generic_141414-07 sun4u sparc SUNW,SPARC-Enterprise
    best regards

    I see mention of a similar problem, but only with early development releases of solaris10 branded zones running on Solaris 11 development bits. It seems as though this is not what you are running.
    Since there are no swap caps nor brand emulation in place, the next thing I would suspect would be that you somehow have inconsistencies between key libraries (e.g. libc) and the kernel. This could happen if you have a full-root zone that has been force attached (zoneadm -z <zone> attach -F). In the past, I've seen products that do this under the covers (e.g. Veritas Cluster) so it may have happened without your knowledge. If it is a sparse root zone, you may want to run "zoneadm -z <zone> detach; zoneadm -z <zone> attach -u". Prior to doing so, take whatever precautions you would normally take when patching a system.
    If you open a support call about this I bet the first advice you are going to get is to patch, as you seem to be 2+ years behind. Also, newer releases of Java 5 are available at http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase5-419410.html.

  • Devtools update causes problems with sudo when used in a script?

    I'm a little confused by this one, but I'm not convinced that it's a bug.. yet.
    Long story short, I compile packages using the ABS via a script/wrapper which uses devtools. The script is available here: https://github.com/WorMzy/compilepackage
    Now, this script is far from perfect, but has worked perfectly well (in various states of completeness) for the past year or so. However, with the recent update of devtools (20120720-1 => 20121013-1), my script fails to execute correctly. After entering the password when prompted (by sudo, at this line: https://github.com/WorMzy/compilepackag … tions#L107), the script terminates unexpectedly.
    Downgrading devtools "fixes" this problem, but I'm not sure if this is a bug in devtools, sudo, zsh, my script, or something else.
    Here is the full output from the compilation of "arch-install-scripts":
    build@sakura[pts/10]:~/builds/devtools$ . ~/.scripts/compilepackage arch-install-scripts
    ==> Downloading sources
    ==> arch-install-scripts directory already exist. Replace ? [Y/n]
    ==> Download arch-install-scripts sources
    receiving file list ... done
    sent 28 bytes received 70 bytes 39.20 bytes/sec
    total size is 656 speedup is 6.69
    :: Synchronizing package databases...
    core is up to date
    extra is up to date
    community is up to date
    :: Starting full system upgrade...
    there is nothing to do
    ==> Building in chroot for [extra] (x86_64)...
    ==> Creating clean working copy...done
    ==> Making package: arch-install-scripts 8-1 (Fri Oct 19 23:45:52 BST 2012)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    -> Found arch-install-scripts-8.tar.gz
    -> Found arch-install-scripts-8.tar.gz.sig
    ==> Validating source files with md5sums...
    arch-install-scripts-8.tar.gz ... Passed
    arch-install-scripts-8.tar.gz.sig ... Passed
    ==> Verifying source file signatures with gpg...
    arch-install-scripts-8.tar.gz ... FAILED (unknown public key 1EB2638FF56C0C53)
    ==> WARNING: Warnings have occurred while verifying the signatures.
    Please make sure you really trust them.
    ==> Extracting Sources...
    -> Extracting arch-install-scripts-8.tar.gz with bsdtar
    ==> Starting build()...
    make: Entering directory `/build/src/arch-install-scripts-8'
    GEN arch-chroot
    GEN genfstab
    GEN pacstrap
    make: Leaving directory `/build/src/arch-install-scripts-8'
    ==> Entering fakeroot environment...
    ==> Starting package()...
    make: Entering directory `/build/src/arch-install-scripts-8'
    install -dm755 /build/pkg/usr/bin
    install -m755 arch-chroot genfstab pacstrap /build/pkg/usr/bin
    install -Dm644 zsh-completion /build/pkg/usr/share/zsh/site-functions/_archinstallscripts
    make: Leaving directory `/build/src/arch-install-scripts-8'
    ==> Tidying install...
    -> Purging unwanted files...
    -> Compressing man and info pages...
    -> Stripping unneeded symbols from binaries and libraries...
    ==> Creating package...
    -> Generating .PKGINFO file...
    -> Compressing package...
    ==> Leaving fakeroot environment.
    ==> Finished making: arch-install-scripts 8-1 (Fri Oct 19 23:45:54 BST 2012)
    ==> Installing package arch-install-scripts with pacman -U...
    loading packages...
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): arch-install-scripts-8-1
    Total Installed Size: 0.03 MiB
    Proceed with installation? [Y/n]
    (1/1) checking package integrity [######################################################################] 100%
    (1/1) loading package files [######################################################################] 100%
    (1/1) checking for file conflicts [######################################################################] 100%
    (1/1) installing arch-install-scripts [######################################################################] 100%
    resolving dependencies...
    looking for inter-conflicts...
    Targets (5): elfutils-0.155-1 pyalpm-0.5.3-2 python-3.3.0-1 python-pyelftools-0.20-2 namcap-3.2.4-2
    Total Installed Size: 99.58 MiB
    Proceed with installation? [Y/n]
    (5/5) checking package integrity [######################################################################] 100%
    (5/5) loading package files [######################################################################] 100%
    (5/5) checking for file conflicts [######################################################################] 100%
    (1/5) installing python [######################################################################] 100%
    Optional dependencies for python
    tk: for tkinter
    sqlite
    (2/5) installing pyalpm [######################################################################] 100%
    (3/5) installing elfutils [######################################################################] 100%
    (4/5) installing python-pyelftools [######################################################################] 100%
    (5/5) installing namcap [######################################################################] 100%
    Checking PKGBUILD
    Checking arch-install-scripts-8-1-any.pkg.tar.xz
    arch-install-scripts W: Dependency bash included but already satisfied
    arch-install-scripts W: Dependency included and not needed ('coreutils')
    arch-install-scripts W: Dependency included and not needed ('pacman')
    arch-install-scripts W: Dependency included and not needed ('util-linux')
    ==> Compilation complete, installing...
    Password:
    loading packages...
    warning: arch-install-scripts-8-1 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): arch-install-scripts-8-1
    Total Installed Size: 0.03 MiB
    Net Upgrade Size: 0.00 MiB
    Proceed with installation? [Y/n] % build@sakura[pts/10]:~/builds/arch-install-scripts$
    That "%" is inverted, just like what you get when you run
    echo -n "text"
    in zsh. Incidentally, here is my .zshrc: https://github.com/WorMzy/Config-files/ … ter/.zshrc, however, the problem persists with a new user with an unconfigured zsh.
    Here is my sudoers too:
    ## sudoers file.
    ## This file MUST be edited with the 'visudo' command as root.
    ## Failure to use 'visudo' may result in syntax or file permission errors
    ## that prevent sudo from running.
    ## See the sudoers man page for the details on how to write a sudoers file.
    ## Host alias specification
    ## Groups of machines. These may include host names (optionally with wildcards),
    ## IP addresses, network numbers or netgroups.
    # Host_Alias WEBSERVERS = www1, www2, www3
    ## User alias specification
    ## Groups of users. These may consist of user names, uids, Unix groups,
    ## or netgroups.
    # User_Alias ADMINS = millert, dowdy, mikef
    ## Cmnd alias specification
    ## Groups of commands. Often used to group related commands together.
    # Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
    # /usr/bin/pkill, /usr/bin/top
    ## Defaults specification
    ## You may wish to keep some of the following environment variables
    ## when running commands via sudo.
    ## Locale settings
    # Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
    ## Run X applications through sudo; HOME is used to find the
    ## .Xauthority file. Note that other programs use HOME to find
    ## configuration files and this may lead to privilege escalation!
    # Defaults env_keep += "HOME"
    ## X11 resource path settings
    # Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
    ## Desktop path settings
    # Defaults env_keep += "QTDIR KDEDIR"
    ## Allow sudo-run commands to inherit the callers' ConsoleKit session
    # Defaults env_keep += "XDG_SESSION_COOKIE"
    ## Uncomment to enable special input methods. Care should be taken as
    ## this may allow users to subvert the command being run via sudo.
    # Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
    ## Uncomment to enable logging of a command's output, except for
    ## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
    # Defaults log_output
    # Defaults!/usr/bin/sudoreplay !log_output
    # Defaults!/usr/local/bin/sudoreplay !log_output
    # Defaults!/sbin/reboot !log_output
    Defaults timestamp_timeout=0,passwd_timeout=0,passprompt="Password:",badpass_message="Incorrect password",editor=/usr/bin/vim:/usr/bin/vi,targetpw
    ## Runas alias specification
    ## User privilege specification
    root ALL=(ALL) ALL
    build sakura=/usr/bin/pacman-color -U *,/usr/bin/pacman-color -Sy,/usr/bin/pacman-color -Syy
    build sakura=/usr/bin/pacman -U *
    build sakura=NOPASSWD: /usr/bin/extra-x86_64-build,/usr/bin/multilib-build,/usr/sbin/makechrootpkg
    ## Uncomment to allow members of group wheel to execute any command
    %wheel sakura=(ALL) ALL
    ## Same thing without a password
    #%wheel ALL=(ALL) NOPASSWD: /sbin/sdshutdown, /sbin/sdreboot
    ## Uncomment to allow members of group sudo to execute any command
    # %sudo ALL=(ALL) ALL
    ## Uncomment to allow any user to run sudo if they know the password
    ## of the user they are running the command as (root by default).
    # Defaults targetpw # Ask for the password of the target user
    # ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
    ## Read drop-in files from /etc/sudoers.d
    ## (the '#' here does not indicate a comment)
    #includedir /etc/sudoers.d
    Further information will be provided on request. Suggestions for improving the script will also be appreciated.
    Thanks.

    Update: It appears that the cause is systemd's nspawn. Disabling it in mkarchroot (have_nspawn=0) resolves the problem.
    However, I don't understand why it's causing this behaviour. User input works fine for the sudo password prompt, but then fails for the pacman user prompt? Do they use different input buffers or something? Does that question even make sense?
    Anyway, I'll open a bug report on flyspray and upstream about this when I get the chance.

  • Problem with sudo - sudoers is mode 0604, should be 0440

    ryans-imac-2:~ Ryan$ sudo chmod -RN /.vol
    sudo: /private/etc/sudoers is mode 0604, should be 0440
    ryans-imac-2:~ Ryan$ postdrop: warning: unable to look up public/pickup: No such file or directory
    Please advise.

    There is a '-N' option for chmod -- it's for removing ACL's.
    The best way to learn is not to make random changes that you don't understand, and then ask for help in public forums when something goes wrong. Set yourself a constructive problem to solve; for instance, by writing a shell script. Read man pages. Read UNIX books.
    You say you want to grant permissions to the current user. Which permissions -- read, write, execute, all? Do you mean ownership? ACL's? Recursive? Sticky or SUID bits? What permissions should other users have? First learn how to ask the right question, then you'll most likely be able to answer it yourself. Start with the chmod(1) man page. When you understand everything on that page, you'll know quite a lot.
    Meanwhile you might be able to repair the damage you'be already done by running the "Repair permissions" routine from Disk Utility. This would be one of the few situations where it's actually useful.

  • Problem with Jni on Solaris

    Hello I am using a Native code that is working perfect on Windows .
    I have used DllMain calls to initialize my threads .
    I attach my lower stack threads to the JNI by using these methods.
    Well I want to know what is way to put the same functionality on Solaris.As this particular method is specific to Windows Platform only.
    BOOL APIENTRY DllMain( HANDLE hModule,                     // handle to DLL module
    DWORD ul_reason_for_call,      // reason for calling function
    LPVOID lpReserved                // reserved
         BOOL returnValue = FALSE;
    switch (ul_reason_for_call)
              case DLL_PROCESS_ATTACH:
                   // We do not perform any initialization
                   // within this section. Instead we have
                   // chosen to use the JNI_OnLoad function
                   // as the library initialization point.
                   returnValue = TRUE;
                   break;
              case DLL_THREAD_ATTACH:
                   // We are to initialize the thread local storage
                   // variables in this call.
                   if( BridgeUtility::getInstance() -> threadInitialize() != 0 ) {
                        returnValue = FALSE;
                        printf(" Thread initialize failed..\n");
                   }else {
                        printf(" Thread initialize succed..\n");
                        returnValue = TRUE;
                   break;
              case DLL_THREAD_DETACH:
                   // We are to uninitialize the thread local storage
                   // variables in this call.
                   if( BridgeUtility::getInstance() -> threadUninitialize() != 0 )
                        returnValue = FALSE;
                   else
                        returnValue = TRUE;
                   break;
              case DLL_PROCESS_DETACH:
                   // We do not perform any uninitialization
                   // within this section. Instead we have
                   // chosen to use the JNI_OnUnload function
                   // as the library initialization point.
                   returnValue = TRUE;
                   break;

    If your aim is to load the library and initialize it
    that one time, consider using the pthread once routines
    to handle library initialization. See, for example,
    chapter 5 of Butenhof's "Programming with POSIX
    threads".

  • Problem with Syslog in Solaris 10

    I have 2 hosts (both are actually Solaris 10 Zones). One has no issues with syslog and the other won't send its messages to our loghost. Both have the same /etc/syslog.conf files, /etc/resolv.conf and /etc/nsswitch.conf files. The one works and the other just says in the /var/adm/messages files :
    May 3 11:16:42 svanyc128 syslogd: line 22: WARNING: loghost could not be resolved
    May 3 11:16:42 svanyc128 syslogd: line 23: WARNING: loghost could not be resolved
    May 3 11:16:42 svanyc128 syslogd: line 28: WARNING: loghost could not be resolved
    May 3 11:16:42 svanyc128 syslogd: line 29: WARNING: loghost could not be resolved
    May 3 11:16:42 svanyc128 syslogd: line 30: WARNING: loghost could not be resolved
    May 3 11:16:42 svanyc128 syslogd: line 31: WARNING: loghost could not be resolved
    May 3 11:16:42 svanyc128 syslogd: line 32: WARNING: loghost could not be resolved
    May 3 11:16:42 svanyc128 syslogd: line 33: WARNING: loghost could not be resolved
    May 3 11:16:42 svanyc128 syslogd: line 34: WARNING: loghost could not be resolved
    May 3 11:16:42 svanyc128 syslogd: line 35: WARNING: loghost could not be resolved
    May 3 11:16:42 svanyc128 syslogd: line 36: WARNING: loghost could not be resolved
    May 3 11:16:42 svanyc128 syslogd: line 37: WARNING: loghost could not be resolved
    May 3 11:16:42 svanyc128 syslogd: line 38: WARNING: loghost could not be resolved
    May 3 11:16:42 svanyc128 syslogd: line 39: WARNING: loghost could not be resolved
    I can resolve the name loghost though with ping and nslookup and they're going to the correct IP. Does anyone have any other idea why these hosts don't behave the same?

    Ah, one of the guys I work with figured it out. /etc/services file was messed up. It's working now. :)

  • Problems with oracle10 and solaris 10

    Hello,
    I been trying for 3 days to install and make oracle 10g work with solaris 10. I've downloaded oracle 10.1.0.2 (it's the only one available for solaris 64 bitS). I've followed every bit of documentation I found in this forum but still no go. I've read this thread and followed did what it says but still no go.
    Oracle Database10g on Solaris 10
    My questions are:
    1. I've set the semsys and shmsys as instructed in the documentation, but when I run the installer and it comes to the checking kernel security paramters it says that I need to update the kernel system paramaters BIT_SIZE and noexec_user_stack. According to the docs that I've read, the noexec_user_stack is only for soalris versions up to 5.8, but just to test I added it to the kernel but I still get the same error. What gives? Where do I change the BIT_SIZE and what value should i put?
    2. After ignoring these errors, and the installation has finished, I get this error on the console
    Aug 1 18:19:18 db1 root: [ID 702911 user.alert] (Oracle CSSD will be run out of init)
    Any assistance will be very much appreciated.
    Thanks

    I've downloaded oracle 10.1.0.2 (it's the only one available for solaris 64 bitS).I hope you installing this on Solaris Sparc 64bit.
    According to the docs that I've read, the noexec_user_stack is only for soalris versions up to 5.8noexec_user_stack was introduced in Solaris 7 and is valid for all >7 versions (9, 10 too)
    Aug 1 18:19:18 db1 root: [ID 702911 user.alert] (Oracle CSSD will be run out of init)You could safely ignore this message

  • Problems with rsh in solaris 8

    I have tried to execute a command with "rsh", like a "prstat", and it works but if I execute a "snoop" command, I see that the machine that runs the command(rsh) lost information. There is packets from TCP that has been return (in some occasions partially), this provokes the application losts information.
    Which can the problem be ?

    OK, but the problem is not in C++. Your C++ code just invokes invokes the shell and remote operations, and returns the result. The local C++ program cannot cause or repair communication problems between machines.

  • Problems with LDOMs in Solaris 11

    I got a new T5-2 server, installed Solaris 11 and was going to configure LDOMs. However "ldmd" can't be started and in turn ldm doesn't work.
    root@Solaris11U1-T5:/opt/SUNWldm/bin#
    root@Solaris11U1-T5:/opt/SUNWldm/bin# ldm
    Failed to connect to logical domain manager: Connection refused
    root@Solaris11U1-T5:/opt/SUNWldm/bin#  svcadm enable svc:/ldoms/ldmd:default
    root@Solaris11U1-T5:/opt/SUNWldm/bin# svcs | grep svc:/ldoms/ldmd:default
    maintenance    12:22:28 svc:/ldoms/ldmd:default
    root@Solaris11U1-T5:/opt/SUNWldm/bin# tail /var/svc/log/ldoms-ldmd\:default.log
    [ Sep  3 12:08:35 Disabled. ]
    [ Sep  3 12:08:39 Enabled. ]
    [ Sep  3 12:08:39 Executing start method ("/opt/SUNWldm/bin/ldmd_start"). ]
    Sep 03 12:08:39 fatal error: HV MD unable to assign frag @ 0x0.0x3900000 from free PRI list
    [ Sep  3 12:08:41 Method "start" exited with status 95. ]
    [ Sep  3 12:22:25 Enabled. ]
    [ Sep  3 12:22:25 Rereading configuration. ]
    [ Sep  3 12:22:25 Executing start method ("/opt/SUNWldm/bin/ldmd_start"). ]
    Sep 03 12:22:25 fatal error: HV MD unable to assign frag @ 0x0.0x3900000 from free PRI list
    [ Sep  3 12:22:28 Method "start" exited with status 95. ]
    root@Solaris11U1-T5:/opt/SUNWldm/bin#

    Hi 69768d81-19e9-4597-ad17-b29f5c618a87  
    I am also getting the same error (fatal error: HV MD unable to assign frag @ 0x0.0x3900000 from free PRI list) while booting the Solaris 11.1 server on T5-2.
    Can you please let me know how did you upgrade the SRU version.
    Nov 14 11:23:21 fatal error: HV MD unable to assign frag @ 0x0.0x3900000 from free PRI list
    [ Nov 14 11:23:24 Method "start" exited with status 95. ]
    [ Nov 14 12:05:42 Enabled. ]
    [ Nov 14 12:05:42 Rereading configuration. ]
    root@blrgxr2701:~# pkg info entire
              Name: entire
           Summary: Incorporation to lock all system packages to the same build
       Description: This package constrains system package versions to the same
                    build.  WARNING: Proper system update and correct package
                    selection depend on the presence of this incorporation.
                    Removing this package will result in an unsupported system.
          Category: Meta Packages/Incorporations
             State: Installed
         Publisher: solaris
           Version: 0.5.11
    Build Release: 5.11
            Branch: 0.175.1.0.0.24.2
    Packaging Date: September 19, 2012 07:01:35 PM
              Size: 5.46 kB
              FMRI: pkg://solaris/[email protected],5.11-0.175.1.0.0.24.2:20120919T190135Z
    root@blrgxr2701:~# pkg update --accept
    No updates available for this image.
    root@blrgxr2701:~# pkg update --be-name s11.1sru --accept
    No updates available for this image.
    Thanks.
    Prasad P.

  • [SOLVED] Annoying problem with sudo

    I tried googling this, but finding the correct search has eluded me.
    Suddenly, sudo requires me to enter my password correctly three times (i.e. If I type correctly, I'm asked three times, if I get it wrong on the first go, it's four times and so on). This has only started in the past week.
    Any ideas how to fix it?
    TIA
    Last edited by Roken (2014-03-17 19:07:11)

    In fact, sudoers was the problem. I have no idea how (since I haven't touched it lately) but the timeout had got itself set to 363636363636363636363636363636363636363636363636363636363, which I'm guessing resolved to an immediate timeout.
    Reset and all is good again
    Thanks all

  • Multi-Owner Diskset problem with SC3.1U4 & Solaris 10

    Hi All,
    My Problem is after configured the mulit-owner diskset of SVM. If either one node has been restarted/rebooted. The rebooted node can't join back to the diskset like below status. I have tried to use some metaset commands to put the rebooted node to join backed the diskset but failed.
    After both nodes rebooted. Then I run "metaset" command on both nodes, the status seems can't synchronize. "See below status for detail"
    root@IMDUFSDBM01 # metaset -s racset
    Multi-owner Set name = racset, Set number = 1, Master = IMDUFSDBM01
    Host Owner Member
    IMDUFSDBM01 Yes
    IMDUFSDBM02 No
    Driv Dbase
    d6 Yes
    root@IMDUFSDBM02 # metaset -s racset
    Multi-owner Set name = racset, Set number = 1, Master =
    Master and owner information unavailable until joined (metaset -j)
    Host Owner Member
    IMDUFSDBM01 multi-owner Yes
    IMDUFSDBM02 No
    Driv Dbase
    d6 Yes
    -------------------------------------------------------------------------Failed to use commands to put the IMDFUSDBM02 to diskset "racset".
    root@IMDUFSDBM01 # metaset -s racset
    Multi-owner Set name = racset, Set number = 1, Master = IMDUFSDBM01
    Host Owner Member
    IMDUFSDBM01 multi-owner Yes
    Driv Dbase
    d6 Yes root@IMDUFSDBM01 # metaset -s racset -d -h IMDUFSDBM02
    metaset: IMDUFSDBM01: racset: host IMDUFSDBM02 does not have set
    root@IMDUFSDBM01 # metaset -s racset -M -a -h IMDUFSDBM02
    metaset: IMDUFSDBM01: racset: host IMDUFSDBM02 is already in the set
    Dear all, any idea or experience on this problem?
    Chowsingsing from Hong Kong

    Hi Tim/All,
    I have party fixed the multi-owner diskset problem after create the resource for SUNW.rac_framework, SUNW.rac_udlm & SUNW.rac_svm. But the new problem is generated. The new problem is if two nodes are up, then the multi-owner diskset can be access via two nodes. But if either one node is down, the remain node can�t access the diskset (but the scstat status is fine). For example: node2 is down, node1 is up. Then multi-owner diskset membership of node1 is lost. If node1 is down, node2 is up. Then multi-owner diskset membership of node2 is lost. After both nodes become online, the diskset will resume to normal and can be access.
    normal status of scstat and metaset
    -- Cluster Nodes --
    Node name Status
    Cluster node: node2 Online
    Cluster node: node1 Online
    -- Cluster Transport Paths --
    Endpoint Endpoint Status
    Transport path: node2:qfe1 node1:qfe1 Path online
    Transport path: node2:qfe0 node1:qfe0 Path online
    -- Quorum Summary --
    Quorum votes possible: 3
    Quorum votes needed: 2
    Quorum votes present: 3
    -- Quorum Votes by Node --
    Node Name Present Possible Status
    Node votes: node2 1 1 Online
    Node votes: node1 1 1 Online
    -- Quorum Votes by Device --
    Device Name Present Possible Status
    Device votes: /dev/did/rdsk/d2s2 1 1 Online
    -- Device Group Servers --
    Device Group Primary Secondary
    -- Device Group Status --
    Device Group Status
    -- Multi-owner Device Groups --
    Device Group Online Status
    Multi-owner device group: racset node1,node2
    -- Resource Groups and Resources --
    Group Name Resources
    Resources: rac-rg rac-framework-rs rac-udlm-rs rac-svm-rs
    -- Resource Groups --
    Group Name Node Name State
    Group: rac-rg node1 Online
    Group: rac-rg node2 Online
    -- Resources --
    Resource Name Node Name State Status Message
    Resource: rac-framework-rs node1 Online Online
    Resource: rac-framework-rs node2 Online Online
    Resource: rac-udlm-rs node1 Online Online
    Resource: rac-udlm-rs node2 Online Online
    Resource: rac-svm-rs node1 Online Online
    Resource: rac-svm-rs node2 Online Online
    -- IPMP Groups --
    Node Name Group Status Adapter Status
    IPMP Group: node2 sc_ipmp0 Online hme1 Online
    IPMP Group: node2 sc_ipmp0 Online hme0 Online
    IPMP Group: node1 sc_ipmp0 Online hme1 Online
    IPMP Group: node1 sc_ipmp0 Online hme0 Online
    Multi-owner Set name = racset, Set number = 1, Master = node1
    Host Owner Member
    node1 multi-owner Yes
    node2 multi-owner Yes
    Mediator Host(s) Aliases
    node1
    node2
    Driv Dbase
    d2 Yes
    After shutdown node1, node2 remain running
    -- Cluster Nodes --
    Node name Status
    Cluster node: node2 Online
    Cluster node: node1 Offline
    -- Cluster Transport Paths --
    Endpoint Endpoint Status
    Transport path: node2:qfe1 node1:qfe1 faulted
    Transport path: node2:qfe0 node1:qfe0 faulted
    -- Quorum Summary --
    Quorum votes possible: 3
    Quorum votes needed: 2
    Quorum votes present: 2
    -- Quorum Votes by Node --
    Node Name Present Possible Status
    Node votes: node2 1 1 Online
    Node votes: node1 0 1 Offline
    -- Quorum Votes by Device --
    Device Name Present Possible Status
    Device votes: /dev/did/rdsk/d2s2 1 1 Online
    -- Device Group Servers --
    Device Group Primary Secondary
    -- Device Group Status --
    Device Group Status
    -- Multi-owner Device Groups --
    Device Group Online Status
    Multi-owner device group: racset node2
    -- Resource Groups and Resources --
    Group Name Resources
    Resources: rac-rg rac-framework-rs rac-udlm-rs rac-svm-rs
    -- Resource Groups --
    Group Name Node Name State
    Group: rac-rg node1 Offline
    Group: rac-rg node2 Online
    -- Resources --
    Resource Name Node Name State Status Message
    Resource: rac-framework-rs node1 Offline Offline
    Resource: rac-framework-rs node2 Online Online
    Resource: rac-udlm-rs node1 Offline Offline
    Resource: rac-udlm-rs node2 Online Online
    Resource: rac-svm-rs node1 Offline Offline
    Resource: rac-svm-rs node2 Online Online
    -- IPMP Groups --
    Node Name Group Status Adapter Status
    IPMP Group: node2 sc_ipmp0 Online hme1 Online
    IPMP Group: node2 sc_ipmp0 Online hme0 Online
    Multi-owner Set name = racset, Set number = 1, Master = node1
    Host Owner Member
    node1 multi-owner Yes
    node2 No
    Mediator Host(s) Aliases
    node1
    node2
    Driv Dbase
    d2 Yes
    Anyone can help!!
    Chowsingsing from HK

Maybe you are looking for