setuid? Returns true if it has the set user id permission bit set : setuid « File Directory « Ruby






setuid? Returns true if it has the set user id permission bit set



File.stat("testfile").setuid?  
File.stat("/usr/bin/su").setuid?

 

Related examples in the same category