Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

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
1  
this might be a question (or rather 2 questions) better asked on superuser.com. I think they're also a little more gentle there... –  wag2639 Jun 11 '10 at 9:03
add comment

3 Answers

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
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.