
これは本当に簡単な質問のはずですが、理解できません。2つのディレクトリがあり、それぞれに1つのディレクトリがあります。
$ ls -l
drwxrwsrwx 5 john_smith ppp 4096 8月 20 12:53 problem_dir
drwxrwsrwx 5 sam_eagle ppp 4096 8月 17 21:11 no_problem_dir
$ ls * -l
problem_dir
drwxr-sr-x 29 john_smith ppp 4096 7月 21 11:42 the_folder
no_problem_dir
drwxr-sr-x 15 kansai_robot ppp 4096 7月 26 17:24 the_folder
今、私はないジョン・スミスやサム・イーグルなら
cp a_file no_problem_dir/the_folder/000
問題なくフォルダにファイルを入れましたが、
cp a_file problem_dir/the_folder/000
私は
cp: cannot create regular file ‘the_folder/000/a_file’: Permission denied
理由と権限についてはわかっています。問題は 2 つあります。
- 権限「s」が何を意味するのか分かりません (r、w、x しか分かりません)
- さらに重要なのは、ファイルをフォルダーにコピーするにはどうすればよいかということ
the_folder
です。
chmodを試しましたが、効果がなく、ルートパスワードがわかりません
編集: 私はできる両方のフォルダ内に新しいディレクトリを作成します