Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Tftp configuration under Solaris

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Modify inetd.conf to remove the comment symbol before tftp. The last parameter / tftpboot of the line is the default working directory, which can be modified as needed.

Vi / etc/inetd.conf

#

# Copyright 2004 Sun Microsystems, Inc. All rights reserved.

# Use is subject to license terms.

#

# ident "@ (#) inetd.conf 1.5604Gram 10 SMI 21"

#

# Legacy configuration file for inetd (1m). See inetd.conf (4).

#

# This file is no longer directly used to configure inetd.

# The Solaris services which were formerly configured using this file

# are now configured in the Service Management Facility (see smf (5))

# using inetadm (1m).

#

# Any records remaining in this file after installation or upgrade

# or later created by installing additional software, must be converted

# to smf (5) services and imported into the smf repository using

# inetconv (1m), otherwise the service will not be available. Once

# a service has been converted using inetconv, further changes made to

# its entry here are not reflected in the service.

#

#

# CacheFS daemon. Provided only as a basis for conversion by inetconv (1m).

#

100235/1 tli rpc/ticotsord wait root / usr/lib/fs/cachefs/cachefsd cachefsd

# TFTPD-tftp server (primarily used for booting)

Tftp dgram udp6 wait root / usr/sbin/in.tftpd in.tftpd-s / tftpboot

_ tgw3_52200 stream tcp nowait root / opt/ericsson/bin/emt_tgw_telnetd emt_tgw_telnetd-h-P / opt/ericsson/bin

# IMH service for FM

#

IMH_com_rec stream tcp nowait nmsadm / etc/opt/ericsson/fm_core/startscript/IMH_com_rec IMH_com_rec

two。 Add services to the control list of svc

Inetconv-I / etc/inet/inetd.conf 1 > / dev/null 2 > & 1

3. Create related directories

# mkdir / tftfboot; ln-s / tftpboot/. / tftpboot/tftpboot

# chmod-R 777 / tftpboot

# ls-la / tftpboot

Total 4

Drwxrwxrwx. 2 root root 21 Oct 11 11:43.

Drwxr-xr-x. 19 root root 4096 Oct 11 11:43..

Lrwxrwxrwx. 1 root root 11 Oct 11 11:43 tftpboot-> / tftpboot/.

4. Start the service with the svcadm command

$svcadm enable svc:/network/tftp/udp6:default

5. Check the running status of the service:

$svcs-a | grep tftp

Online Jan_11 svc:/network/tftp/udp6:default

$netstat-a | grep tftp

* .tftp Idle

* .tftp Idle

$lsof-iRO 69

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

Inetd 2298 root 31U IPv6 0x60091ddbd40 0t0 UDP *: tftp

$

/ / pay attention

Upload file Times error: Error code 2: Access violation is due to system security policy reasons, need to create a file with the same name in the tftp working directory, and modify file permissions chmod 777

For example, the file name to be uploaded is testfile.txt, and the server steps are as follows:

Cd / tftpboot

Touch testfile.txt

Vi testfile.txt / / does not need to write anything

Chmod 777 testfile.txt

In addition, because the directory is hung in the root directory, you need to pay attention to the remaining space in the directory before uploading files, clean up the unneeded files in time, or change the default working directory of the tftp service.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report