- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftponly account with other ftp accounts
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
01-25-2006 08:43 PM
01-25-2006 08:43 PM
ftponly account with other ftp accounts
I have some ftp users with telnet facility in a HP-UX system. Now I need a few ftp-only users in the same system under a specified directory. I created ftp-only user successfully. But the problem is after creation of ftp-only user adding a flag to the ftpd daemon, only ftp-only user can access the system other ftp user can not access to the system.
How can existboth type of users?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:15 AM
01-26-2006 08:15 AM
Re: ftponly account with other ftp accounts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 08:58 AM
01-26-2006 08:58 AM
Re: ftponly account with other ftp accounts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 10:18 AM
01-26-2006 10:18 AM
Re: ftponly account with other ftp accounts
What we do is add the following to the profile say if you want ids abcde and fghij to be ftp only
if [[ `logname` = abcde ]] || [[ `logname` = fghij ]]
then
clear
echo "****************************"
echo "Unauthorized login. Login to id `logname` allowed via ftp or su only."
echo "*****************************"
echo " "
echo "GOODBYE"
echo "*****************************"
kill -9 $$
fi
This should do the trick
thanks
DP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 04:07 PM
01-26-2006 04:07 PM
Re: ftponly account with other ftp accounts
I want to create FTP only users and those ftp only users not to change directories. I have created ftp only users and had included the -a option with the ftpd in the inetd.conf file. After adding -a option ftp only users are able to ftp and for other
the access to ftp is restricted (unable to access). So I have removed the -a option and now the FTP only user can move to other directories other than his home directory. I do not want this. I need to co-exist both normal ftp user and ftp-only user.
Rgds,
Mostafa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 07:18 PM
01-26-2006 07:18 PM
Re: ftponly account with other ftp accounts
/etc/inetd.conf
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
vi /etc/passwd
Put this contents,
guest1::100:92:Guest Account:/ftp/:/etc/ftponly
Change guest1 to your account name. Change /ftp to some directory.
vi /etc/shells
/etc/ftponly
/sbin/sh
Try now. It will work.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 07:22 PM
01-26-2006 07:22 PM
Re: ftponly account with other ftp accounts
1) Create a new group "ftponly"
2) Create a new account belonging to this group "ftpuser"
3) Give it a NON shell like /usr/bin/false
4) Put the NON shell in /etc/shel
5) Edit /etc/ftpd/ftpaccess following "man ftpaccess" instruction
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 07:50 PM
01-26-2006 07:50 PM
Re: ftponly account with other ftp accounts
You need to configure your ftpaccess file and in there you can specify the directory and permissions the file should have.
When adding the users specify the directory location were they will put the data e.g:
ftpuser:*:999:999: Ftp users:/data/ftp/load/./:/usr/bin/false
Your inetd.conf should be modified:
Start ftpd with the -a option.
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a
GoodLuck
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2006 08:42 PM
01-30-2006 08:42 PM