Results 1 to 3 of 3
Hi,
I have found two ways to get the main board product name:
[sudo lshw]
[sudo dmidecode]
Is it the nature of this info that's making it protected or is ...
- 05-10-2011 #1Just Joined!
- Join Date
- Apr 2011
- Posts
- 5
Get main board product name without sudo
Hi,
I have found two ways to get the main board product name:
- [sudo lshw]
[sudo dmidecode]
Is it the nature of this info that's making it protected or is it the source code of these tools?
Is there any way to get main board product name without sudo? Shall I dig inside the source code of these tools?
Prashant
- 05-10-2011 #2
The mainboard info is located in the root account of file system. So Admin only has the right to access that info. Hence sudo, su, with a password to get that info from root file system. Once you access that info. You can copy and paste it to text file and save the text in /home where users can have access without using sudo.
Linux Registered User # 475019
Lead,Follow, or get the heck out of the way
AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
Open CourseWare for Linux Geeks
- 05-13-2011 #3Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,970
If you want to take the security risk, you can enable the setuid bit on these applications (as root):
On my system, lshw is executable by regular users without sudo. It is also in /usr/sbin, so most users may need to either execute it via the full path /usr/sbin/lshw, or add /usr/sbin to their PATH environment.Code:chmod +s /usr/sbin/dmidecode
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote