Solved

Linux system UUID as regular user

Posted on 2013-05-28
6
605 Views
Last Modified: 2013-05-29
Hi,
Is there a command to query the system UUID without root same as lshal on RH5 and above for older linux version? (e.g.: RedHat AS 3, Suse Enterprise Server 8)

Thanks,
Tal
0
Comment
Question by:questil
  • 2
  • 2
  • 2
6 Comments
 
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 39201426
Can you try:

find /etc/sysconfig -name *uuid*

on your RH3 machine?
0
 

Author Comment

by:questil
ID: 39201440
This is what it found:
/etc/sysconfig/rhn/up2date-uuid

And the UUID in this file is not the same as the UUID I get from dmidecode command.
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39201462
Can you clarify the uuid you are referring? Can you post a sample output?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:questil
ID: 39201519
I need to be able to retrieve as a non root user the same UUID as I get as root with: dmidecode |grep -i uuid
0
 
LVL 21

Accepted Solution

by:
Mazdajai earned 250 total points
ID: 39201664
dmidecode is root only. I am not aware there is an alternative for dmidecode.

One way is to add regular user to sudoer to use dmidecode.
0
 
LVL 38

Assisted Solution

by:Gerwin Jansen, EE MVE
Gerwin Jansen, EE MVE earned 250 total points
ID: 39202660
>> I need to be able to retrieve as a non root user

sudo is the only way in that case (as Mazdajai is mentioning already)
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question