2件ヒット
[1-2件を表示]
(0.289秒)
検索結果
-
File
:: Stat # uid -> Integer (78334.0) -
オーナーのユーザIDを返します。
...オーナーのユーザIDを返します。
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.uid #=> 0
//}... -
File
:: Stat # setuid? -> bool (42313.0) -
setuidされている時に真を返します。
...setuidされている時に真を返します。
//emlist[][ruby]{
Dir.glob("/bin/*") {|bd|
if File::Stat.new(bd).setuid?
puts bd
end
}
#例
#...
#=> /bin/ping
#=> /bin/su
#...
//}...