singularityの定義ファイルからsifイメージをビルドする際に
管理者権限を特定のユーザに与えることはできるのでしょうか?
$ singularity build hoge.sif hoge.def FATAL: Unable to build from hoge.def: you must be the root user to build from a definition file
visudo で下記の設定を追記
testuser ALL=(ALL) /tools/singularity/bin/singularity build
"singularity build"ならばsudoをつけて実行できましたが、
sifファイルと定義ファイルの指定を行うと、「rootとして実行できません」
のエラーメッセージが表示されました。
buildのみ管理者権限を与えるということは、できないのでしょうか。
$ sudo /tools/singularity/bin/singularity build [sudo] testuser のパスワード: Error for command "build": accepts 2 arg(s), received 0 Usage: singularity [global options...] build [local options...] <IMAGE PATH> <BUILD SPEC> Run 'singularity build --help' for more detailed usage information. $ /tools/singularity/bin/singularity build hoge.sif hoge.def FATAL: Unable to build from hoges.def: you must be the root user to build from a definition file $ sudo /tools/singularity/bin/singularity build hoge.sif hoge.def ユーザー testuser は'/tools/singularity/bin/singularity build hoge.sif hoge.def' を root として server1 上で実行することは許可されていません。すみません。
こちらはroot権限なしでOKでした。
$ singularity build centos7.sif docker://centos:latest
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/08/30 00:56 編集