The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
grep unix.com with google



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #8 (permalink)  
Old 11-29-2009
Registered User
 

Join Date: Mar 2008
Posts: 1,346
Please post the output from the following command when logged in as the user:


Code:
tty

Please post the output from the following commands when logged in as "root":


Code:
ls -lisad /var/adm/wtmp
ls -lisad /usr/adm/wtmp

bdf /usr /var

  #9 (permalink)  
Old 11-29-2009
Registered User
 

Join Date: Nov 2009
Posts: 7
Logged in as user

$ tty
/dev/ttyp1
$


Logged in as root
# ls -lisad /var/adm/wtmp
24 96 -rw-rw-r-- 1 adm adm 46260 Nov 25 16:29 /var/adm/wtmp
# ls -lisad /usr/adm/wtmp
24 96 -rw-rw-r-- 1 adm adm 46260 Nov 25 16:29 /usr/adm/wtmp
# bdf /usr /var
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol7 10485760 3814240 6619488 37% /usr
/dev/vg00/lvol8 10485760 2034584 8385424 20% /var
#
  #10 (permalink)  
Old 12-08-2009
Registered User
 

Join Date: Nov 2009
Posts: 7
Who works for root but not user

Logged in as root
# who -R
root pts/ta Dec 7 22:47 (1IMAGE)
awrpt pts/tb Dec 7 11:00 (DUKE-TESTKRON)
awrpt pts/tc Dec 7 11:00 (DUKE-TESTKRON)
root pts/td Dec 7 22:58 (1IMAGE)
# who -m
root pts/td Dec 7 22:58
# who -mR
root pts/td Dec 7 22:58 (1IMAGE)
# who am i
root pts/td Dec 7 22:58
# who am i -R
root pts/td Dec 7 22:58 (1IMAGE)
#


Logged as user
$ who -R
root pts/ta Dec 7 22:47 (1IMAGE)
awrpt pts/tb Dec 7 11:00 (DUKE-TESTKRON)
awrpt pts/tc Dec 7 11:00 (DUKE-TESTKRON)
dw pts/td Dec 7 23:00 (1IMAGE)
$ who -m
$ who -mR
$ who am i
$ who am i -R
$
  #11 (permalink)  
Old 12-09-2009
Registered User
 

Join Date: Mar 2008
Posts: 1,346
This bit makes no sense:

Quote:
Logged in as user

$ tty
/dev/ttyp1
$

The device name does not appear in your "who -R" list. Looks like some sort of serial terminal.


Please check permissions on your "/etc/hosts" file. Usually 644 .


Did you post the permissions of your "/etc/utmp" file ? Usually 644 .
  #12 (permalink)  
Old 12-09-2009
Registered User
 

Join Date: Nov 2009
Posts: 7
The problem is not the -R option but the -m option.

# ls -al /etc/hosts
-rw-rw-rw- 1 root root 627 Dec 3 14:25 /etc/hosts
# ls -al /etc/utmp
-rw-rw-rw- 1 root sys 0 Dec 9 09:31 /etc/utmp
#

$ tty
/dev/ttyp1
$ who -R
root console Dec 9 09:27 (HP3600)
dw pts/ta Dec 9 09:55 (1IMAGE)
awrpt pts/tb Dec 7 11:00 (DUKE-TESTKRON)
awrpt pts/tc Dec 7 11:00 (DUKE-TESTKRON)
root pts/td Dec 8 13:10 (1IMAGE)
$
$ who
root console Dec 9 09:27
dw pts/ta Dec 9 09:55
awrpt pts/tb Dec 7 11:00
awrpt pts/tc Dec 7 11:00
root pts/td Dec 8 13:10
$
$ who -m
$
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Urgent -Please help me 'mail' option not working mars_girish9 UNIX for Dummies Questions & Answers 1 08-08-2008 09:35 AM
sub option of awk command not working with "\" character. shareef Shell Programming and Scripting 1 06-10-2008 08:21 AM
For ls command,-r option is not working on OSF1 asmita UNIX for Advanced & Expert Users 1 04-16-2007 11:41 PM
-d option not working... rgouette UNIX for Dummies Questions & Answers 2 09-13-2006 05:56 PM
Why does the 'ps' command with -u option not working? ElCaito SUN Solaris 4 02-26-2006 07:14 PM



All times are GMT -4. The time now is 11:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0