- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to create a FTP-only account, with no shel...
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
Discussions
Discussions
Forums
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
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
тАО09-17-2009 07:37 AM
тАО09-17-2009 07:37 AM
This is on 11.23.
Basically, what entry do I put in the shell field?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2009 07:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2009 07:55 AM
тАО09-17-2009 07:55 AM
Re: How to create a FTP-only account, with no shell access?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2009 08:23 AM
тАО09-17-2009 08:23 AM
Re: How to create a FTP-only account, with no shell access?
You don't have to have anonymous ftp enabled to do that.
Also, make sure you have an /etc/shells file and that /usr/bin/false is in that file, otherwise the user will not be able to log in via ftp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2009 08:35 AM
тАО09-17-2009 08:35 AM
Re: How to create a FTP-only account, with no shell access?
Look for "guest".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2009 02:41 AM
тАО09-18-2009 02:41 AM
Re: How to create a FTP-only account, with no shell access?
1. Add the group ftponly in /etc/group
2. Add the new user in passwd, the user must be in ftponlygroup.
Here example of /etc/passwd entry
ftpuser:*:113:107:,,,:/home/ftpuser/./HOMEFTP:/usr/bin/false
(pay attention at the '.' between directories ftpuser and HOMEFTP)
3. Add /usr/bin/false in /etc/shells
4. Modify the ftp's entry in /etc/inetd.conf
ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -a -l
by adding -a ( ftpaccess activation) -l (logging)
5. under /home/ftpuser create the directory etc and usr/bin annd usr/lib.
In /etc/ created a passwd file with only the ftpuser entry, the same in group file.
Under usr copy the following command and library from their absolute path
usr/bin/ls
usr/lib/libcurses.1
usr/lib/libc.2
usr/lib/dld.sl
usr/lib/libdld.2
usr/lib/libnss_files.1
6. add ftpaccess file in /etc/ftpd
Here an example
---------------------------------------------
loginfails 2
#
noretrieve /etc/hosts /etc/group /etc/passwd /etc/resolv.conf /stand/system
#
class remote real,guest,anonymous *
limit remote 100 Any
defumask 002
guestgroup ftponly
# all the following default to "yes" for everybody
delete yes guest,anonymous,remote # delete permission?
overwrite yes guest,anonymous,remote # overwrite permission?
rename yes guest,anonymous,remote # rename permission?
chmod no anonymous # chmod permission?
umask no anonymous # umask permission?
---------------------------------------------
7. restart inetd with inetd -c
And your limited ftpuser is ready to work.
The root directory of ftpuser is /home/ftpuser