Questions tagged [alias]

In computer sciences, an alias is a name which usually designates an already-named reference.

Aliases are names used to designate objects, items and settings which already possess a name. In *nix systems, they usually serve as :

  • Hostnames ; a machine possesses a unique hostname, which can be surrounded by aliases. On a Linux system, you can find your hostname by typing hostname, whereas the /etc/hosts file might contain other aliases for the IP representation of your machine on its network interfaces.

  • Users ; on *nix systems, each user has a given name, registered in the /etc/passwd file. However, for some other purposes such as email processing, it might be useful to create aliases for users. This can be done in the /etc/aliases file. (e.g. root is usually aliased as the postmaster).

  • Shell commands ; on *nix systems, it is possible to set an alias referencing a command/program (with possible options and arguments). The most common one is probably ll, which designates ls -l (long list). An alias can be created using the alias (man page) command, and destroyed thanks to the unalias bash utility (man page).

One could also consider UNIX links as an implementation of aliases for files (in the UNIX meaning). See ln for more information (man page).

Each application handles its aliases as it wishes to. Some don't even implement this possibility, and expect the administrator to use the real resources names. Please refer to the applications' documentation for more information on specific cases.

332 questions
12
votes
4 answers

Postfix, virtual aliases and catchall for undefined addresses

In Postfix 2.10.2, I have a setup with multiple domains and several virtual aliases to assign mail addresses to local users. It works fine as long as I do not add a catchall. Before I used virtual aliases, I had a catchall defined…
Konzertheld
  • 191
  • 1
  • 1
  • 9
11
votes
3 answers

Finding all aliases for a server

Our network admin is away at the moment. I'm trying to find all aliases attached to a given server on our network (actually a number of servers) After googling around it seems like nslookup might do this for me but it seems it doesn't. All of these…
Nick.Mc
  • 155
  • 1
  • 2
  • 14
11
votes
2 answers

nginx, alias, php-fpm = File not Found

I'm trying to set up nginx with DAViCal. However, I'm getting a "File not Found" with a "FastCGI sent in stderr: "Primary script unknown" in the log. Looks like something is wrong with my aliasing but I sure can't figure it out. My virtual…
Martin
  • 411
  • 1
  • 3
  • 8
10
votes
13 answers

Useful bash aliases and generating a listing of your most used commands

I found this article discussing a quick way to sort your bash history and see which commands you use the most: cut -f1 -d" " .bash_history | sort | uniq -c | sort -nr | head -n 30 It really opens your eyes as to which tasks you should create…
Jax
  • 428
  • 3
  • 10
  • 17
9
votes
1 answer

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?
Dennis Williamson
  • 62,149
  • 16
  • 116
  • 151
9
votes
2 answers

DKIM not signing with alias addresses - not internal, not authenticated

I have postfix, dovecot, opendkim and postsrsd installed. I am trying to forward mail from alias@example.com to myemail@gmail.com, and have them signed with DKIM. I use postsrsd in order for the SPF record to pass for the forwarded emails. However,…
user2370460
  • 213
  • 1
  • 3
  • 7
9
votes
2 answers

Can I alias all directory requests to a single file in nginx?

I'm trying to figure out how to take all requests made to a particular directory and return a json string without a redirect, in nginx. Example: curl -i http://example.com/api/call1/ Expected result: HTTP/1.1 200 OK Accept-Ranges:…
user749618
  • 193
  • 1
  • 6
9
votes
3 answers

Can a Windows Active Directory user have aliases?

I've just created a simple AD on our Windows 2008 r2 server. I've added a few employees into that directory. Now, is it possible to create some aliases for a single account. eg. name = foo.bar@contoso.internal / contoso\foo.bar but the user can also…
Pure.Krome
  • 6,508
  • 18
  • 73
  • 87
8
votes
1 answer

ANAME / ALIAS records for BIND

I operate some DNS servers using BIND for around 15,000 domain names. Some customers would like to start using a Full-Site Content Delivery CDN and a requirement for this is supporting the usage of ANAME / ALIAS DNS records, which are now supported…
Nick
  • 83
  • 1
  • 1
  • 4
8
votes
2 answers

How to create an alias for a named SQL Server instance

On my developer computer I have an SQL Server instance named developer_2005. In the resource setting files of a C# application we are creating, the instance name is set to foobar (not really, but just as an example). So when I run the application…
Svish
  • 6,977
  • 15
  • 38
  • 45
8
votes
2 answers

Error "not found or unable to stat" in apache logs, and difference in httpd.conf and site Document Roots

I get many of these errors each day in my apache error log: [error] [client 127.0.0.1] script '/var/www/html/wp-cron.php' not found or unable to stat and I'm wondering if it has something to with my httpd.conf, because my DocumentRoot is set as…
markratledge
  • 519
  • 5
  • 13
  • 26
7
votes
3 answers

What's actually requested when alias is set up in Apache with CNAME?

I have many sub-domains set to my development machine like the following. test1.example.com => 192.168.0.7 test2.example.com => 192.168.0.7 ... (about 30 domains like this) I have many sites on my dev server and Apache can handle those based on…
Sam Kong
  • 883
  • 1
  • 8
  • 10
7
votes
1 answer

Understanding Exim4's /etc/aliases

Regarding this exim /etc/aliases man page I am not sure how /etc/aliases works. The /etc/aliases The file should contain lins of the form name: address, address, ... I looked in /usr/share/doc/exim4-base/spec.txt.gz, but all I want is an…
bobobobo
  • 789
  • 6
  • 14
  • 26
6
votes
4 answers

Redirect all non-www subdomains to main www domain with Apache2

I have a website (domain.com) and I would like to redirect all my secondary domains (domain2.com, domain3.com) and all the subdomains of these domains (*.domain.com, *.domain2.com...) to the main domain, www.domain.com (because I want the latter to…
Flackou
6
votes
2 answers

Apache dynamic alias based on sub-domain

I have the following structure as part of a ZF1 application - C:/www/multisite C:/www/multisite/application C:/www/multisite/public C:/www/multisite/client1/uploads C:/www/multisite/client2/uploads I currently have the following vhost for each…
user1191247
  • 188
  • 1
  • 6
1
2
3
22 23