ftp上傳的檔案指定許可權
如何為ftp上傳的檔案指定許可權[@more@]如何為ftp上傳的檔案指定許可權
環境 rs6000
問題 在AIX作業系統中,使用ftp上傳到系統的檔案的預設許可權是rw-r-----,使用者也許希望上傳的檔案能夠有不同的許可權設定。
解答 要解決這個問題有兩種方法:
1、在上傳檔案之前由使用者決定建立檔案的許可權;
2、在AIX作業系統上指定新的ftp上傳檔案的預設許可權。
要使用第一種方法,使用者必須首先確定自己的ftp客戶端軟體是否支援site命令:
ftp> ?
Commands may be abbreviated. Commands are:
! image recv
$ lcd reget
account local reinitialize
append ls remotehelp
ascii macdef rename
bell mdelete reset
binary mdir restart
block mget rhelp
bye mkdir rmdir
carriage-control mls rstatus
case mode runique
cd modtime safe
cdup mount send
clear mput sendport
close nmap site
copylocal nlist size
cr non-print status
delete ntrans stream
debug open struct
dir passive sunique
disconnect private system
ebcdic prompt telnet
exp_cmd protect tenex
file proxy trace
form put type
get pwd user
glob quit verbose
hash quote ?
help record
ftp>
如果執行?命令後返回的命令列表中有site命令,使用者就可以在用ftp命令連線AIX之後執行命令site umask xxx,其中xxx是上傳檔案的umask值,它的含義和UNIX系統umask命令的引數相同。比如site umask 022就會將此後上傳的檔案的許可權設定為rwxr-xr-x。這個命令的有效時間是當前的ftp會話。
對於第二種方法,需要修改/etc/inetd.conf,將ftp一行改為:
ftp --stream tcp6 --nowait root-- /usr/sbin/ftpd ftpd -u xxx
其中-u是新的umask。然後執行refresh -s inetd。這種方法對所有使用ftp的使用者有效。已經連線的使用者需要重新連線使新設定生效。
環境 rs6000
問題 在AIX作業系統中,使用ftp上傳到系統的檔案的預設許可權是rw-r-----,使用者也許希望上傳的檔案能夠有不同的許可權設定。
解答 要解決這個問題有兩種方法:
1、在上傳檔案之前由使用者決定建立檔案的許可權;
2、在AIX作業系統上指定新的ftp上傳檔案的預設許可權。
要使用第一種方法,使用者必須首先確定自己的ftp客戶端軟體是否支援site命令:
ftp> ?
Commands may be abbreviated. Commands are:
! image recv
$ lcd reget
account local reinitialize
append ls remotehelp
ascii macdef rename
bell mdelete reset
binary mdir restart
block mget rhelp
bye mkdir rmdir
carriage-control mls rstatus
case mode runique
cd modtime safe
cdup mount send
clear mput sendport
close nmap site
copylocal nlist size
cr non-print status
delete ntrans stream
debug open struct
dir passive sunique
disconnect private system
ebcdic prompt telnet
exp_cmd protect tenex
file proxy trace
form put type
get pwd user
glob quit verbose
hash quote ?
help record
ftp>
如果執行?命令後返回的命令列表中有site命令,使用者就可以在用ftp命令連線AIX之後執行命令site umask xxx,其中xxx是上傳檔案的umask值,它的含義和UNIX系統umask命令的引數相同。比如site umask 022就會將此後上傳的檔案的許可權設定為rwxr-xr-x。這個命令的有效時間是當前的ftp會話。
對於第二種方法,需要修改/etc/inetd.conf,將ftp一行改為:
ftp --stream tcp6 --nowait root-- /usr/sbin/ftpd ftpd -u xxx
其中-u是新的umask。然後執行refresh -s inetd。這種方法對所有使用ftp的使用者有效。已經連線的使用者需要重新連線使新設定生效。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7343861/viewspace-888298/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- weblogic上傳檔案預設許可權Web
- 如何上傳雲伺服器檔案許可權伺服器
- 修改檔案的許可權
- linux 檔案許可權 s 許可權和 t 許可權解析Linux
- PHP ftp上傳檔案PHPFTP
- Solaris下控制ftp的許可權FTP
- 【LIUNX】目錄或檔案許可權,許可權授予
- Linux的檔案存取許可權和0644許可權Linux
- 定時ftp上傳,如何設定定時ftp上傳檔案FTP
- c# 上傳FTP檔案C#FTP
- Linux檔案許可權Linux
- chomd檔案許可權授予
- oracle許可權整理檔案Oracle
- Linux 檔案許可權Linux
- Atitit godaddy 檔案許可權 root許可權設定Go
- 解決從linux本地檔案系統上傳檔案到HDFS時的許可權問題Linux
- Linux的檔案許可權管理Linux
- Linux中的檔案許可權Linux
- 利用ftp自動上傳檔案FTP
- [svc]linux檔案許可權Linux
- Linux檔案基本許可權Linux
- 深入理解檔案許可權
- linux 檔案許可權管理Linux
- Docker構建的tomcat工程上傳檔案,訪問報403許可權問題DockerTomcat
- 系統許可權傳遞和物件許可權傳遞的測試物件
- Linux 檔案許可權管理的方法Linux
- ftp下載指定檔案FTP
- 從ftp上傳下載檔案(二)FTP
- 從ftp上傳下載檔案(一)FTP
- 『學了就忘』Linux許可權管理 — 55、檔案特殊許可權Linux
- Linux系統中檔案許可權ACL功能(上)。薦Linux
- 上傳APP到Google Play許可權問題APPGo
- hdfs檔案本地許可權問題
- linux檔案許可權 詳解Linux
- Linux 檔案許可權總結Linux
- linux檢視檔案許可權Linux
- Linux檔案許可權詳解Linux
- linux檔案許可權問題Linux