Is it possible to configure tftp for normal user credentials?

Solution Unverified - Updated -

Issue

  • Is it possible to configure tftp for normal user credentials?
  • In tftpboot configuration, it's mentioned to run tftp by root.
[root@localhost ~]# egrep -v "^$|^#" /etc/xinetd.d/tftp
service tftp
{
    disable = no
    socket_type     = dgram
    protocol        = udp
    wait            = yes
    user            = root                 <=============== user is root
    server          = /usr/sbin/in.tftpd
    server_args     = -s /var/lib/tftpboot
    per_source      = 11
    cps         = 100 2
    flags           = IPv4
}
  • The following configuration is not working and showing errors.
[root@localhost ~]# egrep -v "^$|^#" /etc/xinetd.d/tftp
service tftp
{
    disable = no
    socket_type     = dgram
    protocol        = udp
    wait            = yes
    user            = testuser                 <=============== user is testuser, not root
    server          = /usr/sbin/in.tftpd
    server_args     = -s /var/lib/tftpboot
    per_source      = 11
    cps         = 100 2
    flags           = IPv4
}
  • The errors are as follows. From Client end.
[root@localhost ~]# tftp 192.168.0.185
tftp> get kernel-2.6.32-431.29.2.el6.x86_64.rpm
Transfer timed out.

tftp> quit
  • From server end.
Nov 25 18:24:09 localhost in.tftpd[7174]: cannot set groups for user testuser

Environment

  • Red Hat Enterprise Linux 6
  • tftp-server

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content