- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftp access w/o shell access
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-2001 07:41 AM
07-17-2001 07:41 AM
ftp access w/o shell access
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2001 07:51 AM
07-17-2001 07:51 AM
Re: ftp access w/o shell access
If I understand your question, you are trying to set up anonymous ftp. Man ftpd and it takes you through all the steps required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2001 07:53 AM
07-17-2001 07:53 AM
Re: ftp access w/o shell access
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2001 07:55 AM
07-17-2001 07:55 AM
Re: ftp access w/o shell access
Setup a normal user with ftp access , and in the .profile of the user please enter exit in the end so that whenever he makes a normal login he will never be able to get in the system . Where as he can just do ftp.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2001 08:09 AM
07-17-2001 08:09 AM
Re: ftp access w/o shell access
I understand now and Manoj is close but one problem is that the user can issue '!' command within ftp to get to a shell. You need to do something like this within your user's .profile
or have your .profile (if setting up for more than 1 user) call a script which does this:
SHELL=/usr/bin/false
export SHELL
ftp
exit 0
You also need to make the .profile owned by root and not writable by this user so that he can't change the .profile. This too isn't quite foolproof because You probably would like the user to be have write permission in his home directory for creating files. This would allow him to remove or replace his .profile. If he is not allowed write access in the home directory then you should be secure enough.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2001 08:10 AM
07-17-2001 08:10 AM
Re: ftp access w/o shell access
1) vi /usr/bin/ftpshell
type exit 0
save file
2) modify the user's shell to be /usr/bin/ftpshell
You can use usermod command or SAM
3) edit /etc/shells files and make sure it contains all shells that are used includes /usr/bin/ftpshell
4) Create a group ftponly or any other name
5) make the user a member of that group
6) edit /etc/ftpd/ftpaccess and check the group is specifed on the guestgroup line
7) Edit /etc/inetd.conf and modify ftp to look like this
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -a -l
Test the access
Hope this helps
Haitham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2001 08:12 AM
07-17-2001 08:12 AM
Re: ftp access w/o shell access
On my system I have set a ftp user id with restricted shell "/usr/bin/rsh". This gives user login shell with restricted access.
If you don't want ftp user to get login shell use Manoj's suggestion of putting "exit" at end of .profile of that user.
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2001 08:15 AM
07-17-2001 08:15 AM
Re: ftp access w/o shell access
I again agree with Clay but you can always define rsh as the default shell , this would just restrict him to his home directory even in case he want to run ! in ftp session. Also this with exit in .profile should do the magic.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2001 08:20 AM
07-17-2001 08:20 AM
Re: ftp access w/o shell access
I think creation of normal user and put exit as the last line of the .profile file of that user will solve ur problem.
Regards
Joe.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2001 08:32 AM
07-17-2001 08:32 AM