- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- simple FTP and root-jailing
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
07-17-2006 02:01 AM
07-17-2006 02:01 AM
we're working on a rx4640 machine under 11.23 and have the following needs:
We have one ftp-user who should only get an ftp-access (no os-access like other users).
We created this using
This user should be able to read/write any file below this directory (also put/get them) - but he shouldn't be able to navigate above the home-directory.
We've already read some instructions in the book 'Installing and configuring internet services' - espacially the chapter over 'anonymous ftp access' - but our user is still able to navigate above his home-dir.
Hopefully awaiting your answers
Thanx
Charly
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2006 02:27 AM
07-17-2006 02:27 AM
SolutionSome tips:
1- Ensure that the user have a invalid shell, like /bin/false. This will prevent to the user logon locally.
2- The ftpaccess file should look like this:
class all real,guest,anonymous *
limit all 60 Any /etc/msgs/msg.dead
readme README* login
readme README* cwd=*
message /welcome.msg login
message .message cwd=*
compress no all
tar no all
delete no anonymous,guest # delete permission?
overwrite no anonymous,guest # overwrite permission?
rename no anonymous,guest # rename permission?
chmod no anonymous,guest # chmod permission?
umask no anonymous,guest # umask permission?
log commands real
log transfers anonymous,real inbound,outbound
shutdown /etc/shutmsg
email root@clu-oas.sis.personal.net.py
# CHROOT Users
guestuser username1 username2
3- Ensure that the home for these users in the passwd ends with /./
username1:*:211:214:CHROOT User:/path/to/home/./:/bin/false
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2006 02:38 AM
07-17-2006 02:38 AM
Re: simple FTP and root-jailing
thank you - your answer has brought the solution. We've missed two things - the trailing slash at the home-dir and stupidly the /bin/false-shell.
Mui bien
Greetings to Paraguay
Charly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2006 02:40 AM
07-17-2006 02:40 AM
Re: simple FTP and root-jailing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2006 07:43 PM
07-17-2006 07:43 PM
Re: simple FTP and root-jailing
I'm still working on it to get it working properly together with using LDAP but without LDAP it is working fine !
See also the following doc:
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000082447780