1
vote
3answers
133 views

how to make alias with quotes

I tried to make alias with quotes as following: alias myalias='ps -ef | grep tomcat | kill -9 `awk {'print $2'}`' but as you can see i already have ' in awk so i tried to replace awk {'print $2'} ...
0
votes
1answer
29 views

alias directive with nested location to catch php files - requests for php files giving 404

I have a directory/web app that is located outside of the web root directory of my site. Say the site is here: /var/www/site/htdocs/ And the external app is located here: /var/www/apps/coolapp/ ...
0
votes
1answer
448 views

How to add domail alias in iRedMail open source edition?

Looking at the vmail database of the iRedMail installation I see an alias_domain table which is currently empty. Is it possible to add domain aliases with a MySQL query directly on the ...
1
vote
1answer
105 views

Setting “say” alias for espeak on Ubuntu Linux

I'm trying to make a compatible "say" command on Linux. So far this works: alias say='echo "$1" | espeak -s 120 2>/dev/null' I'm adding this to /etc/bash.bashrc. Problem is, this say is called ...
1
vote
2answers
157 views

LUN device file names mixed

The following listings are from a Linux RHEL box. I'm a bit confused over the following inconsistencies. Here we have aliases defined for each LUN in multipath bindings file: mpath0 ...
1
vote
1answer
396 views

Why does samba with netbios aliases only load one of the configurations?

I'm running an OpenSuSE 11.3 box with samba v3.5.4. I've set up my smb.conf as follows: [global] netbios aliases = jean-pc2 storage include = /etc/samba/smb.conf.%L Then I have ...
1
vote
0answers
56 views

Exim message rewriting on system alias router

What's the best method for rewriting the To: fields only when the system aliases router matches? Our mail is delivered correctly but the To: fields are misleading.
0
votes
1answer
54 views

avoiding alias at command prompt

I have following alias and it is working as expected. alias mysql='LD_LIBRARY_PATH=/usr/local//mysql/lib/:/usr/local//mysql/lib//mysql /usr/local//mysql/bin//mysql' My question is there are a few ...
1
vote
2answers
148 views

Starting a screen while su'ed into another user from an alias isn't working

minecraft@283823:~$ script /dev/null ; screen -t minecraft Script started, file is /dev/null minecraft@283823:~$ exit Script done, file is /dev/null Cannot open your terminal '/dev/pts/0' - please ...
0
votes
1answer
750 views

Alias not saved after reboot

I did r00t@wutdo~$ alias daoc='mono "~/.wine/drive_c/Program Files/DAoC/Portal.exe"' r00t@wutdo~$ daoc Works fine and dandy but after reboot the alias isn't saved. r00t@wutdo:~$ alias alias ...
2
votes
1answer
661 views

How to SetEnv for an Alias

I have several Aliasses configured in apache configuration. I would like to set an environmental variables for each of them. How? I have this /alias1 /mapped/to/a/path /alias2 /mapped/to/a/path ...
-1
votes
2answers
186 views

Add IP Address without Plesk [closed]

I have an dedicated unmanaged server and added a few IP addresses to it (allocated), and the only information my hosting company has provided is instructions on how to use Plesk to Add IP Addresses. ...
2
votes
1answer
2k views

Linux :: Shared aliases in /etc/profile.d not applied to root user, why?

On my Fedora 14 developer machine I can add a sharedAliases.sh file to /etc/profile.d -- both my user and root user then have access to the shared aliases. Switch over to remote CentOS 5.7 machine ...
0
votes
1answer
138 views

Postfix forward mail to named pipe

In Postfix I can configure to forward emails to a script in /etc/aliases like mailuser: | mailprocessor.pl If I create a named pipe with mkfifo /opt/mypipe and then change /etc/aliases to write ...
1
vote
1answer
187 views

sudo as a user that has sudo rights?

Alice has sudo rights. Bob does not (this is not changeable), but does know the password to Alice's account. If Bob wants to perform administrative commands he must: su alice fill in Alice's ...
2
votes
3answers
152 views

Does it break anything if I alias “..” to be “cd ..”?

I find myself wanting to type .. instead of cd .. a lot, so I created an alias for it in one my of my shells. It works as expected, and it doesn't seem to break basic cd and ls usage. Is doing this a ...
0
votes
1answer
588 views

Help debugging Sendmail/Mailman configuration issue

I'm trying to configure a server with Sendmail and Mailman. I've been getting "Broken pipe" errors for a while, and have slowly been debugging. I fixed some permission issues, and changed the user ...
1
vote
3answers
85 views

Where do I put the Alias?

alias py='python' Do I put that in my .bashrc?
8
votes
1answer
597 views

Is it possible to hide a malicious alias in Bash on Linux?

Is it possible to conceal the existence of a malicious alias in Bash on a Linux system and have it executed by the user without their knowledge?
30
votes
7answers
28k views

Is it possible to alias a hostname in Linux?

Is it possible to alias a hostname in Linux? It has been asked by jmillikin at various Ubuntu forums as follows: Is it possible to create a hostname alias? Sort of like /etc/hosts, but with other ...