Solved

Linux system UUID as regular user

Posted on 2013-05-28
6
655 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Congratulations! You’re Certified – Now What?

Starting a new career can be overwhelming. Becoming certified in your field of expertise is a great start, but where do you go from here?  Here are some tips to help you on your career journey.

 

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

622 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