- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Restricted FTP in linux 7.2
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2003 10:55 PM
10-26-2003 10:55 PM
Restricted FTP in linux 7.2
Can any body send me the configuration of restricted FTP on Linux .
Thanking You
Shajith.T
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2003 11:11 PM
10-26-2003 11:11 PM
Re: Restricted FTP in linux 7.2
Trying to guess:
if you want to restrict the IP addresses from which the connection is allowed:
edit the confiuration file of your ftp server-it suppose to be under /etc/xinetd.d
add a line :
only_from = x.x.x.x
where x.x.x.x is the address/subnet from where the connection can be established.
or
no_access = x.x.x.x
where x.x.x.x is the address/subnet from where the connection can not be established...
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 11:56 PM
10-27-2003 11:56 PM
Re: Restricted FTP in linux 7.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2003 12:20 AM
10-28-2003 12:20 AM
Re: Restricted FTP in linux 7.2
You can restrict a user to a directory by using ftpaccess and chroot.
Pl go thro the manpages for details
HTH
aparna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2003 12:28 AM
10-28-2003 12:28 AM
Re: Restricted FTP in linux 7.2
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2003 07:29 PM
10-29-2003 07:29 PM
Re: Restricted FTP in linux 7.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2003 02:36 AM
11-03-2003 02:36 AM
Re: Restricted FTP in linux 7.2
You can do a lot of things but say you want to use guest accounts in a chroot. You can do this:
Assume that: $1 = user, $2 = pass, and ftpdir = /var/ftp/users
I'll skip the part of making the jail.
******************************************
useradd -d /var/ftp/users/./users/$1 -m -c "FTP guest user" -g ftp-u -s /dev/null -p $2 $1
chattr -i /ftp/users/etc/passwd
tail -1 /etc/passwd >> /ftp/users/etc/passwd
chattr +i /ftp/users/etc/passwd
echo "upload /var/ftp/users/users /$1 no" >> /etc/ftpaccess
rm -f /var/ftp/users/users/$1/.*
cp /ftp/etc/welcome.msg /ftp/users/users/$1/.message
mkdir /ftp/users/users/$1/incoming
mkdir /ftp/users/users/$1/outgoing
chmod 700 /ftp/users/users/$1/*
chmod 444 /ftp/users/users/$1/.message
chown -R $1:ftp-u /ftp/users/users/$1
chown ftp:ftp-u /ftp/users/users/$1/.message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2003 04:03 AM
11-03-2003 04:03 AM
Re: Restricted FTP in linux 7.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2003 06:24 PM
11-03-2003 06:24 PM