- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restrict FTP access to a directory other than the ...
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
Forums
Discussions
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
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
05-09-2005 07:53 AM
05-09-2005 07:53 AM
Restrict FTP access to a directory other than the homedir
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2005 02:52 PM
05-09-2005 02:52 PM
Re: Restrict FTP access to a directory other than the homedir
Regards,
Isralyn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2005 01:07 AM
05-10-2005 01:07 AM
Re: Restrict FTP access to a directory other than the homedir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2005 10:35 PM
06-16-2005 10:35 PM
Re: Restrict FTP access to a directory other than the homedir
All guest users are locked into a chroot gaol which is defined in /etc/passwd.
In essence:
1. Create an ftp group
2. Edit /etc/inetd.conf to add '-a' to the ftpd flags, then reload inetd's conf file (inetd -c)
3. Create a simple /etc/ftpd/ftpaccess file, with something like:
# Defines a class of users - this is required
class users real,guest *
# Any members of the ftp group will be chroot'd
guestgroup ftp
# Don't print the FTP/OS version on login
suppressversion yes
# Logging - for debugging purposes
log commands real,guest,anonymous
log transfers real,guest,anonymous * IN,OUT
4. Create your user, put it in the 'ftp' group and assign a shell of /usr/bin/false (to stop shell logins). The home directory for the user should be
useradd -g ftp -s /usr/bin/false -c "Chroot FTP user,,," -d /var/opt/staging/./foo foo
5. Create the home directory (in the above example: /var/opt/staging/foo)
One point about this; by default they won't be able to do an 'ls' command from within FTP - but they can still use 'nlist'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 03:49 PM
10-08-2008 03:49 PM
Re: Restrict FTP access to a directory other than the homedir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 07:28 PM
10-08-2008 07:28 PM
Re: Restrict FTP access to a directory other than the homedir
It would be better to start a new thread with
your new question, rather than waking up this
very old and mostly unrelated thread.
When you do that, show an "ls -lR" listing
for a user's home directory.
Or, do a Forum search, and look for your
problem, which has almost certainly been
covered before.