- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/ftpaccess file question
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-20-2003 06:47 PM
07-20-2003 06:47 PM
/etc/ftpaccess file question
Or will we have to place another entry in the ftpaccess file for all the other users?
We only want to restrict one user and leave all the others the way they are now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 06:57 PM
07-20-2003 06:57 PM
Re: /etc/ftpaccess file question
If you only want to restrict 1 user & its a simple scenario, then I think you can add that username to /etc/ftpd/ftpusers file.
See man ftpusers.
This will ensure that the user cannot login using ftp.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 07:14 PM
07-20-2003 07:14 PM
Re: /etc/ftpaccess file question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 07:16 PM
07-20-2003 07:16 PM
Re: /etc/ftpaccess file question
All the users you put in that file (/etc/ftpd/ftpusers) will no longer have access to ftp on this server.
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 07:24 PM
07-20-2003 07:24 PM
Re: /etc/ftpaccess file question
We want to "restrict" this specific user to one directory and make suer the file has specific permissions.
I know the line for this in /etc/ftpd/ftpaccess, my question is:
If I insert this line for the user do I have to add another line for all the other users that we do not want to "restrict" or can we leave the ftp line in inetd.conf as is with the extra -a option?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 07:30 PM
07-20-2003 07:30 PM
Re: /etc/ftpaccess file question
sample entry is as follows:
ftp allow 192.1.168.46 192.1.169
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 07:34 PM
07-20-2003 07:34 PM
Re: /etc/ftpaccess file question
e.g.
# useradd -u 2020 -g users -d /home/userx -s /usr/bin/rksh -c "restricted user" -m userx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 07:47 PM
07-20-2003 07:47 PM
Re: /etc/ftpaccess file question
1. cp /usr/newconfig/etc/ftpd/ftpaccess
/etc/ftpd/ftpaccess
2. create a group for ftp users called ftpgrp
3. create the new ftp user ftpuser and restrict home to /home/ftpuser
# useradd -m -d /home/ftpuser -s /usr/bin/false -g ftpgrp ftpuser
4. add the /usr/bin/false
5. edit /etc/inetd.conf file:
ftp tcp stream nowait root /usr/lbin/ftpd ftpd -a
6. edit /etc/passwd file:
ftpuser:xxxxxxxxxx:1000:1000::/home/ftpuser/./:/usr/bin/false
7. # inetd -c
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 07:58 PM
07-20-2003 07:58 PM
Re: /etc/ftpaccess file question
If you really want to know, this is the line I will be adding:
upload /user/home/dir /dir/to/upload yes username group 037
It works. THe files get uploaded with the umask of 037.
All I want to know is:
Can I keep my inetd.conf ftp line as is:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -u007 -t7200
and just add a -a option to read the ftpaccess file?
Or must I change the line to:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -a
and add another line to ftpaccess for all the other users (for whom I would like to have a umask of 007)?
I don't want to tie down ip addresses.
I don't want to ban any users.