- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- TFTP: Error code 2
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
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
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
тАО02-08-2006 07:56 AM
тАО02-08-2006 07:56 AM
tftp> get testfile /export/testfile
getting from systemA:testfile to /export/testfile [netascii]
sent RRQ
received ERROR
Error code 2: Access violation
I followed these instructions (Still having issues though):
http://docs.hp.com/en/B2355-90147/ch05s04.html
Here are the necessary outputs:
# grep tftp /etc/passwd
tftp:*:119:128:TFTP:/home/tftpdir:/usr/bin/false
# grep tftp /etc/group
tftp::128:
##grep tftp /etc/inetd.conf
tftp dgram udp wait root /usr/lbin/tftpd tftpd\
/home/tftpdir
#
Any help would be much appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 07:59 AM
тАО02-08-2006 07:59 AM
Re: TFTP: Error code 2
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 08:02 AM
тАО02-08-2006 08:02 AM
Re: TFTP: Error code 2
drw------- 2 tftp tftp 96 Feb 8 15:45 tftpdir
# ll /home/tftpdir
total 16
-rwxrwxrwx 1 tftp tftp 4 Feb 8 15:45 testfile
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 08:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 08:22 AM
тАО02-08-2006 08:22 AM
Re: TFTP: Error code 2
# ll
drwx------ 2 tftp tftp 96 Feb 8 15:45 tftpdir
Same thing as before ...
ftp> get testfile /export/testfile
getting from systemA:testfile to /export/testfile [netascii]
sent RRQ
received ERROR
Error code 2: Access violation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2006 08:33 AM
тАО02-08-2006 08:33 AM
Re: TFTP: Error code 2
from http://docs.hp.com/en/B2355-90147/ch05s08.html
Symptom:
File transfer fails with Access Violation, Permission Denied, or TFTP Error Code 2 message.
Cause:
tftpd does not have permission to read the file.
Action:
If the transfer is a get operation where the client is attempting to read the file from the server, then the server does not have read permissions on the file that it is trying to send. Ensure that the file the client is reading has read permissions for the user tftp. For example, if the client was attempting to read the file named xterm, xterm should be mode 0400 and owned by the user tftp:
$ ll /home/tftpdir/xterm-r-------- 1 tftp guest 438 May 10 1989 xterm
If the transfer is a put operation (which is not something a BOOTP client will be doing as part of the BOOTP protocol), then this message means that the file did not have sufficient write permissions for the server to write to the file. If the server is to receive a file, it must already exist and be writeable by the user tftp. For example, if a tftp client is sending the file named fontlist, the file must be mode 0600 and owned by tftp:
$ ll /home/tftpdir/fonts-rw------- 1 tftp guest 0 May 10 1989 fonts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2006 07:25 AM
тАО02-09-2006 07:25 AM
Re: TFTP: Error code 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2006 07:26 AM
тАО02-09-2006 07:26 AM