This is a discussion on Snap problem within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi to all, When I execute snap -a /snap -r command, I have get the following error: # snap ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| mk <b_eagle7@yahoo.com> wrote: > # 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 |
| |||
| 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.googleg roups.com>... > 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 |
| ||||
| 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 |