126件ヒット
[1-100件を表示]
(0.051秒)
種類
- モジュール関数 (60)
- インスタンスメソッド (42)
- 文書 (12)
- 特異メソッド (12)
ライブラリ
- ビルトイン (84)
- pathname (12)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6)
クラス
- File (12)
-
File
:: Stat (12) - Pathname (12)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6)
モジュール
- FileTest (12)
- Kernel (24)
-
Process
:: Sys (24)
キーワード
- Win32ネイティブ版Rubyの互換性問題 (12)
- issetugid (12)
- setuid? (66)
- test (24)
検索結果
先頭5件
-
Process
:: Sys . # setuid(id) -> nil (24217.0) -
システムコールの setuid(2) を呼びます。
...システムコールの setuid(2) を呼びます。
@raise NotImplementedError システムコールが現在のプラットフォームで提供されていない場合に発生します。
@raise Errno::EXXX システムコールに失敗した場合に発生します。... -
FileTest
. # setuid?(file) -> bool (12229.0) -
ファイルが setuid(2) されている時に真を返 します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
...ファイルが setuid(2) されている時に真を返
します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
@param file ファイル名を表す文字列か IO オブジェクトを......ト file が既に close されていた場合に発生します。
//emlist[例][ruby]{
require 'fileutils'
IO.write("testfile", "")
FileUtils.chmod("u+s", "testfile")
FileTest.setuid?("testfile") # => true
FileUtils.chmod("u-s", "testfile")
FileTest.setuid?("testfile") # => false
//}... -
File
:: Stat # setuid? -> bool (12223.0) -
setuidされている時に真を返します。
...setuidされている時に真を返します。
//emlist[][ruby]{
Dir.glob("/bin/*") {|bd|
if File::Stat.new(bd).setuid?
puts bd
end
}
#例
#...
#=> /bin/ping
#=> /bin/su
#...
//}... -
Pathname
# setuid? -> bool (12223.0) -
FileTest.setuid?(self.to_s) と同じです。
...FileTest.setuid?(self.to_s) と同じです。
@see FileTest.#setuid?... -
File
. setuid?(path) -> bool (12217.0) -
FileTest.#setuid? と同じです。
...FileTest.#setuid? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
Shell
# setuid?(file) -> bool (12207.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#setuid?... -
Shell
:: CommandProcessor # setuid?(file) -> bool (12207.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#setuid?... -
Shell
:: Filter # setuid?(file) -> bool (12207.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#setuid?... -
Process
:: Sys . # issetugid -> bool (6106.0) -
システムコールの issetugid() を呼びます。
...システムコールの issetugid() を呼びます。
プロセスが setuid もしくは setgid ビットを使って
起動されている場合に真を返します。
@raise NotImplementedError システムコールが現在のプラットフォームで提供されていない場合に発... -
Kernel
. # test(cmd , file) -> bool | Time | Integer | nil (112.0) -
単体のファイルでファイルテストを行います。
...単体のファイルでファイルテストを行います。
@param cmd 以下に示す文字リテラル、文字列、あるいは同じ文字を表す数値
です。文字列の場合はその先頭の文字だけをコマンドとみなします。
@param file テストするフ......cmd として指定できる文字リテラルとその意味です。
: ?r
ファイルを実効 uid で読むことができる
: ?w
ファイルに実効 uid で書くことができる
: ?x
ファイルを実効 uid で実行できる
: ?o
ファイルの所有者が実効 uid......ある
: ?c
ファイルはキャラクタースペシャルファイルである
: ?u
ファイルに setuid ビットがセットされている
: ?g
ファイルに setgid ビットがセットされている
: ?k
ファイルに sticky ビットがセットされている
: ?M...