Hi Team,
I am trying to get the user existence details over Unix boxes. But getting some unexpected behavior over QNA on system,
Someone tried earlier, your comments welcome:
[root@sinccbaprhp31 ~]# uname -a
Linux sinccbaprhp31 3.10.0-1127.el7.x86_64 #1 SMP Tue Feb 18 16:39:12 EST 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@sinccbaprhp31 ~]#
[root@sinccbaprhp31 ~]# cat /etc/group |grep itmgrp
itmgrp:x:522:root,aakumar3,sunisola,kaluhadi,pawak023
[root@sinccbaprhp31 ~]#
[root@sinccbaprhp31 ~]#
[root@sinccbaprhp31 ~]# /opt/BESClient/bin/qna
Default masthead location, using /etc/opt/BESClient/actionsite.afxm
Q: exists users whose (name of it = “pawak023”)
A: True
T: 6658
Q: exists users whose (name of it = “kaluhadi”)
A: False
T: 536
Q: exists users whose (name of it = “sunisola”)
A: False
T: 483
Q: exists users whose (name of it = “aakumar3”)
A: False
T: 514
Q: ^C
[root@sinccbaprhp31 ~]# id aakumar3; id sunisola; id kaluhadi; id pawak023
uid=5041(aakumar3) gid=5041(aakumar3) groups=5041(aakumar3),522(itmgrp)
uid=5045(sunisola) gid=5045(sunisola) groups=5045(sunisola),522(itmgrp)
uid=5049(kaluhadi) gid=5050(kaluhadi) groups=5050(kaluhadi),522(itmgrp)
uid=5054(pawak023) gid=5054(pawak023) groups=5054(pawak023),522(itmgrp)
[root@sinccbaprhp31 ~]#