Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

OK I'll be more specific - I have uploaded a bunch of folders via ftp. These now all have the the owner name of the account which I logged into FTP using.

How do I change the owner to be the server name?


How do I find out what name the server is using?

I'm pretty new to server permissions and the like, so please be gentle :) BTW, I'm using a linux server.

share|improve this question
W​h​ich server? – Ignacio Vazquez-Abrams Jun 11 '10 at 7:41
not sure. Surely the commands are the same if its a linux server? – Ash Jun 11 '10 at 7:52
Web server? FTP server? Samba server? – Ignacio Vazquez-Abrams Jun 11 '10 at 7:53
Do you have access to the root account ? – Iain Jun 11 '10 at 7:59
this might be a question (or rather 2 questions) better asked on I think they're also a little more gentle there... – wag2639 Jun 11 '10 at 9:03

To change the owner of a file or dir you can use the "chown" command.

To view the name of the server use the "hostname" command.

share|improve this answer

You can use the "hostname" command to find the server name,

I don't really userstand your first question, you can't manage permissions by hosts, it's per users/groups

share|improve this answer

If you are using an FTP client like Filezila, I don't believe you can change the owner of the file through its interface.

If you have SSH access to the server using a program like Putty, then you can use the chown command as Kedare suggested.

In order to change the hostname, it depends on which distro of Linux you're using if you're using linux. Also, make sure you're not confusing hostname with domain name. And usually, you'll need to be root to change the hostname if it is linux.

If you are using a debian based distro such as Ubuntu, you can edit the /etc/hostname file and replace the current value with what you want to call your server.

If you need more help, please post more details.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.