GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Unix Help! (https://gfy.com/showthread.php?t=221549)

x2dio 01-15-2004 09:40 PM

Unix Help!
 
How can i lock a subdomain user to its home directory?


is just for 1 account I don't need it on the entire server.


Running Ensim 3.5 / Linux 7.3

Thanks

x2dio 01-15-2004 09:42 PM

Im also looking for some reliable server Admins out there, please contact me at


AOL " flashlvl " must have some references too.


:thumbsup

Babaganoosh 01-15-2004 09:43 PM

Just limiting FTP?

xxxoutsourcing 01-15-2004 09:45 PM

SSH and/or FTP SFTP

fsfaz 01-15-2004 09:51 PM

Best of luck being completly successful locking him down on a shell (ssh). You can try chmod'ing but it doesn't always work properly.

With FTP, not sure what FTP server your using and since your running Ensim, I'm not familiar with it. You may want to look up the documentation on the FTP Server your running or you can try this:

Create a file with your favorite editor called "ftpchroot" in /etc and put just the users name in the file.

May work but I doubt it.

Post the FTP server your using and maybe we can help.

x2dio 01-15-2004 10:32 PM

Using PROFTPD

fsfaz 01-16-2004 11:05 AM

Quote:

Originally posted by x2dio
Using PROFTPD

It's called chroot and here's the man page on the directive.

Note: Not sure where the config file is located espeically since you are running Ensim.


http://www.proftpd.org/docs/directiv...faultRoot.html

AndrewKanuck 01-16-2004 11:10 AM

chroot and jail are the tools you'd need - I could have sworn that Ensim locked accounts into their private directory; or was that just a lie they told during marketing?

icedemon 01-16-2004 11:38 AM

Here is what you do for ProFTPd.

SSH to your server. Look for the proftpd.conf file. It's usually in /etc/proftpd.conf. You can do a "locate proftpd.conf" if it isn't in the /etc directory. Open it with vi or pico.
pico -w /etc/proftpd.conf
Add this
DefaultRoot ~
This will chroot them to their home directory that is listed in /etc/passwd
You might want to open /etc/passwd with vi or pico to make sure their home directory is where you want it.


All times are GMT -7. The time now is 11:19 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123