UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 27th, 2005, 09:45 AM
chrs0302 chrs0302 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 43 chrs0302 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 30 sec
Reputation Power: 4
man and who commands on Solaris 10

I was trying to install one application on our Soalris 10 Intel development server and made some unnecessary changes to the file access permissions including many system files under /var etc. After that we have set most of the permissions ( I am not 100% sure) as usual and now the problem is with man and who commands.The output is here for you reference and tips.

[root@yakdev1]/ >uname -a
SunOS yakdev1 5.10 Generic_Patch i86pc i386 i86pc[root@yakdev1]/ >
[root@yakdev1]/ >

[root@yakdev1]/ >man date
Reformatting page. Please Wait...nroff: cannot create temp file.
done

[root@yakdev1]/ >

[root@yakdev1]/ >who
who: Error --- entry has ut_type of 2560
when maximum is 10
who: Error --- entry has ut_type of 512
when maximum is 10
who: Error --- entry has ut_type of 256
when maximum is 10
who: Error --- entry has ut_type of 1536
when maximum is 10
who: Error --- entry has ut_type of 1536
when maximum is 10
who: Error --- entry has ut_type of 2048
when maximum is 10
who: Error --- entry has ut_type of 2048
when maximum is 10
who: Error --- entry has ut_type of 2048
when maximum is 10
who: Error --- entry has ut_type of 2048
when maximum is 10
who: Error --- entry has ut_type of 1792
when maximum is 10
who: Error --- entry has ut_type of 2048
when maximum is 10
who: Error --- entry has ut_type of 2048
when maximum is 10
who: Error --- entry has ut_type of 2048
when maximum is 10
who: Error --- entry has ut_type of 2048
when maximum is 10
trial1 pts/2 Jul 27 10:13 ......
trial2 pts/1 Jul27 09:00 ......

How to rectify these two issues and get the desired usual output.

Thanks in advance

Reply With Quote
  #2  
Old July 27th, 2005, 10:21 AM
stdunbar stdunbar is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2004
Location: Superior, CO, USA
Posts: 1,730 stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 23 h 20 m 21 sec
Reputation Power: 375
Send a message via ICQ to stdunbar Send a message via Yahoo to stdunbar
The first one is a permissions problem. man uses things like /tmp to write temporary files to in the troff processing. On my Solaris 10 Intel box the /tmp directory permissions are:

Code:
drwxrwxrwt   7 root     sys          375 Jul 27 09:14 tmp/


which is a "chmod 1777 /tmp"

For the second issue who reads /var/adm/utmpx. I might give up on that one and do a "cat /dev/null > /var/adm/utmpx" to reset it.

Reply With Quote
  #3  
Old July 27th, 2005, 11:58 AM
chrs0302 chrs0302 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 43 chrs0302 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 30 sec
Reputation Power: 4
man and who on Solaris 10 Intel

Hi Yellow Belt

Thanks for that.
Now who is working fine and giving the output.

About the second issue i.e., man command, I have checked the permissions for /tmp and they are there exactlyr as required. I still tried with "chmod 1777 /tmp" .Even after that man command is producing the same error.

Once again thanks in advance and I appreciate that.

Reply With Quote
  #4  
Old July 27th, 2005, 12:00 PM
chrs0302 chrs0302 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 43 chrs0302 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 30 sec
Reputation Power: 4
man and who on Solaris 10 Intel

Hi White Belt

I am sorry for the typo.

"Hi Yellow Belt".

Reply With Quote
  #5  
Old July 27th, 2005, 12:14 PM
stdunbar stdunbar is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2004
Location: Superior, CO, USA
Posts: 1,730 stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 23 h 20 m 21 sec
Reputation Power: 375
Send a message via ICQ to stdunbar Send a message via Yahoo to stdunbar
The belt is for how many posts you have. I'm stdunbar...

Try this:
Code:
truss -f -o somefile man date


The "somefile" argument will be any file name you choose. Basically what you're doing is seeing what system commands are run and where the problem is. If you zip up the file and attach it to a post I will be glad to help you figure out what is going on.

Reply With Quote
  #6  
Old July 27th, 2005, 12:50 PM
chrs0302 chrs0302 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 43 chrs0302 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 30 sec
Reputation Power: 4
Hi stdunbar

I run the command (truss -f -o somefile man date) and directed the output to a file called /tmp/file123. I zipped the file123 and named it as myzip. Now Pl let me know how to attach this zipped file (myzip) to this forum's email.

Thanks

Reply With Quote
  #7  
Old July 27th, 2005, 01:00 PM
stdunbar stdunbar is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2004
Location: Superior, CO, USA
Posts: 1,730 stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 23 h 20 m 21 sec
Reputation Power: 375
Send a message via ICQ to stdunbar Send a message via Yahoo to stdunbar
When you post a message you can scroll down a little to see the Manage Attachments button. When you select that it'll let you attach the file.

Reply With Quote
  #8  
Old July 28th, 2005, 12:04 PM
chrs0302 chrs0302 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 43 chrs0302 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 30 sec
Reputation Power: 4
Hi stdunbar

Thanks a lot for your help. I tried a lot to copy the zipped file to my office email so that it can be attached to this forum here. But unfortunately /usr/sbin/sendmail has been corrupted by the previous play arounds.We are about to rebuild the system.

Once again I appreciate your kind hearted support.

Reply With Quote
  #9  
Old July 28th, 2005, 12:24 PM
stdunbar stdunbar is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2004
Location: Superior, CO, USA
Posts: 1,730 stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level)stdunbar User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 23 h 20 m 21 sec
Reputation Power: 375
Send a message via ICQ to stdunbar Send a message via Yahoo to stdunbar
Quote:
Originally Posted by chrs0302
But unfortunately /usr/sbin/sendmail has been corrupted by the previous play arounds.We are about to rebuild the system.


That sounds like a good idea given that you don't know what other things are lurking on the system that might be broken.

As a general philosophy, very few "system" files need to be modified in a Unix base O/S. Yes, there are a few configuration type things for things like sending mail and adding users, but it sounds like things got a little over that on your system. Make small changes, backup any file that you want to change before changing it, and make sure that the previous changes did what you want before moving on. Do as little as possible as the user "root". There are some things you must do as root, but limit it whenever possible.

Good Luck!

Reply With Quote
  #10  
Old July 29th, 2005, 10:27 AM
chrs0302 chrs0302 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 43 chrs0302 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 30 sec
Reputation Power: 4
Hi stdunbar

Very nice of you. Your suggestions are right especially with the usage of root authority in the *nix environment. Fortunately this is a development server and not a big deal. But you are right. Procedure is procedure and ultimately it develops good habits/good environment/good professionalism.

Once again thanks for all your time and help.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > man and who commands on Solaris 10


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT