View Single Post

   
  #9 (permalink)  
Old 01-05-2008, 06:27 AM
Werner Behnke
 
Posts: n/a
Default Re: AIX 5.2 errormessage: Could not get "user" information


"Laurenz Albe" <albe@culturallNOSPAM.com> schrieb im Newsbeitrag
news:cqpcb2$i0s$1@at-vie-newsmaster01.nextra.at...
> Werner Behnke <w.behnke@uni-bonn.de> wrote:
> >> > my problem: "normal" non-root-users on an AIX 5.2 system don't get

their
> >> > username.
> >> >
> >> > aix9:/> /bin/su - informix -c "id"
> >> > uid=1001 gid=1000
> >>
> >> > I tried to debug what happens with
> >> > truss -e /bin/su - informix -c "id -nu"
> >> > These files were opened:
> >>
> >> > open("/etc/profile", O_RDONLY) Err#13 EACCES

>
> >> Maybe a 'chown 0644 /etc/profile' can remedy your problem.

>
> > thank you, but the problem still exists (r-xr-xr-x seem to be

aix-default):
>
> r-xr-xr-x = 0555 is ok, I didn't mean to change the default.
>
> Still, you have a problem accessing /etc/profile, as your trace indicates.
> Can you 'cat /etc/profile' as user informix?
>
> Have you fiddled with ACL?
> What are the permissions of /etc?
> Does it work for other users?
> Do you get the same access denied message if you run truss as user

informix?
>
> Yours,
> Laurenz Albe


Bingo!

aix9:/> ls -ld /etc
drw-r--r-- 28 informix informix 12288 27 Dez 17:48 etc
aix9:/> chown root:system etc
aix9:/> chmod 755 etc
aix9:/>

Now it works (thanks a lot!):

aix9:/> su - uucp -c id -nu
uucp
aix9:/>
aix9:/> su - informix -c id -nu
informix
aix9:/>

Regards,
Werner


Reply With Quote