Could not open /etc/.cpr_config


 
Thread Tools Search this Thread
Operating Systems Solaris Could not open /etc/.cpr_config
# 1  
Old 05-04-2015
Could not open /etc/.cpr_config

hello everybody.
recently I have decided to change settings of power manager, and appeared the following messageSmilie:

Code:
could not open /etc/.cpr_config

I work with Sun Blade 1500, SunOs 5.10, CDE.

Thanks in advance.

Last edited by wolfgang; 05-04-2015 at 01:14 PM..
# 2  
Old 05-04-2015
Ensure /usr/sbin/pmconfig is suid-root
Code:
ls -l /usr/sbin/pmconfig
-r-sr-xr-x   1 root     bin        30816 Aug 16  2007 /usr/sbin/pmconfig

According to
Code:
man pmconfig

ensure /etc/default/power has
Code:
PMCHANGEPERM=console-owner

And login on the box console, not via remote-access!
This User Gave Thanks to MadeInGermany For This Post:
# 3  
Old 05-07-2015
It is strange, but there is not pmconfig in /usr/sbin. Smilie and /etc/default does not have power.Smilie

Code:
Replacing /etc/power.conf and pmconfig With poweradm

   The /etc/power.conf configuration file and the pmconfig(1M) utility might be replaced with  the poweradm(1M) command in a future Oracle Solaris release. 
The number of  properties that can be configured with the poweradm(1M) command will be minimal.



And what I should do then...

P.S. Solaris 10 1/13

Last edited by wolfgang; 05-08-2015 at 01:14 AM..
# 4  
Old 05-08-2015
Run
Code:
pkgchk SUNWpmr

Missing? ("no pathnames were associated with ...")
Then install SUNWpmr from a Solaris 10 distribution media!
I have the following on my system (yes, I changed /etc/power.conf):
Code:
pkgchk SUNWpmr
ERROR: /etc/power.conf
    modtime <01/11/13 09:35:23 PM> expected <01/10/14 01:24:08 PM> actual
    file size <514> expected <532> actual
    file cksum <43842> expected <45200> actual
cat /etc/release
                   Oracle Solaris 10 1/13 s10s_u11wos_24a SPARC
  Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.
                            Assembled 17 January 2013

# 5  
Old 05-11-2015
Hi again.

Unfortunately I (nobody knows) don't know (this guy is not available anymore) exactly which disk was used for this installation.

Therefore:
  • I tried to install SUNWPMR package from Sol_10_u11_ga. This package was not recognized or founded Smilie. Of course, I have put this pkg in /var/spool/pkg directory.
  • Then I tried to install SUNWpmr pkg from another disk (probably it was sol_10_u2). It was recognized and successffuly installed.
  • I checked, the /usr/sbin. It still does not contain pmconfig.
  • It appeared /etc/default/power. It contains all the necessary strings as you pointed above.
    Code:
    PMCHANGEPERM=console-owner
    CPRCHANGEPERM=console-owner


  • It appeared /etc/power.conf
Code:
# Copyright (c) 1996 - 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
#pragma ident    "@(#)power.conf    1.16    01/03/19 SMI"
#
# Power Management Configuration File
#
# This entry keeps removable media from being powered down unless the
# console framebuffer and monitor are powered down
# (See removable-media(9P))

device-dependency-property removable-media /dev/fb

# Auto-Shutdown        Idle(min)    Start/Finish(hh:mm)    Behavior
autoshutdown        30        9:00 9:00        unconfigured

autopm            default



  • After installing SUNWpmu package. It appeared /usr/sbin/pmrconfig
  • After exiting of command reboot -r the /etc/.cpr_config (blank) appeared.
But, when I try open CDE window --->Workspace menu ---> Tools --->Power manager.

After 2-3 sec it appears the message.
Code:
Could not get power management status from system

The screen still goes on blank in 15 minutes.Smilie If there are not any mouse movements there, certainly.

P.S. Probably I installed SUNWpmr, SUNWpmu packages from wrong Solaris version? Could you upload yours?

Last edited by wolfgang; 05-11-2015 at 04:34 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Vim help.txt automatically open every time I open vi

Hi Friends, Every I try to open a vi window, vim help.txt automatically opens evertime. After doing ZZ or :q! also the same page opens automatically. How to stop this? Is it machine specific ? Other users who are opening the same servers and files are not facing this issue. Thanks... (3 Replies)
Discussion started by: sudiptabhaskar
3 Replies

2. UNIX for Beginners Questions & Answers

Vim help.txt automatically open every time I open vi

Hi Friends, Every I try to open a vi window vim help.txt automatically opens evertime. After doing ZZ or :q! also the same page opens automatically. How to stop this? Is it machine specific ? Other users who are opening the same servers and files are not facing this issue. Thanks... (1 Reply)
Discussion started by: sudiptabhaskar
1 Replies

3. Solaris

Is it possible to install Solaris softwares on Open Solaris or Open Indiana?

Hi there, I'm sorry in advance if my question seems stupid, but I can't figure out myself. I was wondering. Is it possible to install a Solaris program on an Open Solaris or Open Indiana operating system? After searching the web for a long time, it seems that Open Solaris was released by... (7 Replies)
Discussion started by: firstpost
7 Replies

4. Red Hat

cannot set user id: Resource temporarily unavailable (not open file/open process related)

First post, sorry to be a bother but this one has been dogging me. I have a process user (java application server) that trips a resource limit every couple weeks and need help finding what limit we're hitting. First, this is what's running: This is the error when jobs are run or the... (0 Replies)
Discussion started by: Katahdin
0 Replies

5. IP Networking

Unknown open port: "6881/tcp open bittorrent-tracker" found with nmap

Hi. I ran nmap on my server, and I get the following: Starting Nmap 4.76 ( http://nmap.org ) at 2009-03-19 16:33 EDT Interesting ports on -------- (-----): Not shown: 997 closed ports PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 6881/tcp open bittorrent-tracker The... (0 Replies)
Discussion started by: Rledley
0 Replies

6. Shell Programming and Scripting

Performing an open/read, open/write

I'm trying to do two different things (converting an OpenVms .com to a ksh shell script): 1) open/read/err= 2) open/write/err= Any help? I've found some things, but can't seem to find the correct way. (1 Reply)
Discussion started by: prosserj
1 Replies
Login or Register to Ask a Question