![]() |
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 |
Im also looking for some reliable server Admins out there, please contact me at
AOL " flashlvl " must have some references too. :thumbsup |
Just limiting FTP?
|
SSH and/or FTP SFTP
|
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. |
Using PROFTPD
|
Quote:
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 |
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?
|
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