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
1
vote
1 answer

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 two other config files, smb.conf.jean-pc2 and…
Richard C
  • 321
  • 1
  • 7
  • 19
1
vote
2 answers

ldap scheme for email aliases

Does anyone know what scheme to use when setting up email aliases in LDAP? I could use anything, but it seems kind of abusive to use "title" for example as the email alias. extensibleObject may be the correct thing to use, but it seems wrong.
d-_-b
  • 1,124
  • 3
  • 11
  • 23
1
vote
0 answers

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.
Lethargy
  • 119
  • 3
1
vote
1 answer

nginx giving 404 when accessing php from alias directory

I am trying to migrate from apache to nginx. The php sites that I am hosting need to access a shared library which turns out to be an alias directory. Below is the configuration I came up with. html files work fine, but php files giving 404. I have…
code90
  • 173
  • 1
  • 7
1
vote
1 answer

How to use MS DOS-defined aliases in Powershell

I have some aliases that are defined in MS Dos style, how can I invoke those from Powershell? When I type "alias" from Powershell prompt, I can see my aliases defined there but when I try to call them by just typing their names, Powershell complains…
nairdaen
  • 167
  • 4
1
vote
1 answer

nginx - request getting handled by multiple location blocks

I'm testing a setup where I'd like to have nginx serve up static media and proxy all other requests to another backend. My configuration looks like this: location /media {alias /var/httpd/media;} location / {proxy_pass…
Gary
  • 165
  • 3
1
vote
1 answer

Error sending email to alias with Postfix

I'm on Ubuntu 11.04 64bit. I'm trying to set up Postfix on my VPS, which has been configured but when I send an email to an alias e.g. webmaster@domain.com it will send it to myemail@hotmail.co.uk. Now when I sent the email from my GMail account, I…
MacMac
  • 2,061
  • 10
  • 31
  • 38
1
vote
1 answer

Will a SQL Server client alias survive a sysprep?

I want to sysprep a Windows Server 2008 R2 SP1 machine that has SQL Server 2008 R2 SP1 installed (for reference, SQL Server 2008 R2 has a new sysprep feature that allows the instance to be sysprepped). On the server is a SQL Server client alias that…
shufler
  • 972
  • 1
  • 6
  • 18
1
vote
2 answers

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 check. My interpretation is I'm staying in the…
Noah
  • 13
  • 2
1
vote
2 answers

Automatic Apache Alias definitions

I have a folder full of sites: /var/www I have a domain: example.com I want to write a rule in my httpd.conf that will setup an alias for each site in /var/www. For example: /var/www/hello/public can be accessed via example.com/hello. At the moment…
Oliver Joseph Ash
  • 361
  • 3
  • 5
  • 14
1
vote
1 answer

Is it possible to get svn to authentication with windows/sspi, but with username aliases?

I have a VisualSVN server running on Windows 2008 R2 x64 using basic authentication. I want to upgrade to use windows authentication. However, some of the usernames set up do not match the domain usernames. Is there a way to alias…
1
vote
1 answer

What is the alternative of Apache's global Alias in IIS instead of adding a Virtual Directory to every single sites one by one?

In Apache, there's a way I can make phpMyAdmin available globally to all VirtualHosts I set up. In Apache, it looks like this: Alias /phpmyadmin "c:/AppServ/www/phpMyAdmin" This way I reach phpmyadmin with…
Sk8erPeter
  • 199
  • 1
  • 2
  • 15
1
vote
1 answer

Nginx try_files gotcha

Ok - i've been using this rule for a while location ~* /(?:abc12345|12abcdef)/(.*\.(jpe?g|gif|png)) { alias /usr/local/image/$1; error_page 404 /handler.php; } where if the image file exists, it is served - if the file doesn't exist, a…
jimg
  • 262
  • 4
  • 15
1
vote
1 answer

How do I configure a virtual alias for VERP in Postfix?

I want to use VERP to handle email bounces for my web application which does list emails. Can postfix alias map use wildcards? I want to have a catch-all account for bounces only, so could I have something like bounce-catch+*@mydomain.com…
brandon
  • 11
  • 2
1
vote
2 answers

Basic apache alias question

Right now I access my dev. server as localhost. How do I change it so that I can type "myservername" and it will work as an "alias" for localhost? Thanks
Chris Krinler