**DO NOT USE!** This tag is slated for deletion See this meta discussion: http://meta.superuser.com/q/8402/107240. Questions about the OS, such as Red Hat Enterprise Linux, should use [rhel] or the like. Red Hat is the developer, the company itself.

learn more… | top users | synonyms

39
votes
8answers
196k views

How do you automatically detect a new network card in CentOS 6 / RedHat?

I'm using CentOS 6 in a virtual environment. When cloning a virtual version of CentOS, the old eth adapters are "removed" and replaced with new ones and net MAC addresses. However, the ifcfg-ethn ...
37
votes
3answers
68k views

How do I make sudo preserve my environment variables?

Using sudo 1.7.4p4 on Solaris 5.10 and sudo 1.6.7p5 on RHEL4 u6 I can't see how to preserve my environment variables, for instance $PYTHONPATH. I've added this line to sudoers, but it doesn't make any ...
30
votes
5answers
14k views

Sudo vs root; any actual differences?

I'm working with a support member for a product, and he insists that I need to be root to install a series of patches, and that sudo won't work; he doesn't provide a reason but seems very firm in his ...
23
votes
2answers
27k views

What is the difference between Amazon Linux and RedHat Enterprise Linux on AWS EC2?

I am very new to this and I don't even know if I should ask this question here or on Stackoverflow or ServerFault. The Question I wish to set up a EC2 instance on Amazon Web Services. My ...
20
votes
4answers
4k views

how to disable SendEnv variables set in ssh_config from ~/.ssh/config

I couldn't find that anywhere so I'm wondering am I the only one hitting such issue. By default ssh on Red Hat and Debian at least has a ssh_config with SendEnv option passing LC* and LANG variables ...
18
votes
4answers
12k views

Why is the size of a directory always 4096 bytes in unix?

I am sure a directory file has much less information than 4096 bytes. I know the sector size is 4096 bytes. But normal files smaller than that do exist. Why does Unix reserve 4096 bytes for each ...
13
votes
3answers
24k views

Where are the rpm files after installation using yum?

redhat 5.4. I have installed a package using yum the package was wireshark. However, after it has installed. Where can I find the rpm package? I would like to locate the actual wireshark.rpm ...
13
votes
2answers
10k views

Cannot switch to jenkins user redhat linux

I have a redhat linux server running jenkins. I setup jenkins as per the instructions mentioned here https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions The problem ...
10
votes
7answers
19k views

Is there a free (as in money) version of Redhat linux? [closed]

I've not dabbled with Linux for a while, but I need to, I am slightly outraged RedHat Linux is not free... or am I being dumb? Is there a free version available? If not what are the best ...
9
votes
2answers
44k views

Can apt-get be used on Red Hat systems?

We know that apt-get is used on debian based systems so what is used on Red Hat Enterprise Linux (RHEL) systems? Is it possible to install and use apt-get on Red Hat?
9
votes
4answers
13k views

How to get alt-tab on GNOME to cycle through applications like Windows?

I am running GNOME desktop v2.16.0 on RedHat Enterprise Linux v5.3. I would like to assign the Alt-Tab key to cycle through the currently running applications like Microsoft Windows does. I believe ...
8
votes
4answers
9k views

Setting Linux environment variables

I am running Red Hat Linux Enterprise 5; I am always using the export command to set environment variables. Are there any other ways to set environment variables and what are the ...
8
votes
3answers
35k views

RedHat Enterprise Linux 6 - Edit Hostname

I'm currently trying to edit my hostname in a RedHat Enterprise Linux 6 virtual machine but I have some problem. I tried using the function hostname like this: hostname -v bravo.cmweb.com And it ...
7
votes
3answers
2k views

Is sendmail a smtp server? Is there any difference between MTA and mail server?

I am new to mail and do not exactly know how it works. I have seen administrators use sendmail to send out email. Is sendmail a smtp server or is it a client that need to relies on smtp server to ...
7
votes
2answers
5k views

How to extract RPM from RPM database in RedHat

Is there a way to extract an installed RPM from an RPM database on RedHat Linux to reproduce the original .rpm file?
7
votes
2answers
7k views

Installing R on RHEL 7

