我正在尝试安装 Seafile,但出现了一个奇怪的错误。我创建了一个名为 seafile 的组和用户来执行所有操作,但我无法运行我拥有的 shell 脚本:
[09:24] seafile@raspberrypi /media/fa36508a-b3c4-4499-b30a-711dd5994225/seaf/seafile-server-5.0.4 >ll
total 108K
drwxr-xr-x 6 seafile seafile 1.0K Jan 25 13:53 .
drwxr-xr-x 3 seafile seafile 1.0K Feb 11 09:20 ..
-rw-r--r-- 1 seafile seafile 11K Jan 25 13:53 check_init_admin.py
-rwxr-xr-x 1 seafile seafile 2.0K Jan 25 13:53 reset-admin.sh
drwxr-xr-x 2 seafile seafile 1.0K Jan 25 13:53 runtime
-rwxr-xr-x 1 seafile seafile 1.9K Jan 25 13:53 seaf-fsck.sh
-rwxr-xr-x 1 seafile seafile 3.3K Jan 25 13:53 seaf-fuse.sh
-rwxr-xr-x 1 seafile seafile 2.8K Jan 25 13:53 seaf-gc.sh
drwxr-xr-x 5 seafile seafile 1.0K Jan 25 13:58 seafile
-rwxr-xr-x 1 seafile seafile 4.7K Jan 25 13:53 seafile.sh
drwxr-xr-x 12 seafile seafile 1.0K Jan 24 18:47 seahub
-rwxr-xr-x 1 seafile seafile 7.1K Jan 25 13:53 seahub.sh
-rw-r--r-- 1 seafile seafile 44K Jan 25 13:53 setup-seafile-mysql.py
-rwxr-xr-x 1 seafile seafile 2.7K Jan 25 13:53 setup-seafile-mysql.sh
-rwxr-xr-x 1 seafile seafile 20K Jan 25 13:53 setup-seafile.sh
drwxr-xr-x 4 seafile seafile 1.0K Jan 24 14:15 upgrade
[09:24] seafile@raspberrypi /media/fa36508a-b3c4-4499-b30a-711dd5994225/seaf/seafile-server-5.0.4 >./setup-seafile.sh
bash: ./setup-seafile.sh: Permission denied
[09:24] seafile@raspberrypi /media/fa36508a-b3c4-4499-b30a-711dd5994225/seaf/seafile-server-5.0.4 >chmod +x setup-seafile.sh
[09:25] seafile@raspberrypi /media/fa36508a-b3c4-4499-b30a-711dd5994225/seaf/seafile-server-5.0.4 >./setup-seafile.sh
bash: ./setup-seafile.sh: Permission denied
已解决问题是挂载时的 noexec 标志