- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: FTP 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-16-2009 08:55 PM
07-16-2009 08:55 PM
FTP Access
===============================================
When i go to /etc/ftpd i find two directories.
#cd /etc/ftpd
#ls -l
dr-xr-xr-x 2 bin bin Mar 8 2004 ftp-exec
dr-xr--r-- 2 bin bin Mar 8 2004 pids
===============================================
Please let me know the steps that i need to follow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2009 09:04 PM
07-16-2009 09:04 PM
Re: FTP Access
By default ftp access will be given to all the users except the users listed in /etc/ftpd/ftpusers file. So make sure that the user name is not listed in /etc/ftpd/ftpusers file.
Also make sure that the user shell is listed in /etc/shells file.
No need to do anything else.
If you get any errors when the user do ftp post it.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2009 09:06 PM
07-16-2009 09:06 PM
Re: FTP Access
For more clarity, these are the points you need to check.1. Verify .netrc in the user's home directory.
If the .netrc file contains password or account information for use
other than for anonymous ftp, its owner must match the effective
user ID of the current process. Its read, write, and execute
permission bits for group and other must all be zero, and it must
be readable by its owner. Otherwise, the file is ignored.
So if you are unsure about this file, rename it to .netrc.old for
troubleshooting purposes.
2. Check /etc/ftpd/ftpusers.
ftpd rejects remote logins to local user accounts that are named
in /etc/ftpd/ftpusers. Each restricted account name must appear
alone on a line in the file. The line cannot contain any white
space.
User accounts that specify a restricted login shell in /etc/passwd
should be listed in /etc/ftpd/ftpusers because ftpd accesses local
accounts without using their login shells.
3. You need to add or verify /etc/shells.
/bin/sh
/bin/rsh
/bin/ksh
/bin/rksh
/bin/csh
/bin/pam
/bin/posix/sh
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
All shells referred to in /etc/passwd or in the NIS passwd map should be valid shells or links on this system and be listed in
/etc/shells.
Also confirm if any special character are there in the user password...
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2009 09:22 PM
07-16-2009 09:22 PM
Re: FTP Access
thanks for your reply.
When i check there is no /etc/ftpd/ftpuser file,
i am able to do ftp to that server as a root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2009 09:26 PM
07-16-2009 09:26 PM
Re: FTP Access
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2009 09:28 PM
07-16-2009 09:28 PM
Re: FTP Access
>>>When i check there is no /etc/ftpd/ftpuser file<<<
Note the file name is "/etc/ftpd/ftpusers" not "/etc/ftpd/ftpuser"
Have you tried to ftp as that user? if so what is the error you are getting?
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2009 09:35 PM
07-16-2009 09:35 PM
Re: FTP Access
root# more /etc/ftpd/ftpusers
/etc/ftpd/ftpusers: No such file or directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2009 10:18 PM
07-16-2009 10:18 PM
Re: FTP Access
Then the user should be able to ftp. Can you post the error if the user gets any?
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2009 10:50 PM
07-19-2009 10:50 PM
Re: FTP Access
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2009 01:26 AM
07-20-2009 01:26 AM
Re: FTP Access
You can also put these other shell paths into /etc/shells. See shells(4).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2009 01:31 AM
07-20-2009 01:31 AM
Re: FTP Access
If /etc/shells does not exist, the standard default list (documented in "man getusershell") is used instead:
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
Yes, /bin/ksh refers to the same file as /usr/bin/ksh on HP-UX. The ftpd does not care: if it does not find a matching string in /etc/shells (or in the default list), the user is denied access.
MK