我想让用户能够在其他用户目录中创建写入和读取文件,但不能选择在创建后删除文件(粘滞位在这里不起作用......)例如:
我有manager
目录的用户repository
我有用户worker1
需要写入文件/manager/repository
但无法删除文件
我有用户worker2
需要写入文件/manager/repository
但无法删除文件
我有用户worker3
需要写入文件/manager/repository
但不能删除文件
但worker 1-2-3
只有在创建后无法删除这些文件manager
,并root
可以删除这些文件worker 1-2-3
创建。
我试过几个chown
和chmod
技巧与应用粘着位没有成功。
我尝试以特定格式设置 Linux 日期和时间,但它一直给我错误\n示例:
\n\ndate "+%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"\nor \ndate +"%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"\n
Run Code Online (Sandbox Code Playgroud)\n\n继续给我这个错误:
\n\ndate: invalid date \xe2\x80\x9819-01-2017 00:05:01\xe2\x80\x99\n
Run Code Online (Sandbox Code Playgroud)\n 我有这个 XML 文件(示例)
<This is a line of text with a year=2020 month=12 in it
This line of text does not have a year or month in it
This year=2021 is the current year the current month=1
This is the year=2021 the month=2/>
<This is a line of text with a year=33020 month=12 in it
This line of text does not have a year or month in it
This year=33020 is the current year the current month=1
This is the …
Run Code Online (Sandbox Code Playgroud)