Solved

Linux system UUID as regular user

Posted on 2013-05-28
6
561 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 37

Expert Comment

by:Gerwin Jansen
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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 37

Assisted Solution

by:Gerwin Jansen
Gerwin Jansen 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now