1

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?

and

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.

Mazatec
  • 161
  • 7

3 Answers3

1

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.

Maxfer
  • 193
  • 10
0

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

Kedare
  • 1,766
  • 4
  • 20
  • 36
0

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.

wag2639
  • 2,115
  • 6
  • 24
  • 32