| Author |
Message |
Mark Taylor *nix forums Guru Wannabe
Joined: 21 Feb 2005
Posts: 292
|
Posted: Thu Feb 10, 2005 11:38 am Post subject:
Re: Snap problem
|
|
|
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
|
Posted: Thu Feb 10, 2005 5:52 am Post subject:
Re: Snap problem
|
|
|
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
|
Posted: Wed Feb 09, 2005 9:35 am Post subject:
Re: Snap problem
|
|
|
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
|
Posted: Wed Feb 09, 2005 9:13 am Post subject:
Re: Snap problem
|
|
|
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
|
Posted: Wed Feb 09, 2005 7:44 am Post subject:
Snap problem
|
|
|
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 |
|
 |
|