I'm trying to install R on RHEL 7. I'm using epel-release-7-2.noarch.rpm and resolved many dependencies (one by one by manual .rpm installation) but at the end of the dependency resolution I got these ...
7
votes
1answer
667 views

Identifying lost physical memory

I am having issues with a server running out of physical memory and I'm having troubles discerning whether it is from my application's Java process or something else on the server. Let's take the ...
7
votes
2answers
1k views

How to configure linux to enforce new users to change their password on first login

I'm trying to configure users password policy on RHEL 6.6 and I want system to ask newly created users to change initial password on first login. Note, that I tried to set EXPIRE variable to 0 and ...
6
votes
3answers
82k views

What is the exact command to restart a Redhat linux system?

I am new in linux. I want to know the exact command to restart a red hat linux server 6.3. and it has to start network drivers etc. I am using VPN to connect to remote machine using VNC. Can anyone ...
6
votes
8answers
14k views

Where is installed software stored in Linux? [duplicate]

Possible Duplicate: Where is a typical Linux program installed I'm new to Linux and I want to ask a bit more about packages. In Windows, I download an .exe file and install it. When I ...
6
votes
4answers
24k views

Command to find files for specific time range

I have few Linux RedHat machines and i must find some files on them. The problem is that they have a lot of files and folders since 2004 year. And i don't know where exactly to look for this files. ...
5
votes
4answers
6k views

Is there a free version of Red-Hat Linux for home desktops?

Is there a free edition of Red-Hat for home desktops?
5
votes
3answers
27k views

How do you create a new network eth?

I have a machine that has eth0 and eth1, and now I want to create an eth2 and assign it some IP address. What's the command for doing this?
5
votes
2answers
421 views

Red Hat Enterprise Linux based on Fedora?

According to this site, Red Hat Enterprise Linux is based on Fedora. Is this true?
5
votes
2answers
14k views

“bad interpreter: Permission denied” How can I prevent this error?

I want to run program directly such as ./program without define the interpreter in shell first. so, how can i want to prevent this error? bad interpreter: Permission denied My operating system ...
5
votes
2answers
287 views

Restrict device ownership to root only. But why?

NSA's Guide to the Secure Configuration of Red Hat Enterprise Linux 5 recommands restricting device ownership to root only. So my question is why should we restrict device ownership to root? And ...
5
votes
1answer
801 views

What happens when I truncate a file that is in use?

Around the web many people say you can truncate a file using > filename or truncate -s0 filename while file begin used I know everytime a process write in a file, the process uses a offset for ...
5
votes
3answers
6k views

How do I add color syntax highlighting to GNU emacs?

I have two versions of emacs available to me on a locked workstation: $ /usr/local/bin/emacs --version GNU Emacs 22.3.1 $ /usr/bin/emacs --version GNU Emacs 21.4.1 In both cases, my terminal type ...
5
votes
1answer
7k views

How to list recent yum updates

Last night I have updated one of my RedHat systems from 6.1 to 6.2. There were a few hundred updates. How can I list the recent updates that was applied to my system? I have tried yum list recent but ...
5
votes
2answers
4k views

how to find which process had created any file in Linux

Is there any way to know which process had created any file in Linux Red Hat/CentOS 5?
5
votes
1answer
3k views

I believe I've deleted MySQL root user, how do I recreate it?

I'm running ISPConfig on CentOS and I don't know how, but I don't seem to have a root mysql user. I can stop mysqld with /etc/init.d/mysqld stop Start it again and skip grant tables mysqld_safe ...
5
votes
1answer
998 views

Why would bash commands sometimes not return output?

In a bash shell, if I execute any command (e.g. "who"), many times it will not show any results, but when I next execute any other command the output of the previous command will be included. e.g.: ...
5
votes
1answer
634 views

get focus only by clicking the title bar of xterm

I've suffered this problem many times and so do my colleagues Sometimes after you stroked some keyboard and mouse combinations this behavior showed up : you have to click a xterm's title bar to focus ...
4
votes
1answer
1k views

Are there any linux distributions similar to RedHat 5 Enterprise?

I want to install RedHat 5 Enterprise Edition server on my home PC. I will install servers and clients on virtual machines using Virtual box and study server-client structure at home. But RedHat EE is ...
4
votes
1answer
13k views

