Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Linux system UUID as regular user

Posted on 2013-05-28
6
Medium Priority
?
722 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
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 

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 750 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 750 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Fine Tune your automatic Updates for Ubuntu / Debian
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…
Suggested Courses
Course of the Month8 days, 10 hours left to enroll

876 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