Forum

> > CS2D > Servers > How to open account in VPS
Forums overviewCS2D overview Servers overviewLog in to reply

English How to open account in VPS

16 replies
To the start Previous 1 Next To the start

old How to open account in VPS

Mr_Magnifice
User Off Offline

Quote
I want sell server's but i cant give my VPS login data because there are many my server's i want open one profile and add in just one server folder. When they will log in that will switch him to only this server... What i need to make for do this? When i login in VPS i see all my server's, i want make profile/account and put that in folder one server and if someone who will buy my server he will have login data just for his server. (they cant see my all server's)
If you know what i mean please help! (i hear that's possible)
( im using VPSCREED payed VPS 20 GB storage)

old Re: How to open account in VPS

kch
User Off Offline

Quote
Then you have to install proftpd:
1
apt-get install proftpd
With this command you install proftpd

1
apt-get install nano
This is to edit files via SSH

1
nano /etc/proftpd/proftpd.conf
This will open your config of proftd. There you have to scroll down until you find DefaultRoot & RequireValidShell.

#DefaultRoot ~
change to
DefaultRoot ~ ftpuser

&

#RequireValidShell off
to
RequireValidShell off -> deleting the (#)
----------------------------------------------
Now you always have to give the user the group "ftpuser". But first you have to create the group.
1
addgroup ftpuser
Then you have to create a folder for him. (DOESNT NEED IF THE FOLDER EXIST ALREADY)
1
2
3
mkdir /home/blabla
So now we want to add a user for the folder.
[code]useradd -g ftpuser -s /bin/false -d /home/blabla (name)
Now we want to give him full rights
1
chown -R blabla /home/blabla
And now we give him a password
1
passwd blabla

old Re: How to open account in VPS

kch
User Off Offline

Quote
Dont what what you mean, but you always have to give a user the group ftpuser. Without this group he can see all folders of your server. Only with the group ftpuser he has only acces into his own directory. Thats why it is important to this step:
1
useradd -g ftpuser -s /bin/false -d /home/blabla (name)

old Re: How to open account in VPS

kch
User Off Offline

Quote
No doesnt need. If you have a folder already you just have to give the user the directory. As example your server is on /home/mim_server/server1. You have to write on PuTTy:
1
useradd -g ftpuser -s /bin/false -d /home/mim_server/server1 kach

If you write this, the user ( kach ) can just login into the folder /home/mim_server/server1

old Re: How to open account in VPS

Mr_Magnifice
User Off Offline

Quote
when i wrote
chown -R newuser/home/newuser_server

chown: missing operation after newuser/home/newuser_server
edited 2×, last 03.01.15 03:51:17 pm

old Re: How to open account in VPS

ohaz
User Off Offline

Quote
well, that means exactly what it says. Please read the error message and think about it instead of asking us every little thing

old Re: How to open account in VPS

Mr_Magnifice
User Off Offline

Quote
Rename /dedikeno: Operation not permitted


i already made account but i cant controll file's with that, any operation (edit, switch etc.) cant be finished. Always
not permitted?

old Re: How to open account in VPS

Mr_Magnifice
User Off Offline

Quote
root@ ° ° ° ° :~# apt-get install proftp
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package proftp
can someone tell me how to solve problem?

its same with nano..
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview