- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: I need to create a user that can only ftp to t...
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
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
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-09-2013 03:46 AM
10-09-2013 03:46 AM
Hi all!
I have created a user that can only ftp to a server running 11.23, and I have seen in some posts that the user start up program needs to be change from /usr/bin/sh to /usr/bin/false, but after making that modification, the user simple cannot login, using ftp client software like filezila, pls can you help.
NDO
Solved! Go to Solution.
- Tags:
- ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2013 01:13 PM
10-09-2013 01:13 PM
Re: I need to create a user that can only ftp to the system
>> the user simple cannot login
What kind of error are you receiving?
I have just set up an FTP only account on one of my test servers, set the shell to /bin/false and was able to login via filezilla without any problems.
The /etc/passwd entry from my test ID:
salary20:*:603:200:test ftp user:/support/ftpusers/salary20/./pub:/bin/false
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2013 06:36 PM - edited 10-09-2013 06:37 PM
10-09-2013 06:36 PM - edited 10-09-2013 06:37 PM
SolutionYou'll need to create the file: /etc/shells
Without this file, the only shells allowed to login to an ftp connection are:
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
The man page for getusershell(3C) lists the default shells.
Copy the above list and then add unlisted shells such as /usr/bin/false like this:
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
/usr/bin/false
Bill Hassell, sysadmin
- Tags:
- shells
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2013 11:45 PM
10-09-2013 11:45 PM
Re: I need to create a user that can only ftp to the system
Hi!
thank you Bill, I created the /etc/shells, and now its working fine.
NDO