psrinfo -p needs root login ?


 
Thread Tools Search this Thread
Operating Systems Solaris psrinfo -p needs root login ?
# 1  
Old 08-20-2009
psrinfo -p needs root login ?

Hi,

I tried running psrinfo command on couple of machines but found that if i login as root then it works.
But when i login other than root account, I get this error,

Code:
$ /usr/sbin/psrinfo -pv | fgrep UltraSPARC
/usr/sbin/psrinfo: illegal option -- p
usage:
        psrinfo [-v] [processor_id ...]
        psrinfo -s processor_id
$

Can anybody explain, if i need root login to run psrinfo with '-p' option?
and i would also like to know if from which version of sunos psrinfo with '-p' option is supported ?


Thanks in advance,
Roshan

Last edited by DukeNuke2; 08-20-2009 at 01:38 PM.. Reason: added CODE tags
# 2  
Old 08-20-2009
psrinfo -p option will give how many processes are working
so this can be seen as u login as root
if u want to see to as user just give root permissions to user

sun solaris 10 os 8/07

spandhan
# 3  
Old 08-20-2009
Thanks for quick responce.

I wanted to find the information about physical processors only.
i.e. using "prsinfo -vp" command.

So you mean, i can be only run, if login is root ?
# 4  
Old 08-20-2009
try prtdiag

What version of OS are you using? On Solaris 8,9,10 I could use psrinfo -pv as regular user. Other option is to try prtdiag command
# 5  
Old 08-20-2009
I tried on 5.9 and 5.10, on both i see that only root user could execute prsinfo -pv,

otherwise i could run psrinfo -v with user other than root.

Does any other command gives information on physical processors, without login as root user?
# 6  
Old 08-20-2009
Why can 't you just sudo power to that user for that command?
# 7  
Old 08-20-2009
Quote:
Originally Posted by chompy
Why can 't you just sudo power to that user for that command?
there is no "sudo" on a default solaris installation!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Su root or login root

Hi, I find there is some customized linux with application. When I use login account root and type the password. It is not allow to login. But if I login with specified user and password. Then I use command "su - " and type root passwd. It allow you to switch to "root" account . Or if i... (14 Replies)
Discussion started by: chuikingman
14 Replies

2. Shell Programming and Scripting

login as root user

hello all, if we haven't set a password to root user, how can we login as root user in konsole by using su? is it necessary to set password for root to login as root user?how can we set password to root user? (6 Replies)
Discussion started by: aarathy
6 Replies

3. Solaris

Looking for psrinfo-like command for Memory Modules

I've been looking for, but unable to find, a command/utility that functions kind of like psrinfo but for memory modules. I have Solaris 8 and Solaris 10 boxes. The output of prtdiag in Solaris 8 does not provide the status info for the CPUs and Memory Modules like it does in Solaris 10. Maybe... (1 Reply)
Discussion started by: Vi-Curious
1 Replies

4. AIX

why I cannot login by root

I can use sudo su to root from my user id through ssh. Also can change root password. However, I cannnot login by root from ssh. Does any body know why? (10 Replies)
Discussion started by: rainbow_bean
10 Replies

5. HP-UX

Cannot login root

With my SSH, my HP-UX cannot login to root. It will come out a message su: unknown id: root. But I can login by user oracle. I also cannot login to console either by using root or oracle anymore. What shall I do. (5 Replies)
Discussion started by: surizan
5 Replies

6. AIX

Can't login root account due to can't find root shell

Hi, yesterday, I changed root's shell in /etc/passwd, cause a mistake then I can not log in root account (can't find correct shell). I attempted to log in single-mode, however, it prompted for single-mode's password then I type root's password but still can not log in. I'm using AIX 5L version 5.2... (2 Replies)
Discussion started by: neikel
2 Replies

7. Solaris

psrinfo -v and psradm

Hi Guys, I have T1000 box and here is the output : SunOS t1000 5.10 Generic_118833-20 sun4v sparc SUNW,Sun-Fire-T1000 Here is the output of psrinfo : # psrinfo 0 on-line since 10/02/2006 12:00:06 1 on-line since 10/02/2006 12:00:06 2 off-line since 12/07/2006... (6 Replies)
Discussion started by: sysgate
6 Replies

8. AIX

root login

How do I make it so user "root" can not log directly into an AIX server? I want a user to be able to SU to it but not log into it to keep a log (2 Replies)
Discussion started by: breigner
2 Replies

9. Answers to Frequently Asked Questions

Lost root password / Can't login as root

We have quite a few threads about this subject. I have collected some of them and arranged them by the OS which is primarily discussed in the thread. That is because the exact procedure depends on the OS involved. What's more, since you often need to interact with the boot process, the... (0 Replies)
Discussion started by: Perderabo
0 Replies

10. UNIX for Dummies Questions & Answers

Root login question

Hi all I am administering Linux boxes (running rehat linux 7.3 and 8.0). The other day I tried to ssh from 1 linux box to the other. I was root on the client box. Surprisingly, I could login as root into the host after giving the password!! I am unable to get root login from a SSH client... (2 Replies)
Discussion started by: skotapal
2 Replies
Login or Register to Ask a Question