るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.129秒)

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix det_e
  4. matrix rank_e
  5. open3 capture2e

クラス

モジュール

検索結果

File.setuid?(path) -> bool (41202.0)

FileTest.#setuid? と同じです。

...
File
Test.#setuid? と同じです。

@param path パスを表す文字列か IO オブジェクトを指定します。...

FileTest.#setuid?(file) -> bool (38315.0)

ファイルが setuid(2) されている時に真を返 します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。

...ファイルが setuid(2) されている時に真を返
します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。

@param file ファイル名を表す文字列か IO オブジェクトを...
...se IOError 指定された IO オブジェクト file が既に close されていた場合に発生します。

//emlist[例][ruby]{
require 'fileutils'
IO.write("testfile", "")
File
Utils.chmod("u+s", "testfile")
File
Test.setuid?("testfile") # => true
File
Utils.chmod("u-s", "testfile")
File
Te...
...st.setuid?("testfile") # => false
//}...

File::Stat#setuid? -> bool (35215.0)

setuidされている時に真を返します。

...setuidされている時に真を返します。

//emlist[][ruby]{
Dir.glob("/bin/*") {|bd|
if File::Stat.new(bd).setuid?
puts bd
e
nd
}
#例
#...
#=> /bin/ping
#=> /bin/su
#...
//}...