‎10-31-2023 09:55 PM - last edited on ‎03-31-2024 03:57 PM by Mercedes_O
Hello, I need to obtain a list of the users of each Linux server, there is a report that does exactly that, but with Windows. How can I get this list?
Thank you!
Solved! Go to Solution.
‎11-01-2023 05:26 AM
I use such query
Select Top 1000000 tblassets.AssetID,
tblassets.AssetName,
tblLinuxSystem.OSRelease,
tblassets.IPAddress,
tblassets.Lastseen,
tblassets.Lasttried,
tblLinuxUser.UserName,
tblLinuxUser.Type,
tblLinuxUser.Comment,
tblLinuxUser.HomeDirectory,
tblLinuxUser.LastChanged,
tblLinuxUserLogon.Port,
tblLinuxUserLogon.IpAddress As IpAddress1,
tblLinuxUserLogon.LogonTime
From tblassets
Inner Join tblLinuxUser On tblassets.AssetID = tblLinuxUser.AssetId
Inner Join tblLinuxSystem On tblassets.AssetID = tblLinuxSystem.AssetID
Left Join tblLinuxUserLogon On tblLinuxUser.Id = tblLinuxUserLogon.Id
Where tblLinuxUser.HomeDirectory Like '/home/%'
‎11-01-2023 05:26 AM
I use such query
Select Top 1000000 tblassets.AssetID,
tblassets.AssetName,
tblLinuxSystem.OSRelease,
tblassets.IPAddress,
tblassets.Lastseen,
tblassets.Lasttried,
tblLinuxUser.UserName,
tblLinuxUser.Type,
tblLinuxUser.Comment,
tblLinuxUser.HomeDirectory,
tblLinuxUser.LastChanged,
tblLinuxUserLogon.Port,
tblLinuxUserLogon.IpAddress As IpAddress1,
tblLinuxUserLogon.LogonTime
From tblassets
Inner Join tblLinuxUser On tblassets.AssetID = tblLinuxUser.AssetId
Inner Join tblLinuxSystem On tblassets.AssetID = tblLinuxSystem.AssetID
Left Join tblLinuxUserLogon On tblLinuxUser.Id = tblLinuxUserLogon.Id
Where tblLinuxUser.HomeDirectory Like '/home/%'
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now