Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
02-04-2005, 03:47 PM
|
#1
|
Member
Registered: Mar 2004
Posts: 47
Rep:
|
Usergroups and users.
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?
Thanks!
|
|
|
02-04-2005, 04:01 PM
|
#2
|
Member
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276
Rep:
|
Partial solution:
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).
|
|
|
02-04-2005, 04:29 PM
|
#3
|
Member
Registered: Mar 2004
Posts: 47
Original Poster
Rep:
|
Quote:
Originally posted by Optimistic
Partial solution:
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?
|
|
|
02-04-2005, 04:37 PM
|
#4
|
Member
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472
Rep:
|
If you know/learn about
chmod
chown
chgrp
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.
Sheng-Chieh
|
|
|
02-04-2005, 04:44 PM
|
#5
|
Member
Registered: Mar 2004
Posts: 47
Original Poster
Rep:
|
Thats great, but I have to hide the other users in the home dir when connecting through ftp.
|
|
|
02-04-2005, 06:36 PM
|
#6
|
Member
Registered: Mar 2004
Posts: 47
Original Poster
Rep:
|
Someone? Anyone? 
|
|
|
02-04-2005, 08:12 PM
|
#7
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
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.
|
|
|
02-05-2005, 03:00 PM
|
#8
|
Member
Registered: Mar 2004
Posts: 47
Original Poster
Rep:
|
Well, can a ProFTPd pro help me out then?
|
|
|
02-05-2005, 03:15 PM
|
#9
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
Putting "proftpd chroot" into Google popped out this link which seems to be exactly what you're looking for.
Remember, Google is your friend.
|
|
|
All times are GMT -5. The time now is 12:04 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|