Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey, im kind of new to linux, so go easy on me. =p
Anyways, im setting up a linux (MDK9.2 64Bit) gaming server, and ProFTPd is setup, but I need certian users to be chrooted, and not even see other peoples folders. But I have chroot on and they can see the other peoples home folders. As in one situation, I can get into the account 1, with account 2 and all other accounts, but not move or delete any files, but I can access account 2's home folder fine.
So bottom line, I need your help on that issue, and help with setting up user groups that can't do anything other then upload and delete files in one specific folder. Eg, /home/account 1/srcds/cstrike/maps. I want them to beable to access the maps folder and cfg folder ONLY, is that possible? But with those same lines, I can make the other stuff belong to root etc, but then can they launch the game server their selfs if the files belong to root?
Make sure that the permissions of all the home directories ends in a 0 (e.g., 660). This will make it so that no one other than the owner or group can enter the directory. To prevent all but the owner, permissions should end with 00 (e.g., 600).
You will not be able to prevent the users from looking at the home directory (so far as I know) but you can prevent them from entering all but one of the folders (their own).
Make sure that the permissions of all the home directories ends in a 0 (e.g., 660). This will make it so that no one other than the owner or group can enter the directory. To prevent all but the owner, permissions should end with 00 (e.g., 600).
You will not be able to prevent the users from looking at the home directory (so far as I know) but you can prevent them from entering all but one of the folders (their own).
That worked for one problem, but is there anyway I can chroot them to a folder inside theirs so they can't see the other customers? Or atleast hide the other customers?
you should be able to do everything. Get their man
pages (man chmod, ...) or see my website (listed below)
under "console commands").
Basically, you should be able to seperate people in different
groups. And the, give files/folders group permission. Then
only those in the same group can read (or write) those data.
There's definitely a way to do it. In wu-ftpd you'd use the restricted-uid configuration setting in /etc/ftpaccess and there must be something similar for proftpd. I don't use it though, so you'll need to look at the documentation and figure out what the equivalent is. Maybe someone who knows proftpd can help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.