From: "nobu (Nobuyoshi Nakada)" Date: 2012-03-28T11:53:54+09:00 Subject: [ruby-core:43786] [ruby-trunk - Feature #5610] Allow strings as input for Process.uid= Issue #5610 has been updated by nobu (Nobuyoshi Nakada). File 0001-allow-strings-as-input-user-group-id.patch added =begin Since (({Process.groups=})) already accepts strings, this proposal sounds reasonable. =end ---------------------------------------- Feature #5610: Allow strings as input for Process.uid= https://bugs.ruby-lang.org/issues/5610#change-25291 Author: shevegen (markus heiler) Status: Assigned Priority: Normal Assignee: kosaki (Motohiro KOSAKI) Category: core Target version: 2.0.0 On my unix system I often have a "debug" user account, belonging to the "debug" group. With: Process.euid You can find out the effective uid and you can change it via =. Process.euid = 522 That works. Today I tried to do this though: Process.euid = "debug" It does not work because .euid= wants a string. Would it not be better to be more flexible than that? Internally it could be converted into a number anyway as /etc/passwd can be read. And if it can not be converted, an exception could be raised. At least for me that would be quite convenient, no idea if this has merit for others, but then again it is just a proposal. :) Thank you for reading. -- http://bugs.ruby-lang.org/