From: Ian Macdonald Date: 2002-04-25T03:06:54+09:00 Subject: Re: User and Group name => user id and group id On Thu 25 Apr 2002 at 02:57:08 +0900, Sean O'Dell wrote: > This is kind of a trivial question, but I can't find reference for a > function that returns a numeric user id given a user name (under Linux). I > could parse the passwd and group file, but it seems there'd be a built-in > function for it somewhere. require etc puts Etc.getpwnam("user").uid Ian -- Ian Macdonald | Documentation is like sex: when it is ian@caliban.org | good, it is very, very good; and when it is | bad, it is better than nothing. -- Dick | Brandon |