- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: ftp user
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
тАО07-24-2002 11:00 PM
тАО07-24-2002 11:00 PM
ftp user
i want to create a user that can only ftp from a remote unix machine to linux, nothing else.
How can this be done?
Using Redhat 7.2.
Thanks in advance..
Tarek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 11:34 PM
тАО07-24-2002 11:34 PM
Re: ftp user
This fooled the FTP server into thinking they had a shell available (as you can't use /bin/false as the wu-ftpd doesn't allow an FTP login), and doesn't allow them to log in via telnet etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2002 12:03 AM
тАО07-25-2002 12:03 AM
Re: ftp user
You can create a chroot directory where ftp will work, and create the passwd file in this new environnement.
Or You can use another a specific software which manage it's own users ! (may be proftpd ?)
hope this help
BEnoit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2002 06:07 AM
тАО07-25-2002 06:07 AM
Re: ftp user
I don't want to create scripts or some stuff like this, just add a user with ftp permissions. I think this can be done, probably by putting as user shell nologin or something similar but i don't know exactly how.
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2002 10:41 AM
тАО07-25-2002 10:41 AM
Re: ftp user
yes this is possible, basically make sure a false shell is listed in /etc/shells and when you create a user just make sure they have the false shell, e.g; /etc/ftponly shell.
after that you have to enable wu-ftpd in /etc/xinetd.d dir.
Then at some base dir (root dir for your ftpusers), make sure dir bin and etc are created. Under etc you will have two file group and passwd. The format for group is:
groupname:x:gid:
for passwd is:
username:*:uid:gid:::
The content of bin dir are:
ls command and other command you want your ftpusers to use. Under RH you should be able to just copy the /bin/ls to here provided it was compiled statically. I hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2002 12:05 AM
тАО07-29-2002 12:05 AM
Re: ftp user
I haven't understood very well the two directories i have to create, bin and etc. As I undertood, I have to create the two directories under root's home dir, right?
But why? And i have to create one more passwd and group file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2002 06:55 AM
тАО07-29-2002 06:55 AM
Re: ftp user
For the etc and bin dir, you need them bec. of security purpose, all the files under bin are suppose to statically compile and all files under etc only have entries for ftpusers. These dir should be located under your home ftp servers bec. when user ftp into your box they cannot change dir above your ftp home dir and therefore they do not have access to /etc/group, /etc/passwd, and ls. e.g: let say you make /home/ftpusers as your home dir for all your ftpusers, then /home/ftpusers/pub as the pub dir, when ftp user log into your box they will see /home/ftpusers as '/' and they can't cd obove /home/ftpusers.