Hi all,
How do I create a new user on my vps that can only access only 1 folder and the subfolders? He must be able to edit stuff, upload and download in that folder. folder is inside root/cod2 and then foldername "cry".
Hi all,
How do I create a new user on my vps that can only access only 1 folder and the subfolders? He must be able to edit stuff, upload and download in that folder. folder is inside root/cod2 and then foldername "cry".
You need to install some sort of ftp server, try http://www.proftpd.org/ I think it's the best out there for your purpose, also there are lots of tutorials on how to set-up it properly and grant access for one user to certain directory. Let me know if you need any further help.
Depending on your distro here are a few examples of installation:
https://www.digitalocean.com/communi...n-ubuntu-12-04
https://www.digitalocean.com/communi...pd-on-centos-6
https://www.debian-administration.or...rver_on_Debian
Last edited by YuriJurek; 1st October 2014 at 12:31.
Ni3ls (1st October 2014)
I use Pure-FTPd and it supports virtual users with only access to their directory.
http://articlebin.michaelmilette.com...tpd-in-ubuntu/
Well I still got problems. I dont understand it very good :/ I already got a user called "cry" and the directories root/cod2 contains all the COD2 files that are needed. "cry" would be the fs_game. Even when I dohe can login with sftp, but vps opens in the main screen and not that specific folderCode:usermod -d /root/cod2/cry cry
Just remove the read/write flags, but not the access/x flag from the directories:
(Possible in WinSCP also ofc)PHP Code:
chmod 711 /
chmod 711 /home
chmod 711 /lib32
chmod 700 /root -R
I don't know why you put the "home" folders into /root. Normally all users belong into /home.
Last edited by kung foo man; 1st October 2014 at 16:07. Reason: 1 is x only
timescale 0.01
I dont get it. They are talking about home/user. But I already got a directory. They need access to that one and only directory and not able to go to higher directories.