Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-08-2005, 02:41 PM   #1
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Rep: Reputation: 15
Securing uname command?

Is it a good idea to "secure" the uname command? I'd prefer not to give out my OS, hostname, kernel version, architecture, etc...

Can I secure it by simply running the following command?
mv /bin/uname /sbin/uname

Old 02-08-2005, 02:46 PM   #2
Registered: Apr 2004
Distribution: Debian
Posts: 185

Rep: Reputation: 30
You can't secure a file by doing that justb ecause it's not in there search path doesn't mean they can't type out the whole path to execute it. You can "chmod 750 /bin/uname" but it seems that most everything wants to execute uname so you might break some apps that rely on this.
Old 02-08-2005, 02:47 PM   #3
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Give it out to who? Is that a kiosk system or something?
How many people, other than yourself, have shell access?

Old 02-08-2005, 04:16 PM   #4
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Original Poster
Rep: Reputation: 15
Your right, it is probably not a good idea since other apps rely on this. My host runs Apache, MySQL and SSH services... I thought it may help to prevent someone from gaining (advertised) knowledge of the kernel version and using specific vulnerabilities.

Although the uname command should only be visible within a shell, there are leaks from various web services (phpinfo(), phpmyadmin, mambo, etc).

No worries - it seems like this is security through obscurity anyways. I'll stick to iptables.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Uname ? phr3nzal Linux - Software 4 10-07-2005 08:52 AM
uname huntz Slackware 3 09-30-2004 06:53 AM
uname -a BRAHmS Linux - Newbie 1 05-11-2004 09:45 PM
uname -r 2.6.4 /bin/bash General 25 03-16-2004 07:14 AM
uname -s jpbarto Linux - General 2 07-31-2003 12:24 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration