configuring vsftpd

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
WackyIraqi
A regular
A regular
Posts: 34
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Feb 16, 2010 12:37 pm

configuring vsftpd

Post by WackyIraqi »

I seem to be having troubles configuring the ftp server in CentOS. I have tried creating a new user, and assigning him to the group "ftp" but this just seems to let him have read only access. The only way I have been able to access the server through ftp is removing root from the block list. Any suggestions?
User avatar
Edge100x
Founder
Founder
Posts: 13126
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: configuring vsftpd

Post by Edge100x »

Are the permissions set correctly on the game server? You will want all of its files to be owned by the same user that you are logging in as through FTP, and you will also need it to be running as that user.

To change the owner of an entire directory tree, use a command like this:

Code: Select all

chown -R yourftpuser:ftp /usr/steam
To start the server as another user, use a command like this:

Code: Select all

su yourftpuser -c "./hlds_run -game cstrike -port 27015..."
Post Reply