Get the App
SLTechnology News&Howtos  ›  Servers  › 

Pureftp modifies anonymous directory default path in centos

Shulou Source: shulou.com Published: 2022-06-03 07:58:55 12月06日 Update

Modify the home directory of user "ftp" in / etc/passwd

[root@localhost ~] # vi / etc/passwd

find

Ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin

Change it to the directory you need, such as:

Ftp:x:14:50:FTP User:/ftproot/MYFTP:/sbin/nologin

Root:x:0:0:root:/root:/bin/bash

Bin:x:1:1:bin:/bin:/sbin/nologin

Daemon:x:2:2:daemon:/sbin:/sbin/nologin

Adm:x:3:4:adm:/var/adm:/sbin/nologin

Lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin

Sync:x:5:0:sync:/sbin:/bin/sync

Shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown

Halt:x:7:0:halt:/sbin:/sbin/halt

Mail:x:8:12:mail:/var/spool/mail:/sbin/nologin

Operator:x:11:0:operator:/root:/sbin/nologin

Games:x:12:100:games:/usr/games:/sbin/nologin

Ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin

Nobody:x:99:99:Nobody:/:/sbin/nologin

Systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin

Dbus:x:81:81:System message bus:/:/sbin/nologin

Polkitd:x:999:998:User for polkitd:/:/sbin/nologin

Sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin

Postfix:x:89:89::/var/spool/postfix:/sbin/nologin

Chrony:x:998:996::/var/lib/chrony:/sbin/nologin

Apache:x:48:48:Apache:/usr/share/httpd:/sbin/nologin

Mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash

Saslauth:x:997:76:Saslauthd user:/run/saslauthd:/sbin/nologin

Tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin

Geoclue:x:996:995:User for geoclue:/var/lib/geoclue:/sbin/nologin

Nginx:x:995:994:Nginx web server:/var/lib/nginx:/sbin/nologin

Vitualftp:x:1000:1001::/ftproot/:/sbin/nologin

Tags: Directory user path Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info vpn macOS Shulou Technology Docker