Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: mohtashims
3,755
Posted By mohtashims
Will updating the "id utility" to the latest...
Will updating the "id utility" to the latest version on the old 6.1 linux help ?
3,755
Posted By mohtashims
In which case what would be the best approach...
In which case what would be the best approach towards getting the username given the pid ?
3,755
Posted By mohtashims
If so, how can i get the user id of a running...
If so, how can i get the user id of a running process that works on all OS types ? Below is what i have been using so far:

Id -nu `cat \proc\pid\loginuid`
3,755
Posted By mohtashims
Id command does not return correct username
On server1 the "id" command works fine and returns "myuser" user as was expected. Below are the details of the good server.
$ id -nu 501
myuser

$ cat /etc/system-release
Red Hat Enterprise...
Showing results 1 to 4 of 4

 

Featured Tech Videos

All times are GMT -4. The time now is 08:52 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy