Posts: 13
Threads: 3
Joined: Oct 2008
Reputation:
0
10-11-2008, 02:37 AM
(This post was last modified: 10-11-2008, 02:39 AM by redstrike.)
Hey folks,
I've currently setup a few source servers on my CentOS 5.2 box.
I've got it so that I have them all running under a different user account (servers) so the files are:
/home/servers/css1
/home/servers/css2
/home/servers/css3
etc.
Now I'm looking to setup VSFTPD so that I can give users access to the cstrike folder for each server.
person A would be able to see /css1/cstrike/ only
person B would be able to see /css2/cstrike/ only
etc.
Looking from tutorials and stuff for VSFTPD does it now mean I have to:
(1) create a user for each server? IE:
/home/css1/
/home/css2/
(2) have that user account password as the FTP password meaning insecurities through SSH?
Posts: 80
Threads: 1
Joined: Aug 2008
Reputation:
0
Why not just use proftpd, and set proper permissions for each server so that user could only access it. And just make link from users home directory to the server so they could ssh/ftp inside it.
Posts: 74
Threads: 4
Joined: Sep 2008
Reputation:
0
set users home directory to corresponding directory and add 'chroot_local_user=YES' to your config.
Posts: 80
Threads: 1
Joined: Aug 2008
Reputation:
0
Either edit the user in /etc/passwd to /bin/false so he would have no shell, or usermod --lock [user]
Posts: 74
Threads: 4
Joined: Sep 2008
Reputation:
0
/bin/false will work as well. either way, its better to get into the practice of using usermod rather than editing /etc/passwd directly. command is usermod -s, i.e.:
usermod -s /bin/false username
Posts: 74
Threads: 4
Joined: Sep 2008
Reputation:
0
is there a reason the svr* folders must be under the home directory for the servers user? if not, i would highly recommend placing them directly under the home directory.
Posts: 74
Threads: 4
Joined: Sep 2008
Reputation:
0
10-15-2008, 03:01 AM
(This post was last modified: 10-15-2008, 03:05 AM by txqzr4.)
no problem as long as the proper permissions are set. it might be helpful to explain exactly what you are trying to accomplish. to clarify -- are you wanting to run multiple games under the same user, or run each one under a different user? I was assuming the former, but it sounds like you are trying to do the latter. i'm confused because earlier it sounded like each server had a svr* user, but now you are talking about running them all under servers.
Posts: 13
Threads: 3
Joined: Oct 2008
Reputation:
0
The plan is to have 2 main users.
SERVERS
This user will run the srcds servers. They will be managed by this user via bash scripts. The bash scripts will start/stop/restart/update each of the servers.
FTP
This user will be privilege-less and only be used for running the FTP daemon.
I was then planning to use VSFTPD for my FTP. To use that I was planning to create 3 users (SVR1,SVR2,SVR3) without shell access and set their home directory to within the SERVERS account so that the bash scripts can be executed by SERVERS without permission problems. These users will be strictly for ftp access for people owning the servers.