HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: TFTP Server
Operating System - HP-UX
1827378
Members
3791
Online
109963
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-18-2006 09:46 AM
07-18-2006 09:46 AM
TFTP Server
I want to setup an hpux server as the TFTP server. I have followed the docs & made the changes in configuration file as follows
/etc/passwd
===========
tftp:*:510:20:TFTP User:/home/tftp:/usr/bin/false
/etc/inetd.conf
================
tftp dgram udp wait root /usr/lbin/tftpd tftpd /opt/test_tftp
Now that I am able to get the file from the tftp server but when I put the file, its throwing an access violation error as given below.
root@fc2:/tmp#tftp fc2
tftp> get file.out
Received 117 bytes in 0.0 seconds
tftp> quit
root@fc2:/tmp#
\root@fc2:/tmp#tftp fc2
tftp> put file.out
Error code 2: Access violation
tftp> quit
The permissions are set properly
root@fc2:/tmp#ll -d /home/tftp
drwx------ 2 tftp users 96 Jul 18 22:06 /home/tftp
root@fc2:/tmp#
Any idea whats hapening ?
Thanks in anticipation
/etc/passwd
===========
tftp:*:510:20:TFTP User:/home/tftp:/usr/bin/false
/etc/inetd.conf
================
tftp dgram udp wait root /usr/lbin/tftpd tftpd /opt/test_tftp
Now that I am able to get the file from the tftp server but when I put the file, its throwing an access violation error as given below.
root@fc2:/tmp#tftp fc2
tftp> get file.out
Received 117 bytes in 0.0 seconds
tftp> quit
root@fc2:/tmp#
\root@fc2:/tmp#tftp fc2
tftp> put file.out
Error code 2: Access violation
tftp> quit
The permissions are set properly
root@fc2:/tmp#ll -d /home/tftp
drwx------ 2 tftp users 96 Jul 18 22:06 /home/tftp
root@fc2:/tmp#
Any idea whats hapening ?
Thanks in anticipation
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2006 10:27 AM
07-18-2006 10:27 AM
Re: TFTP Server
tftpd uses a call to chroot() to change its root directory to be the same as the home directory of the pseudo-user tftp. This restricts access by tftp clients to only those files found below the tftp home directory (see chroot(2)).
Furthermore, tftp clients can only read files in that directory if they are readable by the pseudo-user tftp, and tftp clients can only write files in that directory if they exist and are writable by the pseudo-user tftp.
Furthermore, tftp clients can only read files in that directory if they are readable by the pseudo-user tftp, and tftp clients can only write files in that directory if they exist and are writable by the pseudo-user tftp.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP