niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » AIX
Snap problem
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
Author Message
Mark Taylor
*nix forums Guru Wannabe


Joined: 21 Feb 2005
Posts: 292

PostPosted: Thu Feb 10, 2005 11:38 am    Post subject: Re: Snap problem Reply with quote

So, it looks like the id command is screwed up.. it should produce this
output.

/home/root> id
uid=0(root) gid=0(system)
groups=2(bin),3(sys),7(security),8(cron),10(audit),11(lp)

/home/root> id -ru
0

Can you run some debug info, 1st check your ML levels etc..

lppchk -v
oslevel -r
instfix -i | grep ML
lslpp -h bos.rte.security
type id

Then run file and what on the path to id given from the above command
to see if anyone has corrupted, or hacked your id command i.e.

file /usr/bin/id
what /usr/bin/id

Or to cut out the middle man, you could just update bos.rte.security to
the latest level, or you could run truss against the id command to see
what its doing.

Cheers
Mark Taylor
Back to top
mk
*nix forums beginner


Joined: 10 Feb 2005
Posts: 1

PostPosted: Thu Feb 10, 2005 5:52 am    Post subject: Re: Snap problem Reply with quote

Both id and id -ru commands produce the following output:

uid=0(root) gid=0(system) groups=2(bin),3(sys),7(security),8(cron),10(audit),11(lp)


"Mark Taylor" <mky@talk21.com> wrote in message news:<1107945328.276906.327480@g14g2000cwa.googlegroups.com>...
Quote:
userid=`id -ru`
if [ "$userid" != 0 ]
then
echo "Must be root user [0] to use this utility."
exit 2
fi


What does id -ru produce on your system for the root user ?

Rgds
Mark Taylor
Back to top
Mark Taylor
*nix forums Guru Wannabe


Joined: 21 Feb 2005
Posts: 292

PostPosted: Wed Feb 09, 2005 9:35 am    Post subject: Re: Snap problem Reply with quote

userid=`id -ru`
if [ "$userid" != 0 ]
then
echo "Must be root user [0] to use this utility."
exit 2
fi


What does id -ru produce on your system for the root user ?

Rgds
Mark Taylor
Back to top
Laurenz Albe
*nix forums Guru


Joined: 21 Feb 2005
Posts: 478

PostPosted: Wed Feb 09, 2005 9:13 am    Post subject: Re: Snap problem Reply with quote

mk <b_eagle7@yahoo.com> wrote:
Quote:
# snap -a
Must be root user [0] to use this utility.
# snap -r
Must be root user [0] to use this utility.
But exactly, i'm root (am i really??!?)
# whoami
root

What can be the problem which produce such a silly output?

Hard to say. What is the output of the 'id' command in this situation?

Can you check if snap is an executable or a shell script? If it is the
latter, look into it.

Yours,
Laurenz Albe
Back to top
mk
*nix forums beginner


Joined: 09 Feb 2005
Posts: 1

PostPosted: Wed Feb 09, 2005 7:44 am    Post subject: Snap problem Reply with quote

Hi to all,
When I execute snap -a /snap -r command, I have get the following error:
# snap -a
Must be root user [0] to use this utility.
# snap -r
Must be root user [0] to use this utility.
But exactly, i'm root (am i really??!?)
# whoami
root

What can be the problem which produce such a silly output?

Any help will be appreciated.

Thanks
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 10:11 pm | All times are GMT
navigation Forum index » *nix » AIX
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Postfix sending problem for local domain remote email monkey_magix Postfix 0 Mon Sep 10, 2007 10:17 am
No new posts bounce problem murkis Postfix 0 Sun Oct 08, 2006 3:45 pm

Mortgage Calculator | Debt Consolidation | Free Advertising | Xecuter 3 Mod Chip | Credit Card Advice
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1961s ][ Queries: 20 (0.1188s) ][ GZIP on - Debug on ]