How to install “mail”

I'm trying to install "mail" on a Red Hat 4.1.2-48 box. I tried: yum install mail It prints out: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.anl.gov * ...
4
votes
3answers
1k views

From what context is a cron task executed?

I am asking this question after royally destroying a Linux box. Let me give you some background so you know where I am coming from. I currently have (well... did have) a RedHat Linux box running ...
4
votes
2answers
5k views

Why does my $LD_LIBRARY_PATH get unset when using screen with bash?

This is related to http://superuser.com/questions/27376/why-does-my-ld-library-path-get-unset-launching-terminal, but a different set of symptoms. First, /usr/bin/screen is setuid as per the other ...
4
votes
2answers
223 views

Reboot EC2 Amazon Linux (Redhat-based) from script

I would like to reboot my Linux from a Script. The script does not run as root. Using sudo reboot produces sudo: sorry, you must have a tty to run sudo. A plain reboot gives the error ...
4
votes
1answer
15k views

Installing 32 bit glibc on 64 bit RHEL

I'm trying to install glibc-2.12-1.25.el6.i686 on 64 bit RHEL. I understand it has a dependency on the NSSRAWHASH package (I'm using the nss-softokn-freebl-3.12.9-3.el6.i686.rpm package), so I run ...
4
votes
1answer
426 views

landscape-sysinfo for CentOS?

I've been using /usr/bin/landscape-sysinfo on Ubuntu, and I'm now looking for a good alternative to use on a CentOS machine. Is there anyway to install the requirements to make this work on CentOS?
4
votes
1answer
929 views

How to disable Alt-Tab shortcut in VMPlayer?

I want to send Alt-Tab to my windows host OS when working out of the guest OS on VM player. At the minute it gets trapped by the guest OS. Anyway to disable sending it to the guest (RedHat)?
4
votes
2answers
3k views

How can I enable anonymous access to a Samba share under ADS security mode?

I'm trying to enable anonymous access to a single service in my Samba config. Authorized user access is working perfectly, but when I attempt a no-password connection, I get this message: Anonymous ...
3
votes
2answers
6k views

Which versions of glibc do different versions of RedHat ship with?

Can anyone tell me (or point me in the direction of an online resource which outlines) which versions of glibc ship with which versions of RedHat? This RedHat document indicates versions of GCC but ...
3
votes
2answers
557 views

explanation about du command linux diskusage

What is the difference between these two: du -h --max-depth=2 /usr/* | sort -nr | head -n 20 And: du -h --max-depth=2 /usr/ | sort -nr | head -n 20 I would like to display the 20 biggest ...
3
votes
4answers
4k views

Is there a native tool for parsing xml files available on RedHat?

Are there any utilities similar to xpath for parsing XML files that would be natively available on a RedHat server? Similar questions have been answered elsewhere, but none of the tools listed are on ...
3
votes
2answers
4k views

Why would ssh fail to expand %h variable in .ssh/config?

Why would ssh fail to expand %h from .ssh/config? This used to work and still works except on a RHEL box. Looking for what the origin of this could be. Is there a setting somewhere that tells ssh to ...
3
votes
2answers
7k views

change default shell from zsh to bash

I'm trying to change my default shell in RHEL5 from zsh to bash. I tried to the methods mentioned in this thead. By typing sudo /usr/bin/chsh -s /bin/bash, the system says sudo: /usr/bin/chsh: ...
3
votes
2answers
3k views

Linux (redhat) how to change password to previous password

Is there a way to change password to value same as the previous password? I know this is a security flaw, but would like to know however. when I try this: [mrbean@wwwserver ~]$ passwd Changing ...
3
votes
5answers
18k views

How to use crontab to run a script as nobody

This is on a CentOS machine. I'm trying to run a script as user nobody (or as a user with minimal permissions) at a certain time every day. Here is nobody: [root@CentOS % ~] grep "^nobody" ...
3
votes
3answers
10k views

Keeping Cygwin SSH session alive [duplicate]

I'm having the a bit of a problem with accessing remote RedHat servers from a Windows machine using Cygwin SSH client. What I do is I run some fairly time-consuming QA scripts on the remote RedHat ...